Class: Cadenya::Models::MemoryLayerSpec

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

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(type:, description: nil, expires_at: nil, system_managed: nil) ⇒ Object

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

Parameters:

  • type (Symbol, Cadenya::Models::MemoryLayerSpec::Type)
  • description (String) (defaults to: nil)

    Human-readable description of the layer’s purpose. Encouraged for

  • expires_at (Time) (defaults to: nil)

    For layers with a finite lifetime (e.g., episodic), the time at which the

  • system_managed (Boolean) (defaults to: nil)

    Server-set. True for layers managed by the system (e.g., episodic layers



# File 'lib/cadenya/models/memory_layer_spec.rb', line 36

Instance Attribute Details

#descriptionString?

Human-readable description of the layer’s purpose. Encouraged for user-created layers; system-managed layers may have a generated description.

Returns:

  • (String, nil)


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

optional :description, String

#typeSymbol, Cadenya::Models::MemoryLayerSpec::Type



9
# File 'lib/cadenya/models/memory_layer_spec.rb', line 9

required :type, enum: -> { Cadenya::MemoryLayerSpec::Type }