langchain.js
    Preparing search index...

    Interface XAIResponsesPreviousResponse

    Previous response structure that can be included in the input array. Used for multi-turn conversations with assistant outputs.

    interface XAIResponsesPreviousResponse {
        logprobs?: XAIResponsesLogprobs;
        refusal?: string;
        role: "assistant";
        text?: string;
        tool_calls?: XAIResponsesToolCall[];
        type: "message";
    }
    Index

    Properties

    Log probabilities from the previous response.

    refusal?: string

    Refusal message if the model refused to respond.

    role: "assistant"

    The role for previous assistant responses.

    text?: string

    The text output from the previous response.

    tool_calls?: XAIResponsesToolCall[]

    Tool calls made in the previous response.

    type: "message"

    The type identifier for previous response.