struct
AI::Google::ThinkingConfig
- AI::Google::ThinkingConfig
- Struct
- Value
- Object
Overview
Thinking configuration for models that support extended thinking.
Included Modules
- JSON::Serializable
Defined in:
ai/google/google_generative_ai_options.crConstructors
- .new(pull : JSON::PullParser)
- .new(thinking_budget : Int32 | Nil = nil, include_thoughts : Bool | Nil = nil, thinking_level : String | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#include_thoughts : Bool | Nil
Whether to include thoughts in output.
-
#thinking_budget : Int32 | Nil
Budget for thinking tokens.
-
#thinking_level : String | Nil
Thinking level: minimal, low, medium, high.
Constructor Detail
def self.new(thinking_budget : Int32 | Nil = nil, include_thoughts : Bool | Nil = nil, thinking_level : String | Nil = nil)
#