completion_usage
autogen.oai.oai_models.completion_usage.CompletionTokensDetails
CompletionTokensDetails
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/
A base class for creating Pydantic models.
Name | Description |
---|---|
**data | Type: Any |
Class Attributes
accepted_prediction_tokens
When using Predicted Outputs, the number of tokens in the prediction that appeared in the completion.
audio_tokens
Audio input tokens generated by the model.
model_config
reasoning_tokens
Tokens generated by the model for reasoning.
rejected_prediction_tokens
When using Predicted Outputs, the number of tokens in the prediction that did not appear in the completion. However, like reasoning tokens, these tokens are still counted in the total completion tokens for purposes of billing, output, and context window limits.