fix: preserve task stop intent and guard remote execution boundaries
This commit is contained in:
@@ -289,6 +289,8 @@ async def _validate_tool_bindings(
|
||||
)
|
||||
if tool.type == "task" and binding.result_assignments:
|
||||
raise HTTPException(400, "后台任务结果通过任务通知返回,不支持结果变量映射")
|
||||
if tool.type == "task" and scope.startswith(("Action ", "Startup ")):
|
||||
raise HTTPException(400, "后台任务工具不支持启动 Action")
|
||||
properties, required = ToolExecutor.input_schema(runtime_tool)
|
||||
unknown = sorted(set(binding.argument_bindings) - set(properties))
|
||||
if unknown:
|
||||
|
||||
Reference in New Issue
Block a user