Class BetaManagedAgentsMemory
-
- All Implemented Interfaces:
public final class BetaManagedAgentsMemoryA
memoryobject: a single text document at a hierarchical path inside a memory store. Thecontentfield is populated whenview=fullandnullwhenview=basic; thecontent_size_bytesandcontent_sha256fields are always populated so sync clients can diff without fetching content. Memories are addressed by theirmem_...ID; the path is the create key and can be changed via update.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsMemory.BuilderA builder for BetaManagedAgentsMemory.
public final classBetaManagedAgentsMemory.Type
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for this memory (a mem_...value).final StringcontentSha256()Lowercase hex SHA-256 digest of the UTF-8 contentbytes (64 characters).final IntegercontentSizeBytes()Size of contentin bytes (the UTF-8 plaintext length).final OffsetDateTimecreatedAt()A timestamp in RFC 3339 format final StringmemoryStoreId()ID of the memory store this memory belongs to (a memstore_...value).final StringmemoryVersionId()ID of the memory_versionrepresenting this memory's current content (amemver_...value).final Stringpath()Hierarchical path of the memory within the store, e.g. final BetaManagedAgentsMemory.Typetype()final OffsetDateTimeupdatedAt()A timestamp in RFC 3339 format final Optional<String>content()The memory's UTF-8 text content. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_contentSha256()Returns the raw JSON value of contentSha256. final JsonField<Integer>_contentSizeBytes()Returns the raw JSON value of contentSizeBytes. final JsonField<OffsetDateTime>_createdAt()Returns the raw JSON value of createdAt. final JsonField<String>_memoryStoreId()Returns the raw JSON value of memoryStoreId. final JsonField<String>_memoryVersionId()Returns the raw JSON value of memoryVersionId. final JsonField<String>_path()Returns the raw JSON value of path. final JsonField<BetaManagedAgentsMemory.Type>_type()Returns the raw JSON value of type. final JsonField<OffsetDateTime>_updatedAt()Returns the raw JSON value of updatedAt. final JsonField<String>_content()Returns the raw JSON value of content. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsMemory.BuildertoBuilder()final BetaManagedAgentsMemoryvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsMemory.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsMemory. -
-
Method Detail
-
id
final String id()
Unique identifier for this memory (a
mem_...value). Stable across renames; use this ID, not the path, to read, update, or delete the memory.
-
contentSha256
final String contentSha256()
Lowercase hex SHA-256 digest of the UTF-8
contentbytes (64 characters). The server applies no normalization, so clients can compute the same hash locally for staleness checks and as the value for acontent_sha256precondition on update. Always populated, regardless ofview.
-
contentSizeBytes
final Integer contentSizeBytes()
Size of
contentin bytes (the UTF-8 plaintext length). Always populated, regardless ofview.
-
createdAt
final OffsetDateTime createdAt()
A timestamp in RFC 3339 format
-
memoryStoreId
final String memoryStoreId()
ID of the memory store this memory belongs to (a
memstore_...value).
-
memoryVersionId
final String memoryVersionId()
ID of the
memory_versionrepresenting this memory's current content (amemver_...value). This is the authoritative head pointer;memory_versionobjects do not carry anis_latestflag, so compare against this field instead. Enumerate the full history via /en/api/beta/memory_stores/memory_versions/list.
-
path
final String path()
Hierarchical path of the memory within the store, e.g.
/projects/foo/notes.md. Always starts with/. Paths are case-sensitive and unique within a store. Maximum 1,024 bytes.
-
type
final BetaManagedAgentsMemory.Type type()
-
updatedAt
final OffsetDateTime updatedAt()
A timestamp in RFC 3339 format
-
content
final Optional<String> content()
The memory's UTF-8 text content. Populated when
view=full;nullwhenview=basic. Maximum 100 kB (102,400 bytes).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_contentSha256
final JsonField<String> _contentSha256()
Returns the raw JSON value of contentSha256.
Unlike contentSha256, this method doesn't throw if the JSON field has an unexpected type.
-
_contentSizeBytes
final JsonField<Integer> _contentSizeBytes()
Returns the raw JSON value of contentSizeBytes.
Unlike contentSizeBytes, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<OffsetDateTime> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_memoryStoreId
final JsonField<String> _memoryStoreId()
Returns the raw JSON value of memoryStoreId.
Unlike memoryStoreId, this method doesn't throw if the JSON field has an unexpected type.
-
_memoryVersionId
final JsonField<String> _memoryVersionId()
Returns the raw JSON value of memoryVersionId.
Unlike memoryVersionId, this method doesn't throw if the JSON field has an unexpected type.
-
_path
final JsonField<String> _path()
Returns the raw JSON value of path.
Unlike path, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<BetaManagedAgentsMemory.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_updatedAt
final JsonField<OffsetDateTime> _updatedAt()
Returns the raw JSON value of updatedAt.
Unlike updatedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_content
final JsonField<String> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsMemory.Builder toBuilder()
-
validate
final BetaManagedAgentsMemory validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaManagedAgentsMemory.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsMemory.
The following fields are required:
.id() .contentSha256() .contentSizeBytes() .createdAt() .memoryStoreId() .memoryVersionId() .path() .type() .updatedAt()
-
-
-
-