Ask a question to get started
Enter to send•Shift+Enter new line
Raised when model returns multiple structured output tool calls when only one is expected.
MultipleStructuredOutputsError( self, tool_names: list[str], ai_message: AIMessage )
StructuredOutputError
tool_names
list[str]
The names of the tools called for structured output.
ai_message
AIMessage
The AI message that contained the invalid multiple tool calls.