Class: Cadenya::Models::Agents::AgentVariationSpecProgressiveDiscovery

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cadenya/models/agents/agent_variation_spec_progressive_discovery.rb,
sig/cadenya/models/agents/agent_variation_spec_progressive_discovery.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, 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

#initializeAgentVariationSpecProgressiveDiscovery

Returns a new instance of AgentVariationSpecProgressiveDiscovery.

Parameters:

  • hints: (::Array[String])
  • max_tools: (Integer)


18
# File 'sig/cadenya/models/agents/agent_variation_spec_progressive_discovery.rbs', line 18

def initialize: (?hints: ::Array[String], ?max_tools: Integer) -> void

Instance Attribute Details

#hintsArray<String>?

Free-text guidance appended to the discoverable-tools appendix in the system prompt. Hints steer the model's choice of tool names; they do not filter or rank anything, because tool_search matches names exactly rather than searching.

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


13
# File 'lib/cadenya/models/agents/agent_variation_spec_progressive_discovery.rb', line 13

optional :hints, Cadenya::Internal::Type::ArrayOf[String]

#max_toolsInteger?

The most tool names tool_search will load in a single call. Requesting more than this returns an error telling the model to retry in smaller batches -- it is a per-call batch limit, not a ceiling on how many tools an objective may end up with.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


22
# File 'lib/cadenya/models/agents/agent_variation_spec_progressive_discovery.rb', line 22

optional :max_tools, Integer, api_name: :maxTools

Instance Method Details

#to_hash{ hints: ::Array[String], max_tools: Integer }

Returns:

  • ({ hints: ::Array[String], max_tools: Integer })


20
# File 'sig/cadenya/models/agents/agent_variation_spec_progressive_discovery.rbs', line 20

def to_hash: -> { hints: ::Array[String], max_tools: Integer }