mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-26 23:51:14 +02:00
fix: forward ToolRuntime to capability tools
This commit is contained in:
parent
6c8d109d76
commit
950de5e670
1 changed files with 3 additions and 0 deletions
|
|
@ -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(".", "_"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue