Class: Cadenya::Models::Agents::AgentVariationSpecCompactionConfig

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cadenya/models/agents/agent_variation_spec_compaction_config.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

This class inherits a constructor from Cadenya::Internal::Type::BaseModel

Instance Attribute Details

#summarizationCadenya::Models::Agents::CompactionConfigSummarizationStrategy?

SummarizationStrategy configures LLM-powered summarization of older conversation turns.



12
# File 'lib/cadenya/models/agents/agent_variation_spec_compaction_config.rb', line 12

optional :summarization, -> { Cadenya::Agents::CompactionConfigSummarizationStrategy }

#tool_result_clearingCadenya::Models::Agents::CompactionConfigToolResultClearingStrategy?

ToolResultClearingStrategy configures clearing of older tool result content.



18
19
20
# File 'lib/cadenya/models/agents/agent_variation_spec_compaction_config.rb', line 18

optional :tool_result_clearing,
-> { Cadenya::Agents::CompactionConfigToolResultClearingStrategy },
api_name: :toolResultClearing

#trigger_thresholdFloat?

Trigger threshold as a percentage of the model’s context window (0.0 to 1.0). When input tokens reach this percentage of the model’s limit, compaction triggers. Default: 0.75 (75%)

Returns:

  • (Float, nil)


28
# File 'lib/cadenya/models/agents/agent_variation_spec_compaction_config.rb', line 28

optional :trigger_threshold, Float, api_name: :triggerThreshold