Interface TextChatMessageAssistant

The definition of an assistant message.

interface TextChatMessageAssistant {
    content?: string;
    name?: string;
    refusal?: null | string;
    role: "assistant";
    tool_calls?: WatsonXAI.TextChatToolCall[];
}

Hierarchy (view full)

Properties

content?: string

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

name?: string

An optional name for the participant.

refusal?: null | string

The refusal message by the assistant.

role: "assistant"

The role of the messages author. Note that this parameter is case sensitive, make sure to use lower case.

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