mirror of
https://github.com/langgenius/dify.git
synced 2026-05-09 21:28:25 +08:00
fix(api): complete Docker sandbox tool execution pipeline
- Add linux/arm64 dify-cli binary for Docker containers - Add DIFY_PORT config field for Docker socat forwarding - Fix InvokeFrom.AGENT (doesn't exist) → InvokeFrom.DEBUGGER in CLI API fetch/tools/batch endpoint Full pipeline verified: Docker container → dify init → dify execute → CLI API callback → plugin invocation → result returned to stdout. Made-with: Cursor
This commit is contained in:
parent
73fd439541
commit
10bb276e97
BIN
api/bin/dify-cli-linux-arm64
Executable file
BIN
api/bin/dify-cli-linux-arm64
Executable file
Binary file not shown.
@ -286,6 +286,11 @@ class CliApiConfig(BaseSettings):
|
||||
default="",
|
||||
)
|
||||
|
||||
DIFY_PORT: int = Field(
|
||||
description="Dify API port, used by Docker sandbox for socat forwarding.",
|
||||
default=5001,
|
||||
)
|
||||
|
||||
|
||||
class MarketplaceConfig(BaseSettings):
|
||||
"""
|
||||
|
||||
@ -179,7 +179,7 @@ class CliFetchToolsBatchApi(Resource):
|
||||
provider_type=provider_type,
|
||||
provider_id=item.tool_provider,
|
||||
tool_name=item.tool_name,
|
||||
invoke_from=InvokeFrom.AGENT,
|
||||
invoke_from=InvokeFrom.DEBUGGER,
|
||||
credential_id=item.credential_id,
|
||||
)
|
||||
tool_config = DifyCliToolConfig.create_from_tool(tool_runtime)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user