Class BetaManagedAgentsMemoryVersion.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsMemoryVersion.BuilderA builder for BetaManagedAgentsMemoryVersion.
-
-
Method Summary
-
-
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)
A timestamp 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)
ID of the memory this version snapshots (a
mem_...value). Remains valid after the memory is deleted; pass it asmemory_idto /en/api/beta/memory_stores/memory_versions/list to retrieve the full lineage including thedeletedrow.
-
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 a
memory_versionrecords. Every non-no-op mutation to a memory appends exactly one version row with one of these values.
-
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(JsonField<BetaManagedAgentsMemoryVersion.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.
-
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)
Identifies who performed a write or redact operation. Captured at write time on the
memory_versionrow. 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 /en/api/sessions-retrieve.
-
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).
-
sessionCreatedBy
final BetaManagedAgentsMemoryVersion.Builder sessionCreatedBy(String sessionId)
Alias for calling createdBy with the following:
BetaManagedAgentsSessionActor.builder() .type(BetaManagedAgentsSessionActor.Type.SESSION_ACTOR) .sessionId(sessionId) .build()
-
apiCreatedBy
final BetaManagedAgentsMemoryVersion.Builder apiCreatedBy(String apiKeyId)
Alias for calling createdBy with the following:
BetaManagedAgentsApiActor.builder() .type(BetaManagedAgentsApiActor.Type.API_ACTOR) .apiKeyId(apiKeyId) .build()
-
userCreatedBy
final BetaManagedAgentsMemoryVersion.Builder userCreatedBy(String userId)
Alias for calling createdBy with the following:
BetaManagedAgentsUserActor.builder() .type(BetaManagedAgentsUserActor.Type.USER_ACTOR) .userId(userId) .build()
-
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)
A timestamp in RFC 3339 format
-
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)
Identifies who performed a write or redact operation. Captured at write time on the
memory_versionrow. 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 /en/api/sessions-retrieve.
-
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).
-
sessionRedactedBy
final BetaManagedAgentsMemoryVersion.Builder sessionRedactedBy(String sessionId)
Alias for calling redactedBy with the following:
BetaManagedAgentsSessionActor.builder() .type(BetaManagedAgentsSessionActor.Type.SESSION_ACTOR) .sessionId(sessionId) .build()
-
apiRedactedBy
final BetaManagedAgentsMemoryVersion.Builder apiRedactedBy(String apiKeyId)
Alias for calling redactedBy with the following:
BetaManagedAgentsApiActor.builder() .type(BetaManagedAgentsApiActor.Type.API_ACTOR) .apiKeyId(apiKeyId) .build()
-
userRedactedBy
final BetaManagedAgentsMemoryVersion.Builder userRedactedBy(String userId)
Alias for calling redactedBy with the following:
BetaManagedAgentsUserActor.builder() .type(BetaManagedAgentsUserActor.Type.USER_ACTOR) .userId(userId) .build()
-
additionalProperties
final BetaManagedAgentsMemoryVersion.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
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() .type()
-
-
-
-