A message result.

interface TextChatResultMessage {
    content?: string;
    refusal?: string;
    role: string;
    tool_calls?: WatsonXAI.TextChatToolCall[];
}

Properties

content?: string

The contents of the message.

refusal?: string

The refusal message generated by the model.

role: string

The role of the author of this message.

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