Skip to content

ChatCompletionMessage

autogen.oai.oai_models.chat_completion_message.ChatCompletionMessage #

Bases: BaseModel

model_config class-attribute #

model_config = ConfigDict(extra='allow')

content class-attribute instance-attribute #

content = None

The contents of the message.

refusal class-attribute instance-attribute #

refusal = None

The refusal message generated by the model.

role instance-attribute #

role

The role of the author of this message.

audio class-attribute instance-attribute #

audio = None

If the audio output modality is requested, this object contains data about the audio response from the model. Learn more.

function_call class-attribute instance-attribute #

function_call = None

Deprecated and replaced by tool_calls.

The name and arguments of a function that should be called, as generated by the model.

tool_calls class-attribute instance-attribute #

tool_calls = None

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