Class: Anthropic::Models::Beta::MemoryStoreCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::MemoryStoreCreateParams
- 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
Instance Attribute Summary collapse
-
#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?
This endpoint is in beta: requests must send
agent-memory-2026-07-22ormanaged-agents-2026-04-01in this header. -
#description ⇒ String?
Free-text description of what the store contains, up to 1,024 characters.
-
#metadata ⇒ Hash{Symbol=>String}?
Key-value pairs for your own use, such as the end user that the store belongs to.
-
#name ⇒ String
The name of the memory store, 1 to 255 characters long, without control characters.
-
#workspace_id ⇒ String?
Optional header to select the Workspace for this request.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(name:, description: nil, metadata: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ MemoryStoreCreateParams
constructor
Some parameter documentations has been truncated, see MemoryStoreCreateParams for more details.
- #to_hash ⇒ { name: String, description: String, metadata: ::Hash[Symbol, String], betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions }
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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.
|
|
# 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.
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.
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.
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.
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.
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 }
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
}
|