Class: Anthropic::Models::Beta::MemoryStores::MemoryVersionListParams

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_version_list_params.rb,
sig/anthropic/models/beta/memory_stores/memory_version_list_params.rbs

Overview

See Also:

  • Anthropic::Resources::Beta::MemoryStores::MemoryVersions#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:, api_key_id: nil, created_at_gte: nil, created_at_lte: nil, limit: nil, memory_id: nil, operation: nil, page: nil, service_account_id: nil, session_id: nil, view: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ MemoryVersionListParams

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

Parameters:

  • memory_store_id (String) —

    The ID of the memory store whose version history to list (memstore_...).

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

    Return only versions written with the API key that has this ID.

  • created_at_gte (Time) (defaults to: nil) —

    Return versions created at or after this time (inclusive).

  • created_at_lte (Time) (defaults to: nil) —

    Return versions created at or before this time (inclusive).

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

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

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

    Return only versions of the memory with this ID (mem_...).

  • operation (Symbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryVersionOperation) (defaults to: nil) —

    Return only versions that record this kind of change.

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

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

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

    Return only versions written by the service account with this ID (svac_...).

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

    Return only versions written by the session with this ID.

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

    Whether a memory or memory_version in the response includes its content. D

  • 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)
  • api_key_id: (String) (defaults to: nil)
  • created_at_gte: (Time) (defaults to: nil)
  • created_at_lte: (Time) (defaults to: nil)
  • limit: (Integer) (defaults to: nil)
  • memory_id: (String) (defaults to: nil)
  • operation: (Anthropic::Models::Beta::MemoryStores::beta_managed_agents_memory_version_operation) (defaults to: nil)
  • page: (String) (defaults to: nil)
  • service_account_id: (String) (defaults to: nil)
  • session_id: (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_version_list_params.rb', line 107

Instance Attribute Details

#api_key_id ⇒ String?

Return only versions written with the API key that has this ID.

Parameters:

  • (String)

Returns:

  • (String, nil)


22
# File 'lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb', line 22

optional :api_key_id, String

#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:



94
# File 'lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb', line 94

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

#created_at_gte ⇒ Time?

Return versions created at or after this time (inclusive).

Parameters:

  • (Time)

Returns:

  • (Time, nil)


28
# File 'lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb', line 28

optional :created_at_gte, Time

#created_at_lte ⇒ Time?

Return versions created at or before this time (inclusive).

Parameters:

  • (Time)

Returns:

  • (Time, nil)


34
# File 'lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb', line 34

optional :created_at_lte, Time

#limit ⇒ Integer?

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

With view=full, a page holds at most 20 versions.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


43
# File 'lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb', line 43

optional :limit, Integer

#memory_id ⇒ String?

Return only versions of the memory with this ID (mem_...).

The filter still works after the memory is deleted. While that memory's versions are retained, the results include the version whose operation is deleted.

Parameters:

  • (String)

Returns:

  • (String, nil)


52
# File 'lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb', line 52

optional :memory_id, String

#memory_store_id ⇒ String

The ID of the memory store whose version history to list (memstore_...).

Parameters:

  • value (String)

Returns:

  • (String)


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

required :memory_store_id, String

#operation ⇒ Symbol, ...

Return only versions that record this kind of change.

Parameters:

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

Returns:



58
# File 'lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb', line 58

optional :operation, enum: -> { Anthropic::Beta::MemoryStores::BetaManagedAgentsMemoryVersionOperation }

#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)


65
# File 'lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb', line 65

optional :page, String

#service_account_id ⇒ String?

Return only versions written by the service account with this ID (svac_...).

Parameters:

  • (String)

Returns:

  • (String, nil)


71
# File 'lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb', line 71

optional :service_account_id, String

#session_id ⇒ String?

Return only versions written by the session with this ID.

Parameters:

  • (String)

Returns:

  • (String, nil)


77
# File 'lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb', line 77

optional :session_id, String

#view ⇒ Symbol, ...

Whether a memory or memory_version in the response includes its content. Defaults to full on retrieve operations and to basic on list, create, and update operations.

With full, list operations return at most 20 items per page.

Parameters:

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

Returns:



87
# File 'lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb', line 87

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)


105
# File 'lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb', line 105

optional :workspace_id, String

Instance Method Details

#to_hash ⇒ { memory_store_id: String, api_key_id: String, created_at_gte: Time, created_at_lte: Time, limit: Integer, memory_id: String, operation: Anthropic::Models::Beta::MemoryStores::beta_managed_agents_memory_version_operation, page: String, service_account_id: String, session_id: 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, api_key_id: String, created_at_gte: Time, created_at_lte: Time, limit: Integer, memory_id: String, operation: Anthropic::Models::Beta::MemoryStores::beta_managed_agents_memory_version_operation, page: String, service_account_id: String, session_id: String, view: Anthropic::Models::Beta::MemoryStores::beta_managed_agents_memory_view, betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions })


100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# File 'sig/anthropic/models/beta/memory_stores/memory_version_list_params.rbs', line 100

def to_hash: -> {
  memory_store_id: String,
  api_key_id: String,
  created_at_gte: Time,
  created_at_lte: Time,
  limit: Integer,
  memory_id: String,
  operation: Anthropic::Models::Beta::MemoryStores::beta_managed_agents_memory_version_operation,
  page: String,
  service_account_id: String,
  session_id: String,
  view: Anthropic::Models::Beta::MemoryStores::beta_managed_agents_memory_view,
  betas: ::Array[Anthropic::Models::anthropic_beta],
  workspace_id: String,
  request_options: Anthropic::RequestOptions
}