Ask a question to get started
Enter to send•Shift+Enter new line
ToolStrategy( self, schema: type[SchemaT] | UnionType | dict[str, Any
Generic[SchemaT]
Schema for the tool calls.
Schema specs for the tool calls.
The content of the tool message to be returned when the model calls an artificial structured output tool.
Error handling strategy for structured output via ToolStrategy.
ToolStrategy
True
str
type[Exception]
tuple[type[Exception], ...]
Callable[[Exception], str]
False
Use a tool calling strategy for model responses.