struct
AI::Provider::LanguageModel::OutputTokens
- AI::Provider::LanguageModel::OutputTokens
- Struct
- Value
- Object
Overview
Information about output tokens.
Included Modules
- JSON::Serializable
Defined in:
ai/provider/language_model/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(total : Int32 | Nil = nil, text : Int32 | Nil = nil, reasoning : Int32 | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#reasoning : Int32 | Nil
Number of reasoning tokens used.
-
#text : Int32 | Nil
Number of text tokens used.
-
#total : Int32 | Nil
Total number of output (completion) tokens used.