Ask a question to get started
Enter to sendā¢Shift+Enter new line
with_structured_output( self, schema: Union[Dict[str, Any], Type[Any]],
schema
Union[Dict[str, Any], Type[Any]]
Output schema as Pydantic model or JSON schema dict. If dict, must have 'title' and 'properties' keys.
include_raw
bool
False
**kwargs
Any
{}
Structure model output using tool calling.
If True, return dict with 'raw' and 'parsed' keys. If False (default), return only the parsed output.
Additional arguments passed to bind_tools.