interface ChatCompletionAssistantMessageParam {
    audio?: null | OpenAIClient.Chat.Completions.ChatCompletionAssistantMessageParam.Audio;
    content?: null | string | (ChatCompletionContentPartText | ChatCompletionContentPartRefusal)[];
    function_call?: null | OpenAIClient.Chat.Completions.ChatCompletionAssistantMessageParam.FunctionCall;
    name?: string;
    refusal?: null | string;
    role: "assistant";
    tool_calls?: ChatCompletionMessageToolCall[];
}

Properties

Data about a previous audio response from the model. Learn more.

The contents of the assistant message. Required unless tool_calls or function_call is specified.

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

name?: string

An optional name for the participant. Provides the model information to differentiate between participants of the same role.

refusal?: null | string

The refusal message by the assistant.

role: "assistant"

The role of the messages author, in this case assistant.

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