Class: Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryVersion
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryVersion
- Defined in:
- lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb
Overview
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#content ⇒ String?
The memory’s UTF-8 text content as of this version.
-
#content_sha256 ⇒ String?
Lowercase hex SHA-256 digest of ‘content` as of this version (64 characters).
-
#content_size_bytes ⇒ Integer?
Size of ‘content` in bytes as of this version.
-
#created_at ⇒ Time
A timestamp in RFC 3339 format.
-
#created_by ⇒ Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsSessionActor, ...
Identifies who performed a write or redact operation.
-
#id ⇒ String
Unique identifier for this version (a ‘memver_…` value).
-
#memory_id ⇒ String
ID of the memory this version snapshots (a ‘mem_…` value).
-
#memory_store_id ⇒ String
ID of the memory store this version belongs to (a ‘memstore_…` value).
-
#operation ⇒ Symbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryVersionOperation
The kind of mutation a ‘memory_version` records.
-
#path ⇒ String?
The memory’s path at the time of this write.
-
#redacted_at ⇒ Time?
A timestamp in RFC 3339 format.
-
#redacted_by ⇒ Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsSessionActor, ...
Identifies who performed a write or redact operation.
- #type ⇒ Symbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryVersion::Type
Instance Method Summary collapse
-
#initialize(id:, created_at:, memory_id:, memory_store_id:, operation:, type:, content: nil, content_sha256: nil, content_size_bytes: nil, created_by: nil, path: nil, redacted_at: nil, redacted_by: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see BetaManagedAgentsMemoryVersion for more details.
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(id:, created_at:, memory_id:, memory_store_id:, operation:, type:, content: nil, content_sha256: nil, content_size_bytes: nil, created_by: nil, path: nil, redacted_at: nil, redacted_by: nil) ⇒ Object
Some parameter documentations has been truncated, see Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryVersion for more details.
A ‘memory_version` object: one immutable, attributed row in a memory’s append-only history. Every non-no-op mutation to a memory produces a new version. Versions belong to the store (not the individual memory) and persist after the memory is deleted. Retrieving a redacted version returns 200 with ‘content`, `path`, `content_size_bytes`, and `content_sha256` set to `null`; branch on `redacted_at`, not HTTP status.
|
|
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb', line 103
|
Instance Attribute Details
#content ⇒ String?
The memory’s UTF-8 text content as of this version. ‘null` when `view=basic`, when `operation` is `deleted`, or when `redacted_at` is set.
53 |
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb', line 53 optional :content, String, nil?: true |
#content_sha256 ⇒ String?
Lowercase hex SHA-256 digest of ‘content` as of this version (64 characters). `null` when `redacted_at` is set or `operation` is `deleted`. Populated regardless of `view` otherwise.
61 |
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb', line 61 optional :content_sha256, String, nil?: true |
#content_size_bytes ⇒ Integer?
Size of ‘content` in bytes as of this version. `null` when `redacted_at` is set or `operation` is `deleted`. Populated regardless of `view` otherwise.
68 |
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb', line 68 optional :content_size_bytes, Integer, nil?: true |
#created_at ⇒ Time
A timestamp in RFC 3339 format
19 |
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb', line 19 required :created_at, Time |
#created_by ⇒ Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsSessionActor, ...
Identifies who performed a write or redact operation. Captured at write time on the ‘memory_version` row. The API key that created a session is not recorded on agent writes; attribution answers who made the write, not who is ultimately responsible. Look up session provenance separately via the [Sessions API](/en/api/sessions-retrieve).
78 |
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb', line 78 optional :created_by, union: -> { Anthropic::Beta::MemoryStores::BetaManagedAgentsActor } |
#id ⇒ String
Unique identifier for this version (a ‘memver_…` value).
13 |
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb', line 13 required :id, String |
#memory_id ⇒ String
ID of the memory this version snapshots (a ‘mem_…` value). Remains valid after the memory is deleted; pass it as `memory_id` to [List memory versions](/en/api/beta/memory_stores/memory_versions/list) to retrieve the full lineage including the `deleted` row.
28 |
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb', line 28 required :memory_id, String |
#memory_store_id ⇒ String
ID of the memory store this version belongs to (a ‘memstore_…` value).
34 |
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb', line 34 required :memory_store_id, String |
#operation ⇒ Symbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryVersionOperation
The kind of mutation a ‘memory_version` records. Every non-no-op mutation to a memory appends exactly one version row with one of these values.
41 |
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb', line 41 required :operation, enum: -> { Anthropic::Beta::MemoryStores::BetaManagedAgentsMemoryVersionOperation } |
#path ⇒ String?
The memory’s path at the time of this write. ‘null` if and only if `redacted_at` is set.
85 |
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb', line 85 optional :path, String, nil?: true |
#redacted_at ⇒ Time?
A timestamp in RFC 3339 format
91 |
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb', line 91 optional :redacted_at, Time, nil?: true |
#redacted_by ⇒ Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsSessionActor, ...
Identifies who performed a write or redact operation. Captured at write time on the ‘memory_version` row. The API key that created a session is not recorded on agent writes; attribution answers who made the write, not who is ultimately responsible. Look up session provenance separately via the [Sessions API](/en/api/sessions-retrieve).
101 |
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb', line 101 optional :redacted_by, union: -> { Anthropic::Beta::MemoryStores::BetaManagedAgentsActor } |
#type ⇒ Symbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemoryVersion::Type
46 |
# File 'lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb', line 46 required :type, enum: -> { Anthropic::Beta::MemoryStores::BetaManagedAgentsMemoryVersion::Type } |