Class: Cadenya::Models::MemoryLayerSpec
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Cadenya::Models::MemoryLayerSpec
- Defined in:
- lib/cadenya/models/memory_layer_spec.rb,
sig/cadenya/models/memory_layer_spec.rbs
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#agent_id ⇒ String?
readonly
Returns the value of attribute agent_id.
-
#description ⇒ String?
Human-readable description of the layer's purpose.
-
#episodic_key ⇒ String?
readonly
Returns the value of attribute episodic_key.
-
#expires_at ⇒ Time?
readonly
Returns the value of attribute expires_at.
-
#system_managed ⇒ Boolean?
readonly
Returns the value of attribute system_managed.
- #type ⇒ Symbol, Cadenya::Models::MemoryLayerSpec::Type
Instance Method Summary collapse
- #agent_id ⇒ String readonly
- #episodic_key ⇒ String readonly
- #expires_at ⇒ Time readonly
-
#initialize(type:, agent_id: nil, description: nil, episodic_key: nil, expires_at: nil, system_managed: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see MemoryLayerSpec for more details.
- #system_managed ⇒ Boolean readonly
- #to_hash ⇒ {
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(type:, agent_id: nil, description: nil, episodic_key: nil, expires_at: nil, system_managed: nil) ⇒ Object
Some parameter documentations has been truncated, see Cadenya::Models::MemoryLayerSpec for more details.
|
|
# File 'lib/cadenya/models/memory_layer_spec.rb', line 50
|
Instance Attribute Details
#agent_id ⇒ String? (readonly)
Returns the value of attribute agent_id.
20 21 22 |
# File 'sig/cadenya/models/memory_layer_spec.rbs', line 20 def agent_id @agent_id end |
#description ⇒ String?
Human-readable description of the layer's purpose. Encouraged for user-created layers; system-managed layers may have a generated description.
16 |
# File 'lib/cadenya/models/memory_layer_spec.rb', line 16 optional :description, String |
#episodic_key ⇒ String? (readonly)
Returns the value of attribute episodic_key.
24 25 26 |
# File 'sig/cadenya/models/memory_layer_spec.rbs', line 24 def episodic_key @episodic_key end |
#expires_at ⇒ Time? (readonly)
Returns the value of attribute expires_at.
28 29 30 |
# File 'sig/cadenya/models/memory_layer_spec.rbs', line 28 def expires_at @expires_at end |
#system_managed ⇒ Boolean? (readonly)
Returns the value of attribute system_managed.
32 33 34 |
# File 'sig/cadenya/models/memory_layer_spec.rbs', line 32 def system_managed @system_managed end |
#type ⇒ Symbol, Cadenya::Models::MemoryLayerSpec::Type
9 |
# File 'lib/cadenya/models/memory_layer_spec.rb', line 9 required :type, enum: -> { Cadenya::MemoryLayerSpec::Type } |
Instance Method Details
#agent_id= ⇒ String (readonly)
22 |
# File 'sig/cadenya/models/memory_layer_spec.rbs', line 22
def agent_id=: (String) -> String
|
#episodic_key= ⇒ String (readonly)
26 |
# File 'sig/cadenya/models/memory_layer_spec.rbs', line 26
def episodic_key=: (String) -> String
|
#expires_at= ⇒ Time (readonly)
30 |
# File 'sig/cadenya/models/memory_layer_spec.rbs', line 30
def expires_at=: (Time) -> Time
|
#system_managed= ⇒ Boolean (readonly)
34 |
# File 'sig/cadenya/models/memory_layer_spec.rbs', line 34
def system_managed=: (bool) -> bool
|
#to_hash ⇒ {
45 |
# File 'sig/cadenya/models/memory_layer_spec.rbs', line 45
def to_hash: -> {
|