A chat completion message generated by the model.

interface ChatCompletionStoreMessage {
    annotations?: OpenAIClient.Chat.Completions.ChatCompletionMessage.Annotation[];
    audio?: null | ChatCompletionAudio;
    content: null | string;
    function_call?: null | OpenAIClient.Chat.Completions.ChatCompletionMessage.FunctionCall;
    id: string;
    refusal: null | string;
    role: "assistant";
    tool_calls?: ChatCompletionMessageToolCall[];
}

Hierarchy (view full)

Properties

Annotations for the message, when applicable, as when using the web search tool.

audio?: null | ChatCompletionAudio

If the audio output modality is requested, this object contains data about the audio response from the model. Learn more.

content: null | string

The contents of the message.

Deprecated and replaced by tool_calls. The name and arguments of a function that should be called, as generated by the model.

id: string

The identifier of the chat message.

refusal: null | string

The refusal message generated by the model.

role: "assistant"

The role of the author of this message.

The tool calls generated by the model, such as function calls.