Class: Google::ADK::RunConfig
- Inherits:
-
Object
- Object
- Google::ADK::RunConfig
- Defined in:
- lib/google/adk/context.rb
Overview
Configuration for agent run
Instance Attribute Summary collapse
-
#context_window_compression ⇒ Object
Returns the value of attribute context_window_compression.
-
#max_steps ⇒ Object
Returns the value of attribute max_steps.
-
#max_tokens ⇒ Object
Returns the value of attribute max_tokens.
-
#temperature ⇒ Object
Returns the value of attribute temperature.
-
#timeout_seconds ⇒ Object
Returns the value of attribute timeout_seconds.
Instance Method Summary collapse
-
#initialize(max_tokens: nil, temperature: 0.7, context_window_compression: false, max_steps: nil, timeout_seconds: nil) ⇒ RunConfig
constructor
Initialize run configuration.
Constructor Details
#initialize(max_tokens: nil, temperature: 0.7, context_window_compression: false, max_steps: nil, timeout_seconds: nil) ⇒ RunConfig
Initialize run configuration
33 34 35 36 37 38 39 40 41 |
# File 'lib/google/adk/context.rb', line 33 def initialize(max_tokens: nil, temperature: 0.7, context_window_compression: false, max_steps: nil, timeout_seconds: nil) @max_tokens = max_tokens @temperature = temperature @context_window_compression = context_window_compression @max_steps = max_steps @timeout_seconds = timeout_seconds end |
Instance Attribute Details
#context_window_compression ⇒ Object
Returns the value of attribute context_window_compression.
23 24 25 |
# File 'lib/google/adk/context.rb', line 23 def context_window_compression @context_window_compression end |
#max_steps ⇒ Object
Returns the value of attribute max_steps.
23 24 25 |
# File 'lib/google/adk/context.rb', line 23 def max_steps @max_steps end |
#max_tokens ⇒ Object
Returns the value of attribute max_tokens.
23 24 25 |
# File 'lib/google/adk/context.rb', line 23 def max_tokens @max_tokens end |
#temperature ⇒ Object
Returns the value of attribute temperature.
23 24 25 |
# File 'lib/google/adk/context.rb', line 23 def temperature @temperature end |
#timeout_seconds ⇒ Object
Returns the value of attribute timeout_seconds.
23 24 25 |
# File 'lib/google/adk/context.rb', line 23 def timeout_seconds @timeout_seconds end |