Skip to main content

Interface: Generation

schema.Generation

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)

Defined in

langchain/src/schema/index.ts:26


text

text: string

Generated text output

Defined in

langchain/src/schema/index.ts:20