Class: Cadenya::Types::AgentVariationSpec_CompactionConfig
- Inherits:
-
Object
- Object
- Cadenya::Types::AgentVariationSpec_CompactionConfig
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#summarization ⇒ Object
readonly
Returns the value of attribute summarization.
-
#tool_result_clearing ⇒ Object
readonly
Returns the value of attribute tool_result_clearing.
-
#trigger_threshold ⇒ Object
readonly
Returns the value of attribute trigger_threshold.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(trigger_threshold: nil, summarization: nil, tool_result_clearing: nil) ⇒ AgentVariationSpec_CompactionConfig
constructor
A new instance of AgentVariationSpec_CompactionConfig.
- #to_h ⇒ Object
Constructor Details
#initialize(trigger_threshold: nil, summarization: nil, tool_result_clearing: nil) ⇒ AgentVariationSpec_CompactionConfig
Returns a new instance of AgentVariationSpec_CompactionConfig.
723 724 725 726 727 |
# File 'lib/cadenya/types.rb', line 723 def initialize(trigger_threshold: nil, summarization: nil, tool_result_clearing: nil) @trigger_threshold = trigger_threshold @summarization = summarization @tool_result_clearing = tool_result_clearing end |
Instance Attribute Details
#summarization ⇒ Object (readonly)
Returns the value of attribute summarization.
721 722 723 |
# File 'lib/cadenya/types.rb', line 721 def summarization @summarization end |
#tool_result_clearing ⇒ Object (readonly)
Returns the value of attribute tool_result_clearing.
721 722 723 |
# File 'lib/cadenya/types.rb', line 721 def tool_result_clearing @tool_result_clearing end |
#trigger_threshold ⇒ Object (readonly)
Returns the value of attribute trigger_threshold.
721 722 723 |
# File 'lib/cadenya/types.rb', line 721 def trigger_threshold @trigger_threshold end |
Class Method Details
.from_json(data) ⇒ Object
729 730 731 732 733 734 735 |
# File 'lib/cadenya/types.rb', line 729 def self.from_json(data) new( trigger_threshold: data["triggerThreshold"], summarization: data["summarization"].nil? ? nil : Types::CompactionConfig_SummarizationStrategy.from_json(data["summarization"]), tool_result_clearing: data["toolResultClearing"].nil? ? nil : Types::CompactionConfig_ToolResultClearingStrategy.from_json(data["toolResultClearing"]), ) end |