Class: Anthropic::Models::Beta::MemoryStoreCreateParams

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

Overview

See Also:

  • Anthropic::Resources::Beta::MemoryStores#create

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(name:, description: nil, metadata: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ MemoryStoreCreateParams

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

Parameters:

  • name (String) —

    The name of the memory store, 1 to 255 characters long, without control characte

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

    Free-text description of what the store contains, up to 1,024 characters. Includ

  • metadata (Hash{Symbol=>String}) (defaults to: nil) —

    Key-value pairs for your own use, such as the end user that the store belongs to

  • 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: {})
  • name: (String)
  • description: (String) (defaults to: nil)
  • metadata: (::Hash[Symbol, String]) (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_store_create_params.rb', line 63

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:



50
# File 'lib/anthropic/models/beta/memory_store_create_params.rb', line 50

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

#description ⇒ String?

Free-text description of what the store contains, up to 1,024 characters. Included in the agent's system prompt when the store is attached, so word it to be useful to the agent.

Parameters:

  • (String)

Returns:

  • (String, nil)


33
# File 'lib/anthropic/models/beta/memory_store_create_params.rb', line 33

optional :description, String

#metadata ⇒ Hash{Symbol=>String}?

Key-value pairs for your own use, such as the end user that the store belongs to. The agent doesn't see them.

A store has at most 16 pairs. Keys are 1 to 64 characters long and values at most 512 characters.

Parameters:

  • (::Hash[Symbol, String])

Returns:

  • (Hash{Symbol=>String}, nil)


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

optional :metadata, Anthropic::Internal::Type::HashOf[String]

#name ⇒ String

The name of the memory store, 1 to 255 characters long, without control characters. Names don't have to be unique in a workspace.

In a session, the store's directory under /mnt/memory/ is based on this name. The name is lowercased and every run of characters other than ASCII letters and digits becomes one hyphen. The session's memory store resource gives the exact path in mount_path.

See the memory guide to learn more about how agents access memory stores.

Parameters:

  • value (String)

Returns:

  • (String)


25
# File 'lib/anthropic/models/beta/memory_store_create_params.rb', line 25

required :name, String

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


61
# File 'lib/anthropic/models/beta/memory_store_create_params.rb', line 61

optional :workspace_id, String

Instance Method Details

#to_hash ⇒ { name: String, description: String, metadata: ::Hash[Symbol, String], betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions }

Returns:

  • ({ name: String, description: String, metadata: ::Hash[Symbol, String], betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions })


47
48
49
50
51
52
53
54
# File 'sig/anthropic/models/beta/memory_store_create_params.rbs', line 47

def to_hash: -> {
  name: String,
  description: String,
  metadata: ::Hash[Symbol, String],
  betas: ::Array[Anthropic::Models::anthropic_beta],
  workspace_id: String,
  request_options: Anthropic::RequestOptions
}