F2: delegate prompt tasks to native Reasoner or OpenCode backends

This commit is contained in:
Xin Wang
2026-10-23 23:46:29 +08:00
parent 529250173d
commit 16ebfe358c
14 changed files with 784 additions and 110 deletions
-2
View File
@@ -43,8 +43,6 @@ class ToolExecutor:
@staticmethod
def input_schema(tool: RuntimeTool) -> tuple[dict[str, Any], list[str]]:
config = (tool.definition or {}).get("config") or {}
if tool.type == "task":
return {"instruction": {"type": "string", "description": "需要远程执行的完整任务要求"}}, ["instruction"]
if tool.type == "mcp":
schema = config.get("input_schema") or {}
return (