langchain.js
    Preparing search index...

    Reasoning output from a LLM.

    interface Reasoning {
        id?: string;
        index?: number;
        reasoning: string;
        type: "reasoning";
        [key: string]: unknown;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: string]: unknown

      Arbitrary properties

    Index

    Properties

    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.

    reasoning: string

    Reasoning text.

    Either the thought summary or the raw reasoning text itself. This is often parsed from <think> tags in the model's response.

    type: "reasoning"

    Type of the content block