Skip to content

Commit 5c22d15

Browse files
committed
revert toolsets.md to main
1 parent 46d8dec commit 5c22d15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/toolsets.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,12 +401,12 @@ from prepared_toolset import prepared_toolset
401401
LOG = []
402402

403403
class LoggingToolset(WrapperToolset):
404-
async def call_tool(self, name: str, tool_args: dict[str, Any], ctx: RunContext, tool: ToolsetTool, allow_partial: bool = False) -> Any:
404+
async def call_tool(self, name: str, tool_args: dict[str, Any], ctx: RunContext, tool: ToolsetTool) -> Any:
405405
LOG.append(f'Calling tool {name!r} with args: {tool_args!r}')
406406
try:
407407
await asyncio.sleep(0.1 * len(LOG)) # (1)!
408408

409-
result = await super().call_tool(name, tool_args, ctx, tool, allow_partial=allow_partial)
409+
result = await super().call_tool(name, tool_args, ctx, tool)
410410
LOG.append(f'Finished calling tool {name!r} with result: {result!r}')
411411
except Exception as e:
412412
LOG.append(f'Error calling tool {name!r}: {e}')

0 commit comments

Comments
 (0)