Module: Cadenya::Models::Agents::VariationAssignment

Extended by:
Internal::Type::Union
Defined in:
lib/cadenya/models/agents/variation_assignment.rb,
sig/cadenya/models/agents/variation_assignment.rbs

Overview

A read-only reference to a single tool, tool set, or sub-agent attached to a variation. Read the full set of assignments via AgentVariationInfo.assignments; mutations go through the dedicated add/remove assignment endpoints.

The id identifies the assignment itself (not the referenced resource) and is the handle used to remove the assignment. It is returned by the add endpoint and present on every entry in AgentVariationInfo.assignments.

See Also:

  • Cadenya::Resources::Agents::Variations#add_assignment

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

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

Methods included from Internal::Type::Converter

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

Instance Method Details

#self?.variants::Array[Cadenya::Models::Agents::variation_assignment]

Returns:

  • (::Array[Cadenya::Models::Agents::variation_assignment])


12
# File 'sig/cadenya/models/agents/variation_assignment.rbs', line 12

def self?.variants: -> ::Array[Cadenya::Models::Agents::variation_assignment]