langchain.js
    Preparing search index...

    Text output from a LLM.

    This typically represents the main text content of a message, such as the response from a language model or the text of a user message.

    interface Text {
        annotations?: (BaseContentBlock | Citation)[];
        id?: string;
        index?: number;
        text: string;
        type: "text";
        [key: string]: unknown;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: string]: unknown

      Arbitrary properties

    Index

    Properties

    annotations?: (BaseContentBlock | Citation)[]

    Citations and other annotations.

    id?: string

    Content block identifier, which can be either

    • generated by the provider (e.g., a provider-specific ID)
    • generated by LangChain upon creation (a uuid prefixed with 'lc-')
    index?: number

    Index of block in aggregate response. Used during streaming.

    text: string

    Block text.

    type: "text"

    Type of the content block