Class: Anthropic::Models::Beta::MemoryStores::MemoryCreateParams

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_create_params.rb

Overview

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:, content:, path:, view: nil, betas: nil, request_options: {}) ⇒ Object

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

Parameters:



# File 'lib/anthropic/models/beta/memory_stores/memory_create_params.rb', line 45

Instance Attribute Details

#betasArray<String, Symbol, Anthropic::Models::AnthropicBeta>?

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

Returns:



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

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

#contentString?

UTF-8 text content for the new memory. Maximum 100 kB (102,400 bytes). Required; pass ‘“”` explicitly to create an empty memory.

Returns:

  • (String, nil)


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

required :content, String, nil?: true

#memory_store_idString

Returns:

  • (String)


15
# File 'lib/anthropic/models/beta/memory_stores/memory_create_params.rb', line 15

required :memory_store_id, String

#pathString

Hierarchical path for the new memory, e.g. ‘/projects/foo/notes.md`. Must start with `/`, contain at least one non-empty segment, and be at most 1,024 bytes. Must not contain empty segments, `.` or `..` segments, control or format characters, and must be NFC-normalized. Paths are case-sensitive.

Returns:

  • (String)


31
# File 'lib/anthropic/models/beta/memory_stores/memory_create_params.rb', line 31

required :path, String

#viewSymbol, ...

Query parameter for view



37
# File 'lib/anthropic/models/beta/memory_stores/memory_create_params.rb', line 37

optional :view, enum: -> { Anthropic::Beta::MemoryStores::BetaManagedAgentsMemoryView }