langchain.js
    Preparing search index...

    Type Alias ChatOpenAIReasoningSummary

    ChatOpenAIReasoningSummary: Omit<
        OpenAIClient.Responses.ResponseReasoningItem,
        "summary",
    > & {
        summary: (
            OpenAIClient.Responses.ResponseReasoningItem.Summary & {
                index?: number;
            }
        )[];
    }

    The summary of a model's reasoning step.

    Type Declaration

    • summary: (OpenAIClient.Responses.ResponseReasoningItem.Summary & { index?: number })[]

      The summary of the reasoning step. The index field will be populated if the response was streamed. This allows LangChain to recompose the reasoning summary output correctly when the AIMessage is used as an input for future generation requests.