ModelResponse(
self,
result: list[BaseMessage],
structured_response: ResponseT | None = None
| Name | Type |
|---|---|
| result | list[BaseMessage] |
| structured_response | ResponseT | None |
Response from model execution including messages and optional structured output.
The result will usually contain a single AIMessage, but may include an additional
ToolMessage if the model used a tool for structured output.
List of messages from model execution.
Parsed structured output if response_format was specified, None otherwise.