ChatRequestAssistantMessage interface

A request chat message representing response or action from the assistant.

Extends

Properties

content

The content of the message.

role

The chat role associated with this message, which is always 'assistant' for assistant messages.

tool_calls

The tool calls that must be resolved and have their outputs appended to subsequent input messages for the chat completions request to resolve as configured.

Property Details

content

The content of the message.

content?: null | string

Property Value

null | string

role

The chat role associated with this message, which is always 'assistant' for assistant messages.

role: "assistant"

Property Value

"assistant"

tool_calls

The tool calls that must be resolved and have their outputs appended to subsequent input messages for the chat completions request to resolve as configured.

tool_calls?: ChatCompletionsToolCall[]

Property Value