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)
The unique ID of the memory (
mem_...). It stays the same when the memory's path changes.To retrieve, update, or delete the memory, pass this ID.
-
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)
The size of the memory's
contentin UTF-8 bytes. It is set 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)
When this memory was created, 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)
The ID of the memory version that holds the memory's current content (
memver_...).Memory versions don't have a flag that marks the latest one. Compare their IDs with this field instead.
See the memory guide to learn more about memory versions.
-
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(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("memory")This method is primarily for setting the field to an undocumented or not yet supported value.
-
updatedAt
final BetaManagedAgentsMemory.Builder updatedAt(OffsetDateTime updatedAt)
When the memory was last changed, in RFC 3339.
To find out who made the change, look at
created_byon the memory version thatmemory_version_idreferences.
-
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, or
nullwhen the response usesview=basic.The maximum size is 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() .updatedAt()
-
-
-
-