File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -180,8 +180,8 @@ class FunctionTool:
180180 based on your context/state."""
181181
182182 func : ToolFunction [...] | None = None
183- """The function that implements the tool. Ensures that a reference to the original function exists
184- when @function_tool is used."""
183+ """The function that implements the tool. Ensures that a reference to the
184+ original function exists when @function_tool is used."""
185185
186186 # Tool-specific guardrails
187187 tool_input_guardrails : list [ToolInputGuardrail [Any ]] | None = None
@@ -665,7 +665,7 @@ async def _on_invoke_tool(ctx: ToolContext[Any], input: str) -> Any:
665665 on_invoke_tool = _on_invoke_tool ,
666666 strict_json_schema = strict_mode ,
667667 is_enabled = is_enabled ,
668- func = func
668+ func = func ,
669669 )
670670
671671 # If func is actually a callable, we were used as @function_tool with no parentheses
You can’t perform that action at this time.
0 commit comments