Class: Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryPrefix

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rb,
sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rbs

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(path:, type: :memory_prefix) ⇒ BetaManagedAgentsMemoryPrefix

A directory marker that List Memories returns instead of the memories below the requested depth.

It stands for one or more memories whose paths start with path. It isn't a stored object and doesn't have an ID. Each marker counts toward the page limit.

Some parameter documentations has been truncated, see Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryPrefix for more details.

Parameters:

  • path (String) —

    The rolled-up path prefix, including a trailing / (e.g. /projects/foo/). Pas

  • type (Symbol, :memory_prefix) (defaults to: :memory_prefix)
  • path: (String)
  • type: (:memory_prefix) (defaults to: :memory_prefix)


# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rb', line 21

Instance Attribute Details

#path ⇒ String

The rolled-up path prefix, including a trailing / (e.g. /projects/foo/). Pass this value as path_prefix on a subsequent list call to drill into the directory.

Parameters:

  • value (String)

Returns:

  • (String)


14
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rb', line 14

required :path, String

#type ⇒ Symbol, :memory_prefix

Parameters:

  • value (:memory_prefix)

Returns:

  • (Symbol, :memory_prefix)


19
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rb', line 19

required :type, const: :memory_prefix

Instance Method Details

#to_hash ⇒ { path: String, type: :memory_prefix }

Returns:

  • ({ path: String, type: :memory_prefix })


15
# File 'sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rbs', line 15

def to_hash: -> { path: String, type: :memory_prefix }