We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b3a9e5 commit b2aa894Copy full SHA for b2aa894
tests/test_toolsets.py
@@ -177,6 +177,11 @@ def add(a: int, b: int) -> int:
177
"""Add two numbers"""
178
return a + b # pragma: no cover
179
180
+ @base_toolset.tool
181
+ def subtract(a: int, b: int) -> int:
182
+ """Subtract two numbers"""
183
+ return a - b # pragma: no cover
184
+
185
async def prepare_change_names(ctx: RunContext[None], tool_defs: list[ToolDefinition]) -> list[ToolDefinition]:
186
# Try to change the name of an existing tool
187
modified_tool_defs: list[ToolDefinition] = []
0 commit comments