Class: Cadenya::Models::Agents::VariationAssignmentTool

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

Defined Under Namespace

Modules: Type

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(tool:, type:, id: nil) ⇒ Object

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

Parameters:



# File 'lib/cadenya/models/agents/variation_assignment_tool.rb', line 30

Instance Attribute Details

#idString? (readonly)

Returns the value of attribute id.

Returns:

  • (String, nil)


16
17
18
# File 'sig/cadenya/models/agents/variation_assignment_tool.rbs', line 16

def id
  @id
end

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

Parameters:

Returns:



16
# File 'lib/cadenya/models/agents/variation_assignment_tool.rb', line 16

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

#typeSymbol, Cadenya::Models::Agents::VariationAssignmentTool::Type

Parameters:

  • value (Cadenya::Models::Agents::VariationAssignmentTool::type_)

Returns:



21
# File 'lib/cadenya/models/agents/variation_assignment_tool.rb', line 21

required :type, enum: -> { Cadenya::Agents::VariationAssignmentTool::Type }

Instance Method Details

#id=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


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

def id=: (String) -> String

#to_hash{

Returns:

  • ({)


26
# File 'sig/cadenya/models/agents/variation_assignment_tool.rbs', line 26

def to_hash: -> {