langchain.js
    Preparing search index...

    Provider-specific content block.

    This is used to represent content blocks that are not part of the standard LangChain content model. If a provider's non-standard output includes reasoning and tool calls, it should be the adapter's job to parse that payload and emit the corresponding standard reasoning and tool call blocks.

    interface NonStandard<TValue extends Record<string, any> = Record<string, any>> {
        id?: string;
        type: "non_standard";
        value: TValue;
        [key: string]: unknown;
    }

    Type Parameters

    • TValue extends Record<string, any> = Record<string, any>

    Hierarchy (View Summary)

    Indexable

    • [key: string]: unknown

      Arbitrary properties

    Index

    Properties

    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-')
    type: "non_standard"

    Type of the content block

    value: TValue

    Provider-specific data