Fix: Handler must accept **kwargs for task_id and other params
This commit is contained in:
+1
-1
@@ -427,7 +427,7 @@ def register(ctx) -> None:
|
|||||||
# Register tools manually since we can't register as memory provider
|
# Register tools manually since we can't register as memory provider
|
||||||
def make_handler(tool_name: str):
|
def make_handler(tool_name: str):
|
||||||
"""Create a handler closure for a specific tool."""
|
"""Create a handler closure for a specific tool."""
|
||||||
return lambda args: provider.handle_tool_call(tool_name, args)
|
return lambda args, **kwargs: provider.handle_tool_call(tool_name, args)
|
||||||
|
|
||||||
for schema in [PROFILE_SCHEMA, SEARCH_SCHEMA, CONCLUDE_SCHEMA]:
|
for schema in [PROFILE_SCHEMA, SEARCH_SCHEMA, CONCLUDE_SCHEMA]:
|
||||||
ctx.register_tool(
|
ctx.register_tool(
|
||||||
|
|||||||
Reference in New Issue
Block a user