Interface: ChatGeneration
schema.ChatGeneration
Output of a single generation.
Hierarchy
↳
ChatGeneration
Properties
generationInfo
• Optional
generationInfo: Record
<string
, any
>
Raw generation info response from the provider. May include things like reason for finishing (e.g. in OpenAI)
Inherited from
Defined in
langchain/src/schema/index.ts:26
message
• message: BaseChatMessage
Defined in
langchain/src/schema/index.ts:92
text
• text: string
Generated text output
Inherited from
Defined in
langchain/src/schema/index.ts:20