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

Constant Summary

Constants included from Internal::Type::RequestParameters

Internal::Type::RequestParameters::Anthropic

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: {}) ⇒ void

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. 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) —

    Selects which projection of a memory or memory_version the server returns. `

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

    Optional header to specify the beta version(s) you want to use.

  • 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: {})


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

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>?

Optional header to specify the beta version(s) you want to use.

Returns:



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

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. Defaults to 20.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


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

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. The results then include the version whose operation is deleted.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

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.



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

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)


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

optional :page, String

#service_account_id ⇒ String?

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

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :service_account_id, String

#session_id ⇒ String?

Return only versions written by the session with this ID.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :session_id, String

#view ⇒ Symbol, ...

Selects which projection of a memory or memory_version the server returns. basic returns the object with content set to null; full populates content. When omitted, the default is endpoint-specific: retrieve operations default to full; list, create, and update operations default to basic. Listing with view=full caps limit at 20.



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

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)


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

optional :workspace_id, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


100
# File 'sig/anthropic/models/beta/memory_stores/memory_version_list_params.rbs', line 100

def to_hash: -> {