> ## 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.chat_completion_message_tool_call.Function

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

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

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

!!! abstract "Usage Documentation"
[Models](/docs/api-reference/autogen/oai/oai_models/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" />

#### arguments

<br />

The arguments to call the function with, as generated by the model in JSON
format. Note that the model does not always generate valid JSON, and may
hallucinate parameters not defined by your function schema. Validate the
arguments in your code before calling your function.

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

#### model\_config

<br />

<br />

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

#### name

<br />

The name of the function to call.
