Class: Cadenya::Models::Agents::VariationAssignment

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

Overview

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

#initialize(id: nil, agent: nil, tool: nil, tool_set: nil) ⇒ Object

Some parameter documentations has been truncated, see Cadenya::Models::Agents::VariationAssignment for more details.

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`.

Parameters:

  • id (String) (defaults to: nil)
  • agent (Cadenya::Models::BareMetadata) (defaults to: nil)

    BareMetadata contains the minimal metadata for a resource: the ID and an

  • tool (Cadenya::Models::BareMetadata) (defaults to: nil)

    BareMetadata contains the minimal metadata for a resource: the ID and an

  • tool_set (Cadenya::Models::BareMetadata) (defaults to: nil)

    BareMetadata contains the minimal metadata for a resource: the ID and an



# File 'lib/cadenya/models/agents/variation_assignment.rb', line 48

Instance Attribute Details

#agentCadenya::Models::BareMetadata?

BareMetadata contains the minimal metadata for a resource: the ID and an optional human-readable name. These are used for reference fields where the full metadata (account scoping, timestamps, labels, external IDs) is not needed —e.g., the tool references inside an agent variation spec or the tools assigned to an objective. Both fields are server-populated; clients provide IDs through sibling fields rather than by constructing a BareMetadata themselves.



17
# File 'lib/cadenya/models/agents/variation_assignment.rb', line 17

optional :agent, -> { Cadenya::BareMetadata }

#toolCadenya::Models::BareMetadata?

BareMetadata contains the minimal metadata for a resource: the ID and an optional human-readable name. These are used for reference fields where the full metadata (account scoping, timestamps, labels, external IDs) is not needed —e.g., the tool references inside an agent variation spec or the tools assigned to an objective. Both fields are server-populated; clients provide IDs through sibling fields rather than by constructing a BareMetadata themselves.



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

optional :tool, -> { Cadenya::BareMetadata }

#tool_setCadenya::Models::BareMetadata?

BareMetadata contains the minimal metadata for a resource: the ID and an optional human-readable name. These are used for reference fields where the full metadata (account scoping, timestamps, labels, external IDs) is not needed —e.g., the tool references inside an agent variation spec or the tools assigned to an objective. Both fields are server-populated; clients provide IDs through sibling fields rather than by constructing a BareMetadata themselves.



39
# File 'lib/cadenya/models/agents/variation_assignment.rb', line 39

optional :tool_set, -> { Cadenya::BareMetadata }, api_name: :toolSet