Class: Anthropic::Models::Beta::MemoryStores::MemoryListParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/anthropic/models/beta/memory_stores/memory_list_params.rb,
sig/anthropic/models/beta/memory_stores/memory_list_params.rbs

Overview

See Also:

  • Anthropic::Resources::Beta::MemoryStores::Memories#list

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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(memory_store_id:, depth: nil, limit: nil, page: nil, path_prefix: nil, view: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ MemoryListParams

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

Parameters:

  • memory_store_id (String) —

    The ID of the memory store to list memories from (memstore_...).

  • depth (Integer) (defaults to: nil) —

    How far below path_prefix to list. Defaults to 0, which lists every memory b

  • limit (Integer) (defaults to: nil) —

    The maximum number of items to return per page, from 1 to 100. Defaults to 20.

  • page (String) (defaults to: nil) —

    The next_page value from a previous response, to get the next page. Omit it to

  • path_prefix (String) (defaults to: nil) —

    Return only memories whose path starts with this prefix, such as /notes/. This

  • view (Symbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryView) (defaults to: nil) —

    Whether each memory in the response includes content. Defaults to basic, whi

  • betas (Array<Symbol, String, Anthropic::Models::AnthropicBeta>) (defaults to: nil) —

    This endpoint is in beta: requests must send agent-memory-2026-07-22 or

  • workspace_id (String) (defaults to: nil) —

    Optional header to select the Workspace for this request. The value is a Workspa

  • request_options (Anthropic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})
  • memory_store_id: (String)
  • depth: (Integer) (defaults to: nil)
  • limit: (Integer) (defaults to: nil)
  • page: (String) (defaults to: nil)
  • path_prefix: (String) (defaults to: nil)
  • view: (Anthropic::Models::Beta::MemoryStores::beta_managed_agents_memory_view) (defaults to: nil)
  • betas: (::Array[Anthropic::Models::anthropic_beta]) (defaults to: nil)
  • workspace_id: (String) (defaults to: nil)
  • request_options: (Anthropic::request_opts) (defaults to: {})


# File 'lib/anthropic/models/beta/memory_stores/memory_list_params.rb', line 83

Instance Attribute Details

#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?

This endpoint is in beta: requests must send agent-memory-2026-07-22 or managed-agents-2026-04-01 in this header.

Parameters:

  • (::Array[Anthropic::Models::anthropic_beta])

Returns:



70
# File 'lib/anthropic/models/beta/memory_stores/memory_list_params.rb', line 70

optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }

#depth ⇒ Integer?

How far below path_prefix to list. Defaults to 0, which lists every memory below the prefix.

Pass 1 to list only the direct children. Deeper memories are then grouped into memory_prefix items.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


26
# File 'lib/anthropic/models/beta/memory_stores/memory_list_params.rb', line 26

optional :depth, Integer

#limit ⇒ Integer?

The maximum number of items to return per page, from 1 to 100. Defaults to 20.

With view=full, a page holds at most 20 items. memory and memory_prefix items both count toward the limit.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


35
# File 'lib/anthropic/models/beta/memory_stores/memory_list_params.rb', line 35

optional :limit, Integer

#memory_store_id ⇒ String

The ID of the memory store to list memories from (memstore_...).

Parameters:

  • value (String)

Returns:

  • (String)


16
# File 'lib/anthropic/models/beta/memory_stores/memory_list_params.rb', line 16

required :memory_store_id, String

#page ⇒ String?

The next_page value from a previous response, to get the next page. Omit it to get the first page.

Parameters:

  • (String)

Returns:

  • (String, nil)


42
# File 'lib/anthropic/models/beta/memory_stores/memory_list_params.rb', line 42

optional :page, String

#path_prefix ⇒ String?

Return only memories whose path starts with this prefix, such as /notes/. This value appears in request URLs. Do not include secrets or personally identifiable information.

Omit it to list the whole store. The prefix must end with / and matches whole segments, so /notes/ matches /notes/todo.md but not /notes-archive/todo.md.

Parameters:

  • (String)

Returns:

  • (String, nil)


54
# File 'lib/anthropic/models/beta/memory_stores/memory_list_params.rb', line 54

optional :path_prefix, String

#view ⇒ Symbol, ...

Whether each memory in the response includes content. Defaults to basic, which sets it to null.

With full, a page holds at most 20 items.

Parameters:

  • (Anthropic::Models::Beta::MemoryStores::beta_managed_agents_memory_view)

Returns:



63
# File 'lib/anthropic/models/beta/memory_stores/memory_list_params.rb', line 63

optional :view, enum: -> { Anthropic::Beta::MemoryStores::BetaManagedAgentsMemoryView }

#workspace_id ⇒ String?

Optional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy).

Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.

Parameters:

  • (String)

Returns:

  • (String, nil)


81
# File 'lib/anthropic/models/beta/memory_stores/memory_list_params.rb', line 81

optional :workspace_id, String

Instance Method Details

#to_hash ⇒ { memory_store_id: String, depth: Integer, limit: Integer, page: String, path_prefix: String, view: Anthropic::Models::Beta::MemoryStores::beta_managed_agents_memory_view, betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions }

Returns:

  • ({ memory_store_id: String, depth: Integer, limit: Integer, page: String, path_prefix: String, view: Anthropic::Models::Beta::MemoryStores::beta_managed_agents_memory_view, betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions })


68
69
70
71
72
73
74
75
76
77
78
# File 'sig/anthropic/models/beta/memory_stores/memory_list_params.rbs', line 68

def to_hash: -> {
  memory_store_id: String,
  depth: Integer,
  limit: Integer,
  page: String,
  path_prefix: String,
  view: Anthropic::Models::Beta::MemoryStores::beta_managed_agents_memory_view,
  betas: ::Array[Anthropic::Models::anthropic_beta],
  workspace_id: String,
  request_options: Anthropic::RequestOptions
}