Class: Anthropic::Models::Beta::MemoryStores::MemoryCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::MemoryStores::MemoryCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/anthropic/models/beta/memory_stores/memory_create_params.rb,
sig/anthropic/models/beta/memory_stores/memory_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. -
#content ⇒ String?
The UTF-8 text content of the new memory.
-
#memory_store_id ⇒ String
The ID of the memory store to create the memory in (
memstore_...). -
#path ⇒ String
The path of the new memory, such as
/projects/foo/notes.md. -
#view ⇒ Symbol, ...
Whether a
memoryormemory_versionin the response includes itscontent. -
#workspace_id ⇒ String?
Optional header to select the Workspace for this request.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(memory_store_id:, content:, path:, view: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ MemoryCreateParams
constructor
Some parameter documentations has been truncated, see MemoryCreateParams for more details.
- #to_hash ⇒ { memory_store_id: String, content: String?, path: String, view: Anthropic::Models::Beta::MemoryStores::beta_managed_agents_memory_view, 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(memory_store_id:, content:, path:, view: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ MemoryCreateParams
Some parameter documentations has been truncated, see Anthropic::Models::Beta::MemoryStores::MemoryCreateParams for more details.
|
|
# File 'lib/anthropic/models/beta/memory_stores/memory_create_params.rb', line 66
|
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.
53 |
# File 'lib/anthropic/models/beta/memory_stores/memory_create_params.rb', line 53 optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] } |
#content ⇒ String?
The UTF-8 text content of the new memory. Pass "" to create an empty memory.
The maximum size is 100 kB (102,400 bytes).
24 |
# File 'lib/anthropic/models/beta/memory_stores/memory_create_params.rb', line 24 required :content, String, nil?: true |
#memory_store_id ⇒ String
The ID of the memory store to create the memory in (memstore_...).
16 |
# File 'lib/anthropic/models/beta/memory_stores/memory_create_params.rb', line 16 required :memory_store_id, String |
#path ⇒ String
The path of the new memory, such as /projects/foo/notes.md. Paths are
case-sensitive.
A path starts with / and has 1 to 20 segments. A segment can't be empty and
can't be . or ... A path can't contain control characters, format
characters, or the line and paragraph separators U+2028 and U+2029. It must be
in Unicode Normalization Form C and at most 1,024 bytes long.
36 |
# File 'lib/anthropic/models/beta/memory_stores/memory_create_params.rb', line 36 required :path, 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.
46 |
# File 'lib/anthropic/models/beta/memory_stores/memory_create_params.rb', line 46 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.
64 |
# File 'lib/anthropic/models/beta/memory_stores/memory_create_params.rb', line 64 optional :workspace_id, String |
Instance Method Details
#to_hash ⇒ { memory_store_id: String, content: String?, path: String, view: Anthropic::Models::Beta::MemoryStores::beta_managed_agents_memory_view, betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions }
52 53 54 55 56 57 58 59 60 |
# File 'sig/anthropic/models/beta/memory_stores/memory_create_params.rbs', line 52
def to_hash: -> {
memory_store_id: String,
content: String?,
path: String,
view: Anthropic::Models::Beta::MemoryStores::beta_managed_agents_memory_view,
betas: ::Array[Anthropic::Models::anthropic_beta],
workspace_id: String,
request_options: Anthropic::RequestOptions
}
|