ChatResponseMessageOutput interface

A representation of a chat message as received in a response.

Properties

content

The content of the message.

role

The chat role associated with the message.

Possible values: "system", "user", "assistant", "tool", "developer"

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 the message.

Possible values: "system", "user", "assistant", "tool", "developer"

role: string

Property Value

string

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?: ChatCompletionsToolCallOutput[]

Property Value