You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/toolsets.md
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -341,6 +341,7 @@ It is is a no-op by default, but enables some useful abilities:
341
341
You can subclass`WrapperToolset` to change the wrapped toolset's tool execution behavior by overriding the[`call_tool()`][pydantic_ai.toolsets.AbstractToolset.call_tool] method.
1. We use[`TestModel`][pydantic_ai.models.test.TestModel] here as it will automatically call each tool.
390
+
1. All docs examples are tested in CI and their their output is verified, so we need`LOG` to always have the same order whenever this code is run. Since the tools could finish in any order, we sleep an increasing amount of time based on which number tool call we are to ensure that they finish (and log) in the same order they were called in.
391
+
2. We use[`TestModel`][pydantic_ai.models.test.TestModel] here as it will automatically call each tool.
388
392
389
393
_(This example is complete, it can be run "as is")_
'A deferred tool call was present, but `DeferredToolCalls` is not among output types. To resolve this, add `DeferredToolCalls` to the list of output types for this agent.'
'A deferred tool call was present, but `DeferredToolCalls` is not among output types. To resolve this, add `DeferredToolCalls` to the list of output types for this agent.'