> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ag2.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.oai.oai_models.ChatCompletionMessage

<h2 id="autogen.oai.oai_models.ChatCompletionMessage" class="doc doc-heading">
  <code class="doc-symbol doc-symbol-heading doc-symbol-class" />

  <span class="doc doc-object-name doc-class-name">ChatCompletionMessage</span>
</h2>

```python theme={null}
ChatCompletionMessage(**data: Any)
```

!!! abstract "Usage Documentation"
[Models](/docs/api-reference/autogen/oai/concepts/models)

A base class for creating Pydantic models.<br />

<b>Parameters:</b>

| Name     | Description   |
| -------- | ------------- |
| `**data` | **Type:** Any |

### Class Attributes

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### annotations

<br />

Annotations for the message, when applicable, as when using the
[web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat).

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### audio

<br />

If the audio output modality is requested, this object contains data about the
audio response from the model.<br />[Learn more](https://platform.openai.com/docs/guides/audio).

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### content

<br />

The contents of the message.

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### function\_call

<br />

Deprecated and replaced by `tool_calls`.<br />The name and arguments of a function that should be called, as generated by the
model.

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### model\_config

<br />

<br />

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### refusal

<br />

The refusal message generated by the model.

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### role

<br />

The role of the author of this message.

<code class="doc-symbol doc-symbol-heading doc-symbol-attribute" />

#### tool\_calls

<br />

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