Class MemoryUpdateParams.Builder
-
- All Implemented Interfaces:
public final class MemoryUpdateParams.BuilderA builder for MemoryUpdateParams.
-
-
Method Summary
-
-
Method Detail
-
memoryStoreId
final MemoryUpdateParams.Builder memoryStoreId(String memoryStoreId)
The ID of the memory store that holds the memory (
memstore_...).
-
memoryId
final MemoryUpdateParams.Builder memoryId(String memoryId)
The ID of the memory to update (
mem_...).
-
memoryId
final MemoryUpdateParams.Builder memoryId(Optional<String> memoryId)
Alias for calling Builder.memoryId with
memoryId.orElse(null).
-
view
final MemoryUpdateParams.Builder view(BetaManagedAgentsMemoryView view)
Whether a
memoryormemory_versionin the response includes itscontent. Defaults tofullon retrieve operations and tobasicon list, create, and update operations.With
full, list operations return at most 20 items per page.
-
view
final MemoryUpdateParams.Builder view(Optional<BetaManagedAgentsMemoryView> view)
Alias for calling Builder.view with
view.orElse(null).
-
betas
final MemoryUpdateParams.Builder betas(List<AnthropicBeta> betas)
This endpoint is in beta: requests must send
agent-memory-2026-07-22ormanaged-agents-2026-04-01in this header.
-
betas
final MemoryUpdateParams.Builder betas(Optional<List<AnthropicBeta>> betas)
Alias for calling Builder.betas with
betas.orElse(null).
-
workspaceId
final MemoryUpdateParams.Builder workspaceId(String workspaceId)
Optional header to select the Workspace for this request. The value is a Workspace ID (for example,
wrkspc_011CZkZaBF1tNoB5wlCeusgy).Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.
-
workspaceId
final MemoryUpdateParams.Builder workspaceId(Optional<String> workspaceId)
Alias for calling Builder.workspaceId with
workspaceId.orElse(null).
-
body
final MemoryUpdateParams.Builder body(MemoryUpdateParams.Body body)
Sets the entire request body.
This is generally only useful if you are already constructing the body separately. Otherwise, it's more convenient to use the top-level setters instead:
-
additionalHeaders
final MemoryUpdateParams.Builder additionalHeaders(Headers additionalHeaders)
-
additionalHeaders
final MemoryUpdateParams.Builder additionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
additionalQueryParams
final MemoryUpdateParams.Builder additionalQueryParams(QueryParams additionalQueryParams)
-
additionalQueryParams
final MemoryUpdateParams.Builder additionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
addBeta
final MemoryUpdateParams.Builder addBeta(AnthropicBeta beta)
Adds a single AnthropicBeta to betas.
-
addBeta
final MemoryUpdateParams.Builder addBeta(String value)
Sets addBeta to an arbitrary String.
You should usually call addBeta with a well-typed AnthropicBeta constant instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final MemoryUpdateParams.Builder content(String content)
New UTF-8 text content for the memory. Maximum 100 kB (102,400 bytes). Omit to leave the content unchanged (e.g., for a rename-only update).
-
content
final MemoryUpdateParams.Builder content(Optional<String> content)
Alias for calling Builder.content with
content.orElse(null).
-
content
final MemoryUpdateParams.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.
-
path
final MemoryUpdateParams.Builder path(String path)
The new path of the memory, which renames it. Omit it to keep the current path.
The memory keeps its
id. A path starts with/and has 1 to 20 segments. A segment can't be empty and can't be.or... A path can't contain control characters, format characters, or the line and paragraph separators U+2028 and U+2029. It must be in Unicode Normalization Form C and at most 1,024 bytes long. Paths are case-sensitive.
-
path
final MemoryUpdateParams.Builder path(Optional<String> path)
Alias for calling Builder.path with
path.orElse(null).
-
path
final MemoryUpdateParams.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.
-
precondition
final MemoryUpdateParams.Builder precondition(BetaManagedAgentsPrecondition precondition)
The condition that the memory must meet for the update to apply. Omit it to update unconditionally.
If the condition fails, the request fails with HTTP status 409.
-
precondition
final MemoryUpdateParams.Builder precondition(JsonField<BetaManagedAgentsPrecondition> precondition)
Sets Builder.precondition to an arbitrary JSON value.
You should usually call Builder.precondition with a well-typed BetaManagedAgentsPrecondition value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalBodyProperties
final MemoryUpdateParams.Builder additionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
putAdditionalBodyProperty
final MemoryUpdateParams.Builder putAdditionalBodyProperty(String key, JsonValue value)
-
putAllAdditionalBodyProperties
final MemoryUpdateParams.Builder putAllAdditionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
removeAdditionalBodyProperty
final MemoryUpdateParams.Builder removeAdditionalBodyProperty(String key)
-
removeAllAdditionalBodyProperties
final MemoryUpdateParams.Builder removeAllAdditionalBodyProperties(Set<String> keys)
-
putAdditionalHeader
final MemoryUpdateParams.Builder putAdditionalHeader(String name, String value)
-
putAdditionalHeaders
final MemoryUpdateParams.Builder putAdditionalHeaders(String name, Iterable<String> values)
-
putAllAdditionalHeaders
final MemoryUpdateParams.Builder putAllAdditionalHeaders(Headers additionalHeaders)
-
putAllAdditionalHeaders
final MemoryUpdateParams.Builder putAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
replaceAdditionalHeaders
final MemoryUpdateParams.Builder replaceAdditionalHeaders(String name, String value)
-
replaceAdditionalHeaders
final MemoryUpdateParams.Builder replaceAdditionalHeaders(String name, Iterable<String> values)
-
replaceAllAdditionalHeaders
final MemoryUpdateParams.Builder replaceAllAdditionalHeaders(Headers additionalHeaders)
-
replaceAllAdditionalHeaders
final MemoryUpdateParams.Builder replaceAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
removeAdditionalHeaders
final MemoryUpdateParams.Builder removeAdditionalHeaders(String name)
-
removeAllAdditionalHeaders
final MemoryUpdateParams.Builder removeAllAdditionalHeaders(Set<String> names)
-
putAdditionalQueryParam
final MemoryUpdateParams.Builder putAdditionalQueryParam(String key, String value)
-
putAdditionalQueryParams
final MemoryUpdateParams.Builder putAdditionalQueryParams(String key, Iterable<String> values)
-
putAllAdditionalQueryParams
final MemoryUpdateParams.Builder putAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
putAllAdditionalQueryParams
final MemoryUpdateParams.Builder putAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
replaceAdditionalQueryParams
final MemoryUpdateParams.Builder replaceAdditionalQueryParams(String key, String value)
-
replaceAdditionalQueryParams
final MemoryUpdateParams.Builder replaceAdditionalQueryParams(String key, Iterable<String> values)
-
replaceAllAdditionalQueryParams
final MemoryUpdateParams.Builder replaceAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
replaceAllAdditionalQueryParams
final MemoryUpdateParams.Builder replaceAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
removeAdditionalQueryParams
final MemoryUpdateParams.Builder removeAdditionalQueryParams(String key)
-
removeAllAdditionalQueryParams
final MemoryUpdateParams.Builder removeAllAdditionalQueryParams(Set<String> keys)
-
build
final MemoryUpdateParams build()
Returns an immutable instance of MemoryUpdateParams.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.memoryStoreId()
-
-
-
-