fix: forward ToolRuntime to capability tools

This commit is contained in:
CREDO23 2026-07-22 20:06:18 +02:00
parent 6c8d109d76
commit 950de5e670

View file

@ -157,6 +157,9 @@ def _capability_tool(capability: Capability, workspace_id: int) -> BaseTool:
}
)
# Un-stringify for StructuredTool's signature-based runtime injection.
_run.__annotations__["runtime"] = ToolRuntime
return StructuredTool.from_function(
coroutine=_run,
name=name.replace(".", "_"),