LangChain · Class
ModelResponse
ModelResponse stores the messages returned by a model and optional parsed structured output. It is used to pass both forms of model output together.
Last updated
- Since
- v1.4
Syntax
ModelResponse(result: list[BaseMessage], structured_response: ResponseT | None = None)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
AIMessageBaseMessageToolMessageExtendedModelResponse