Interface TextChatMessagesTextChatMessageAssistant

The definition of an assistant message.

interface TextChatMessagesTextChatMessageAssistant {
    content?: string;
    name?: string;
    refusal?: string;
    role: string;
    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. Provides the model information to differentiate between participants of the same role.

refusal?: string

The refusal message by the assistant.

role: string

The role of the messages author.

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