Skip to main content

Interface: ChatGeneration

schema.ChatGeneration

Output of a single generation.

Hierarchy

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

Generation.generationInfo

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

Generation.text

Defined in

langchain/src/schema/index.ts:20