Class: Anthropic::Models::Beta::BetaManagedAgentsMemoryStore
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaManagedAgentsMemoryStore
- Defined in:
- lib/anthropic/models/beta/beta_managed_agents_memory_store.rb,
sig/anthropic/models/beta/beta_managed_agents_memory_store.rbs
Overview
Instance Attribute Summary collapse
-
#archived_at ⇒ Time?
When the memory store was archived, in RFC 3339, or
nullif it hasn't been. -
#created_at ⇒ Time
When the memory store was created, in RFC 3339.
-
#description ⇒ String
Free-text description of what the store contains, up to 1,024 characters.
-
#id ⇒ String
The unique ID of the memory store (
memstore_...). -
#metadata ⇒ Hash{Symbol=>String}
Key-value pairs for your own use, such as the end user that the store belongs to.
-
#name ⇒ String
Human-readable name for the store.
- #type ⇒ Symbol, :memory_store
-
#updated_at ⇒ Time
When the memory store was last changed, in RFC 3339.
Instance Method Summary collapse
-
#initialize ⇒ BetaManagedAgentsMemoryStore
constructor
A new instance of BetaManagedAgentsMemoryStore.
- #to_hash ⇒ { id: String, archived_at: Time?, created_at: Time, description: String, metadata: ::Hash[Symbol, String], name: String, type: :memory_store, updated_at: Time }
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 ⇒ BetaManagedAgentsMemoryStore
Returns a new instance of BetaManagedAgentsMemoryStore.
35 36 37 38 39 40 41 42 43 44 |
# File 'sig/anthropic/models/beta/beta_managed_agents_memory_store.rbs', line 35
def initialize: (
id: String,
archived_at: Time?,
created_at: Time,
description: String,
metadata: ::Hash[Symbol, String],
name: String,
updated_at: Time,
?type: :memory_store
) -> void
|
Instance Attribute Details
#archived_at ⇒ Time?
When the memory store was archived, in RFC 3339, or null if it hasn't been.
Archiving can't be undone. An archived store can't be attached to new sessions. You can't create or update its memories or update the store. You can still read and delete its memories, redact their versions, and delete the store.
See the memory guide to learn more about archiving.
27 |
# File 'lib/anthropic/models/beta/beta_managed_agents_memory_store.rb', line 27 required :archived_at, Time, nil?: true |
#created_at ⇒ Time
When the memory store was created, in RFC 3339.
33 |
# File 'lib/anthropic/models/beta/beta_managed_agents_memory_store.rb', line 33 required :created_at, Time |
#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. Empty string when unset.
41 |
# File 'lib/anthropic/models/beta/beta_managed_agents_memory_store.rb', line 41 required :description, String |
#id ⇒ String
The unique ID of the memory store (memstore_...). Use it to attach the store
to a session.
13 |
# File 'lib/anthropic/models/beta/beta_managed_agents_memory_store.rb', line 13 required :id, String |
#metadata ⇒ Hash{Symbol=>String}
Key-value pairs for your own use, such as the end user that the store belongs to.
A store has at most 16 pairs. Keys are 1 to 64 characters long and values at most 512 characters. You can't filter lists by metadata.
51 |
# File 'lib/anthropic/models/beta/beta_managed_agents_memory_store.rb', line 51 required :metadata, Anthropic::Internal::Type::HashOf[String] |
#name ⇒ String
Human-readable name for the store. 1–255 characters. The store's mount-path slug
under /mnt/memory/ is derived from this name.
58 |
# File 'lib/anthropic/models/beta/beta_managed_agents_memory_store.rb', line 58 required :name, String |
#type ⇒ Symbol, :memory_store
63 |
# File 'lib/anthropic/models/beta/beta_managed_agents_memory_store.rb', line 63 required :type, const: :memory_store |
#updated_at ⇒ Time
When the memory store was last changed, in RFC 3339.
Changing its name, description, or metadata updates it. Archiving the
store does too. Changes to the store's memories don't.
72 |
# File 'lib/anthropic/models/beta/beta_managed_agents_memory_store.rb', line 72 required :updated_at, Time |
Instance Method Details
#to_hash ⇒ { id: String, archived_at: Time?, created_at: Time, description: String, metadata: ::Hash[Symbol, String], name: String, type: :memory_store, updated_at: Time }
46 47 48 49 50 51 52 53 54 55 |
# File 'sig/anthropic/models/beta/beta_managed_agents_memory_store.rbs', line 46
def to_hash: -> {
id: String,
archived_at: Time?,
created_at: Time,
description: String,
metadata: ::Hash[Symbol, String],
name: String,
type: :memory_store,
updated_at: Time
}
|