struct AI::Google::ThinkingConfig

Overview

Thinking configuration for models that support extended thinking.

Included Modules

Defined in:

ai/google/google_generative_ai_options.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(thinking_budget : Int32 | Nil = nil, include_thoughts : Bool | Nil = nil, thinking_level : String | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def include_thoughts : Bool | Nil #

Whether to include thoughts in output.


[View source]
def thinking_budget : Int32 | Nil #

Budget for thinking tokens.


[View source]
def thinking_level : String | Nil #

Thinking level: minimal, low, medium, high.


[View source]