Class: Cadenya::Models::Agents::VariationMemoryLayerAssignment
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Cadenya::Models::Agents::VariationMemoryLayerAssignment
- Defined in:
- lib/cadenya/models/agents/variation_memory_layer_assignment.rb
Overview
Instance Attribute Summary collapse
-
#memory_layer ⇒ Cadenya::Models::BareMetadata?
BareMetadata contains the minimal metadata for a resource: the ID and an optional human-readable name.
-
#position ⇒ Integer?
Position in the variation’s baseline stack.
Instance Method Summary collapse
-
#initialize(id: nil, memory_layer: nil, position: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see VariationMemoryLayerAssignment for more details.
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, memory_layer: nil, position: nil) ⇒ Object
Some parameter documentations has been truncated, see Cadenya::Models::Agents::VariationMemoryLayerAssignment for more details.
VariationMemoryLayerAssignment attaches a single MemoryLayer to a variation at a given position in the variation’s baseline memory stack. A variation has at most one assignment per memory_layer_id.
Variations only support whole-layer attachments — entry pinning is an objective-level capability.
|
|
# File 'lib/cadenya/models/agents/variation_memory_layer_assignment.rb', line 38
|
Instance Attribute Details
#memory_layer ⇒ Cadenya::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_memory_layer_assignment.rb', line 17 optional :memory_layer, -> { Cadenya::BareMetadata }, api_name: :memoryLayer |
#position ⇒ Integer?
Position in the variation’s baseline stack. Lower values sit lower; the highest-position assignment is on top of the variation’s baseline. Gaps are fine — only relative position matters. Positions must be unique within a variation; a request that would collide with an existing assignment’s position is rejected with InvalidArgument.
27 |
# File 'lib/cadenya/models/agents/variation_memory_layer_assignment.rb', line 27 optional :position, Integer |