> ## 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.Choice

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

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

```python theme={null}
Choice(**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" />

#### finish\_reason

<br />

The reason the model stopped generating tokens.<br />This will be `stop` if the model hit a natural stop point or a provided stop
sequence, `length` if the maximum number of tokens specified in the request was
reached, `content_filter` if content was omitted due to a flag from our content
filters, `tool_calls` if the model called a tool, or `function_call`
(deprecated) if the model called a function.

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

#### index

<br />

The index of the choice in the list of choices.

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

#### logprobs

<br />

Log probability information for the choice.

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

#### message

<br />

A chat completion message generated by the model.

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

#### model\_config

<br />

<br />
