Class BetaManagedAgentsMemory.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsMemory.BuilderA builder for BetaManagedAgentsMemory.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaManagedAgentsMemory.Builder id(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.
-
id
final BetaManagedAgentsMemory.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
contentSha256
final BetaManagedAgentsMemory.Builder contentSha256(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.
-
contentSha256
final BetaManagedAgentsMemory.Builder contentSha256(JsonField<String> contentSha256)
Sets Builder.contentSha256 to an arbitrary JSON value.
You should usually call Builder.contentSha256 with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
contentSizeBytes
final BetaManagedAgentsMemory.Builder contentSizeBytes(Integer contentSizeBytes)
Size of
contentin bytes (the UTF-8 plaintext length). Always populated, regardless ofview.
-
contentSizeBytes
final BetaManagedAgentsMemory.Builder contentSizeBytes(JsonField<Integer> contentSizeBytes)
Sets Builder.contentSizeBytes to an arbitrary JSON value.
You should usually call Builder.contentSizeBytes with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final BetaManagedAgentsMemory.Builder createdAt(OffsetDateTime createdAt)
A timestamp in RFC 3339 format
-
createdAt
final BetaManagedAgentsMemory.Builder createdAt(JsonField<OffsetDateTime> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
memoryStoreId
final BetaManagedAgentsMemory.Builder memoryStoreId(String memoryStoreId)
ID of the memory store this memory belongs to (a
memstore_...value).
-
memoryStoreId
final BetaManagedAgentsMemory.Builder memoryStoreId(JsonField<String> memoryStoreId)
Sets Builder.memoryStoreId to an arbitrary JSON value.
You should usually call Builder.memoryStoreId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
memoryVersionId
final BetaManagedAgentsMemory.Builder memoryVersionId(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.
-
memoryVersionId
final BetaManagedAgentsMemory.Builder memoryVersionId(JsonField<String> memoryVersionId)
Sets Builder.memoryVersionId to an arbitrary JSON value.
You should usually call Builder.memoryVersionId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
path
final BetaManagedAgentsMemory.Builder path(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.
-
path
final BetaManagedAgentsMemory.Builder path(JsonField<String> path)
Sets Builder.path to an arbitrary JSON value.
You should usually call Builder.path with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaManagedAgentsMemory.Builder type(BetaManagedAgentsMemory.Type type)
-
type
final BetaManagedAgentsMemory.Builder type(JsonField<BetaManagedAgentsMemory.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
updatedAt
final BetaManagedAgentsMemory.Builder updatedAt(OffsetDateTime updatedAt)
A timestamp in RFC 3339 format
-
updatedAt
final BetaManagedAgentsMemory.Builder updatedAt(JsonField<OffsetDateTime> updatedAt)
Sets Builder.updatedAt to an arbitrary JSON value.
You should usually call Builder.updatedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final BetaManagedAgentsMemory.Builder content(String content)
The memory's UTF-8 text content. Populated when
view=full;nullwhenview=basic. Maximum 100 kB (102,400 bytes).
-
content
final BetaManagedAgentsMemory.Builder content(Optional<String> content)
Alias for calling Builder.content with
content.orElse(null).
-
content
final BetaManagedAgentsMemory.Builder content(JsonField<String> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsMemory.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsMemory.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsMemory.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsMemory.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsMemory.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsMemory build()
Returns an immutable instance of BetaManagedAgentsMemory.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .contentSha256() .contentSizeBytes() .createdAt() .memoryStoreId() .memoryVersionId() .path() .type() .updatedAt()
-
-
-
-