langchain.schema.output.ChatResult¶

class langchain.schema.output.ChatResult(*, generations: List[ChatGeneration], llm_output: Optional[dict] = None)[source]¶

Bases: BaseModel

Class that contains all results for a single chat model call.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

param generations: List[langchain.schema.output.ChatGeneration] [Required]¶

List of the chat generations. This is a List because an input can have multiple candidate generations.

param llm_output: Optional[dict] = None¶

For arbitrary LLM provider specific output.