Class BetaManagedAgentsMemoryVersion.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsMemoryVersion.BuilderA builder for BetaManagedAgentsMemoryVersion.
-
-
Method Summary
Modifier and Type Method Description final BetaManagedAgentsMemoryVersion.Builderid(String id)Unique identifier for this version (a memver_...value).final BetaManagedAgentsMemoryVersion.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final BetaManagedAgentsMemoryVersion.BuildercreatedAt(OffsetDateTime createdAt)When this version was written, in RFC 3339 format. final BetaManagedAgentsMemoryVersion.BuildercreatedAt(JsonField<OffsetDateTime> createdAt)Sets Builder.createdAt to an arbitrary JSON value. final BetaManagedAgentsMemoryVersion.BuildermemoryId(String memoryId)The ID of the memory that this version belongs to ( mem_...).final BetaManagedAgentsMemoryVersion.BuildermemoryId(JsonField<String> memoryId)Sets Builder.memoryId to an arbitrary JSON value. final BetaManagedAgentsMemoryVersion.BuildermemoryStoreId(String memoryStoreId)ID of the memory store this version belongs to (a memstore_...value).final BetaManagedAgentsMemoryVersion.BuildermemoryStoreId(JsonField<String> memoryStoreId)Sets Builder.memoryStoreId to an arbitrary JSON value. final BetaManagedAgentsMemoryVersion.Builderoperation(BetaManagedAgentsMemoryVersionOperation operation)The kind of mutation this version records: created,modified, ordeleted.final BetaManagedAgentsMemoryVersion.Builderoperation(JsonField<BetaManagedAgentsMemoryVersionOperation> operation)Sets Builder.operation to an arbitrary JSON value. final BetaManagedAgentsMemoryVersion.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final BetaManagedAgentsMemoryVersion.Buildercontent(String content)The memory's UTF-8 text content as of this version. final BetaManagedAgentsMemoryVersion.Buildercontent(Optional<String> content)Alias for calling Builder.content with content.orElse(null).final BetaManagedAgentsMemoryVersion.Buildercontent(JsonField<String> content)Sets Builder.content to an arbitrary JSON value. final BetaManagedAgentsMemoryVersion.BuildercontentSha256(String contentSha256)Lowercase hex SHA-256 digest of contentas of this version (64 characters).final BetaManagedAgentsMemoryVersion.BuildercontentSha256(Optional<String> contentSha256)Alias for calling Builder.contentSha256 with contentSha256.orElse(null).final BetaManagedAgentsMemoryVersion.BuildercontentSha256(JsonField<String> contentSha256)Sets Builder.contentSha256 to an arbitrary JSON value. final BetaManagedAgentsMemoryVersion.BuildercontentSizeBytes(Integer contentSizeBytes)Size of contentin bytes as of this version.final BetaManagedAgentsMemoryVersion.BuildercontentSizeBytes(Integer contentSizeBytes)Alias for Builder.contentSizeBytes. final BetaManagedAgentsMemoryVersion.BuildercontentSizeBytes(Optional<Integer> contentSizeBytes)Alias for calling Builder.contentSizeBytes with contentSizeBytes.orElse(null).final BetaManagedAgentsMemoryVersion.BuildercontentSizeBytes(JsonField<Integer> contentSizeBytes)Sets Builder.contentSizeBytes to an arbitrary JSON value. final BetaManagedAgentsMemoryVersion.BuildercreatedBy(BetaManagedAgentsActor createdBy)Who made this change to the memory, or nullif the author wasn't recorded.final BetaManagedAgentsMemoryVersion.BuildercreatedBy(JsonField<BetaManagedAgentsActor> createdBy)Sets Builder.createdBy to an arbitrary JSON value. final BetaManagedAgentsMemoryVersion.BuildercreatedBy(BetaManagedAgentsSessionActor session)Alias for calling createdBy with BetaManagedAgentsActor.ofSession(session).final BetaManagedAgentsMemoryVersion.BuildercreatedBy(BetaManagedAgentsApiActor api)Alias for calling createdBy with BetaManagedAgentsActor.ofApi(api).final BetaManagedAgentsMemoryVersion.BuildercreatedBy(BetaManagedAgentsUserActor user)Alias for calling createdBy with BetaManagedAgentsActor.ofUser(user).final BetaManagedAgentsMemoryVersion.BuildercreatedBy(BetaManagedAgentsServiceAccountActor serviceAccount)Alias for calling createdBy with BetaManagedAgentsActor.ofServiceAccount(serviceAccount).final BetaManagedAgentsMemoryVersion.Builderpath(String path)The memory's path at the time of this write. final BetaManagedAgentsMemoryVersion.Builderpath(Optional<String> path)Alias for calling Builder.path with path.orElse(null).final BetaManagedAgentsMemoryVersion.Builderpath(JsonField<String> path)Sets Builder.path to an arbitrary JSON value. final BetaManagedAgentsMemoryVersion.BuilderredactedAt(OffsetDateTime redactedAt)When the version was redacted, in RFC 3339, or nullif it hasn't been.final BetaManagedAgentsMemoryVersion.BuilderredactedAt(Optional<OffsetDateTime> redactedAt)Alias for calling Builder.redactedAt with redactedAt.orElse(null).final BetaManagedAgentsMemoryVersion.BuilderredactedAt(JsonField<OffsetDateTime> redactedAt)Sets Builder.redactedAt to an arbitrary JSON value. final BetaManagedAgentsMemoryVersion.BuilderredactedBy(BetaManagedAgentsActor redactedBy)Who redacted this version, or nullif it has not been redacted.final BetaManagedAgentsMemoryVersion.BuilderredactedBy(JsonField<BetaManagedAgentsActor> redactedBy)Sets Builder.redactedBy to an arbitrary JSON value. final BetaManagedAgentsMemoryVersion.BuilderredactedBy(BetaManagedAgentsSessionActor session)Alias for calling redactedBy with BetaManagedAgentsActor.ofSession(session).final BetaManagedAgentsMemoryVersion.BuilderredactedBy(BetaManagedAgentsApiActor api)Alias for calling redactedBy with BetaManagedAgentsActor.ofApi(api).final BetaManagedAgentsMemoryVersion.BuilderredactedBy(BetaManagedAgentsUserActor user)Alias for calling redactedBy with BetaManagedAgentsActor.ofUser(user).final BetaManagedAgentsMemoryVersion.BuilderredactedBy(BetaManagedAgentsServiceAccountActor serviceAccount)Alias for calling redactedBy with BetaManagedAgentsActor.ofServiceAccount(serviceAccount).final BetaManagedAgentsMemoryVersion.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaManagedAgentsMemoryVersion.BuildersessionCreatedBy(String sessionId)Alias for calling createdBy with the following: BetaManagedAgentsSessionActor.builder() .sessionId(sessionId) .build()final BetaManagedAgentsMemoryVersion.BuilderapiCreatedBy(String apiKeyId)Alias for calling createdBy with the following: BetaManagedAgentsApiActor.builder() .apiKeyId(apiKeyId) .build()final BetaManagedAgentsMemoryVersion.BuilderuserCreatedBy(String userId)Alias for calling createdBy with the following: BetaManagedAgentsUserActor.builder() .userId(userId) .build()final BetaManagedAgentsMemoryVersion.BuilderserviceAccountCreatedBy(String serviceAccountId)Alias for calling createdBy with the following: BetaManagedAgentsServiceAccountActor.builder() .serviceAccountId(serviceAccountId) .build()final BetaManagedAgentsMemoryVersion.BuildersessionRedactedBy(String sessionId)Alias for calling redactedBy with the following: BetaManagedAgentsSessionActor.builder() .sessionId(sessionId) .build()final BetaManagedAgentsMemoryVersion.BuilderapiRedactedBy(String apiKeyId)Alias for calling redactedBy with the following: BetaManagedAgentsApiActor.builder() .apiKeyId(apiKeyId) .build()final BetaManagedAgentsMemoryVersion.BuilderuserRedactedBy(String userId)Alias for calling redactedBy with the following: BetaManagedAgentsUserActor.builder() .userId(userId) .build()final BetaManagedAgentsMemoryVersion.BuilderserviceAccountRedactedBy(String serviceAccountId)Alias for calling redactedBy with the following: BetaManagedAgentsServiceAccountActor.builder() .serviceAccountId(serviceAccountId) .build()final BetaManagedAgentsMemoryVersion.BuilderputAdditionalProperty(String key, JsonValue value)final BetaManagedAgentsMemoryVersion.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaManagedAgentsMemoryVersion.BuilderremoveAdditionalProperty(String key)final BetaManagedAgentsMemoryVersion.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaManagedAgentsMemoryVersionbuild()Returns an immutable instance of BetaManagedAgentsMemoryVersion. -
-
Method Detail
-
id
final BetaManagedAgentsMemoryVersion.Builder id(String id)
Unique identifier for this version (a
memver_...value).
-
id
final BetaManagedAgentsMemoryVersion.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.
-
createdAt
final BetaManagedAgentsMemoryVersion.Builder createdAt(OffsetDateTime createdAt)
When this version was written, in RFC 3339 format.
-
createdAt
final BetaManagedAgentsMemoryVersion.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.
-
memoryId
final BetaManagedAgentsMemoryVersion.Builder memoryId(String memoryId)
The ID of the memory that this version belongs to (
mem_...).The ID stays valid after the memory is deleted. Pass it as
memory_idto List Memory Versions to get the memory's retained versions, including itsdeletedversion while the lineage is retained.
-
memoryId
final BetaManagedAgentsMemoryVersion.Builder memoryId(JsonField<String> memoryId)
Sets Builder.memoryId to an arbitrary JSON value.
You should usually call Builder.memoryId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
memoryStoreId
final BetaManagedAgentsMemoryVersion.Builder memoryStoreId(String memoryStoreId)
ID of the memory store this version belongs to (a
memstore_...value).
-
memoryStoreId
final BetaManagedAgentsMemoryVersion.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.
-
operation
final BetaManagedAgentsMemoryVersion.Builder operation(BetaManagedAgentsMemoryVersionOperation operation)
The kind of mutation this version records:
created,modified, ordeleted.
-
operation
final BetaManagedAgentsMemoryVersion.Builder operation(JsonField<BetaManagedAgentsMemoryVersionOperation> operation)
Sets Builder.operation to an arbitrary JSON value.
You should usually call Builder.operation with a well-typed BetaManagedAgentsMemoryVersionOperation value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaManagedAgentsMemoryVersion.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_version")This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final BetaManagedAgentsMemoryVersion.Builder content(String content)
The memory's UTF-8 text content as of this version.
nullwhenview=basic, whenoperationisdeleted, or whenredacted_atis set.
-
content
final BetaManagedAgentsMemoryVersion.Builder content(Optional<String> content)
Alias for calling Builder.content with
content.orElse(null).
-
content
final BetaManagedAgentsMemoryVersion.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.
-
contentSha256
final BetaManagedAgentsMemoryVersion.Builder contentSha256(String contentSha256)
Lowercase hex SHA-256 digest of
contentas of this version (64 characters).nullwhenredacted_atis set oroperationisdeleted. Populated regardless ofviewotherwise.
-
contentSha256
final BetaManagedAgentsMemoryVersion.Builder contentSha256(Optional<String> contentSha256)
Alias for calling Builder.contentSha256 with
contentSha256.orElse(null).
-
contentSha256
final BetaManagedAgentsMemoryVersion.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 BetaManagedAgentsMemoryVersion.Builder contentSizeBytes(Integer contentSizeBytes)
Size of
contentin bytes as of this version.nullwhenredacted_atis set oroperationisdeleted. Populated regardless ofviewotherwise.
-
contentSizeBytes
final BetaManagedAgentsMemoryVersion.Builder contentSizeBytes(Integer contentSizeBytes)
Alias for Builder.contentSizeBytes.
This unboxed primitive overload exists for backwards compatibility.
-
contentSizeBytes
final BetaManagedAgentsMemoryVersion.Builder contentSizeBytes(Optional<Integer> contentSizeBytes)
Alias for calling Builder.contentSizeBytes with
contentSizeBytes.orElse(null).
-
contentSizeBytes
final BetaManagedAgentsMemoryVersion.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.
-
createdBy
final BetaManagedAgentsMemoryVersion.Builder createdBy(BetaManagedAgentsActor createdBy)
Who made this change to the memory, or
nullif the author wasn't recorded.Redacting the version doesn't change this field. A
session_actorhere is an agent that wrote through the store's mounted filesystem at/mnt/memory/. The version doesn't record the API key that created that session. So the author increated_byis who made the change, not who is ultimately responsible for it.You can retrieve the session to learn more about where the change came from.
-
createdBy
final BetaManagedAgentsMemoryVersion.Builder createdBy(JsonField<BetaManagedAgentsActor> createdBy)
Sets Builder.createdBy to an arbitrary JSON value.
You should usually call Builder.createdBy with a well-typed BetaManagedAgentsActor value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdBy
final BetaManagedAgentsMemoryVersion.Builder createdBy(BetaManagedAgentsSessionActor session)
Alias for calling createdBy with
BetaManagedAgentsActor.ofSession(session).
-
createdBy
final BetaManagedAgentsMemoryVersion.Builder createdBy(BetaManagedAgentsApiActor api)
Alias for calling createdBy with
BetaManagedAgentsActor.ofApi(api).
-
createdBy
final BetaManagedAgentsMemoryVersion.Builder createdBy(BetaManagedAgentsUserActor user)
Alias for calling createdBy with
BetaManagedAgentsActor.ofUser(user).
-
createdBy
final BetaManagedAgentsMemoryVersion.Builder createdBy(BetaManagedAgentsServiceAccountActor serviceAccount)
Alias for calling createdBy with
BetaManagedAgentsActor.ofServiceAccount(serviceAccount).
-
path
final BetaManagedAgentsMemoryVersion.Builder path(String path)
The memory's path at the time of this write.
nullif and only ifredacted_atis set.
-
path
final BetaManagedAgentsMemoryVersion.Builder path(Optional<String> path)
Alias for calling Builder.path with
path.orElse(null).
-
path
final BetaManagedAgentsMemoryVersion.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.
-
redactedAt
final BetaManagedAgentsMemoryVersion.Builder redactedAt(OffsetDateTime redactedAt)
When the version was redacted, in RFC 3339, or
nullif it hasn't been.When set,
content,path,content_size_bytes, andcontent_sha256arenull.See the memory guide to learn more about redaction.
-
redactedAt
final BetaManagedAgentsMemoryVersion.Builder redactedAt(Optional<OffsetDateTime> redactedAt)
Alias for calling Builder.redactedAt with
redactedAt.orElse(null).
-
redactedAt
final BetaManagedAgentsMemoryVersion.Builder redactedAt(JsonField<OffsetDateTime> redactedAt)
Sets Builder.redactedAt to an arbitrary JSON value.
You should usually call Builder.redactedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
redactedBy
final BetaManagedAgentsMemoryVersion.Builder redactedBy(BetaManagedAgentsActor redactedBy)
Who redacted this version, or
nullif it has not been redacted. In practice always anapi_actor,user_actor, orservice_account_actor(agents do not have a redact capability).
-
redactedBy
final BetaManagedAgentsMemoryVersion.Builder redactedBy(JsonField<BetaManagedAgentsActor> redactedBy)
Sets Builder.redactedBy to an arbitrary JSON value.
You should usually call Builder.redactedBy with a well-typed BetaManagedAgentsActor value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
redactedBy
final BetaManagedAgentsMemoryVersion.Builder redactedBy(BetaManagedAgentsSessionActor session)
Alias for calling redactedBy with
BetaManagedAgentsActor.ofSession(session).
-
redactedBy
final BetaManagedAgentsMemoryVersion.Builder redactedBy(BetaManagedAgentsApiActor api)
Alias for calling redactedBy with
BetaManagedAgentsActor.ofApi(api).
-
redactedBy
final BetaManagedAgentsMemoryVersion.Builder redactedBy(BetaManagedAgentsUserActor user)
Alias for calling redactedBy with
BetaManagedAgentsActor.ofUser(user).
-
redactedBy
final BetaManagedAgentsMemoryVersion.Builder redactedBy(BetaManagedAgentsServiceAccountActor serviceAccount)
Alias for calling redactedBy with
BetaManagedAgentsActor.ofServiceAccount(serviceAccount).
-
additionalProperties
final BetaManagedAgentsMemoryVersion.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
sessionCreatedBy
final BetaManagedAgentsMemoryVersion.Builder sessionCreatedBy(String sessionId)
Alias for calling createdBy with the following:
BetaManagedAgentsSessionActor.builder() .sessionId(sessionId) .build()
-
apiCreatedBy
final BetaManagedAgentsMemoryVersion.Builder apiCreatedBy(String apiKeyId)
Alias for calling createdBy with the following:
BetaManagedAgentsApiActor.builder() .apiKeyId(apiKeyId) .build()
-
userCreatedBy
final BetaManagedAgentsMemoryVersion.Builder userCreatedBy(String userId)
Alias for calling createdBy with the following:
BetaManagedAgentsUserActor.builder() .userId(userId) .build()
-
serviceAccountCreatedBy
final BetaManagedAgentsMemoryVersion.Builder serviceAccountCreatedBy(String serviceAccountId)
Alias for calling createdBy with the following:
BetaManagedAgentsServiceAccountActor.builder() .serviceAccountId(serviceAccountId) .build()
-
sessionRedactedBy
final BetaManagedAgentsMemoryVersion.Builder sessionRedactedBy(String sessionId)
Alias for calling redactedBy with the following:
BetaManagedAgentsSessionActor.builder() .sessionId(sessionId) .build()
-
apiRedactedBy
final BetaManagedAgentsMemoryVersion.Builder apiRedactedBy(String apiKeyId)
Alias for calling redactedBy with the following:
BetaManagedAgentsApiActor.builder() .apiKeyId(apiKeyId) .build()
-
userRedactedBy
final BetaManagedAgentsMemoryVersion.Builder userRedactedBy(String userId)
Alias for calling redactedBy with the following:
BetaManagedAgentsUserActor.builder() .userId(userId) .build()
-
serviceAccountRedactedBy
final BetaManagedAgentsMemoryVersion.Builder serviceAccountRedactedBy(String serviceAccountId)
Alias for calling redactedBy with the following:
BetaManagedAgentsServiceAccountActor.builder() .serviceAccountId(serviceAccountId) .build()
-
putAdditionalProperty
final BetaManagedAgentsMemoryVersion.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsMemoryVersion.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsMemoryVersion.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsMemoryVersion.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsMemoryVersion build()
Returns an immutable instance of BetaManagedAgentsMemoryVersion.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .createdAt() .memoryId() .memoryStoreId() .operation()
-
-
-
-