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,
sig/anthropic/models/beta/memory_stores/memory_create_params.rbs

Overview

See Also:

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

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

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

Parameters:

  • memory_store_id (String)
  • content (String, nil)

    UTF-8 text content for the new memory. Maximum 100 kB (102,400 bytes). Required;

  • path (String)

    Hierarchical path for the new memory, e.g. /projects/foo/notes.md. Must start

  • view (Symbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryView) (defaults to: nil)

    Query parameter for view

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

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

  • workspace_id (String) (defaults to: nil)
  • request_options (Anthropic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


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


Instance Attribute Details

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

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

Returns:



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

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.

Parameters:

  • value (String, nil)

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

Parameters:

  • value (String)

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, or the Unicode line and paragraph separators (U+2028, U+2029), and must be NFC-normalized. Paths are case-sensitive.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :path, String

#viewSymbol, ...

Query parameter for view



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

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

#workspace_idString?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :workspace_id, String

Instance Method Details

#to_hash{

Returns:

  • ({)


52
# File 'sig/anthropic/models/beta/memory_stores/memory_create_params.rbs', line 52

def to_hash: -> {