Class MemoryStoreUpdateParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class MemoryStoreUpdateParams implements Params
Update a Memory Store
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMemoryStoreUpdateParams.BuilderA builder for MemoryStoreUpdateParams.
public final classMemoryStoreUpdateParams.Bodypublic final classMemoryStoreUpdateParams.MetadataChanges to apply to the memory store's metadata. Keys you leave out keep their values.
Set a key to a string to add or replace it, or to
nullto remove it. After the change, the metadata can hold at most 16 key-value pairs. Keys are 1 to 64 characters long and values at most 512 characters.
-
Method Summary
Modifier and Type Method Description final Optional<String>memoryStoreId()The ID of the memory store to update ( memstore_...).final Optional<List<AnthropicBeta>>betas()This endpoint is in beta: requests must send agent-memory-2026-07-22ormanaged-agents-2026-04-01in this header.final Optional<String>workspaceId()Optional header to select the Workspace for this request. final Optional<String>description()New description for the store, up to 1,024 characters. final Optional<MemoryStoreUpdateParams.Metadata>metadata()Changes to apply to the memory store's metadata. final Optional<String>name()The new name of the memory store, 1 to 255 characters long, without control characters. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<MemoryStoreUpdateParams.Metadata>_metadata()Returns the raw JSON value of metadata. final JsonField<String>_name()Returns the raw JSON value of name. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final MemoryStoreUpdateParams.BuildertoBuilder()final MemoryStoreUpdateParams.Body_body()final String_pathParam(Integer index)Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. SpanData_spanData()The data for the OpenTelemetry span of a call to the method with these parameters. Booleanequals(Object other)IntegerhashCode()StringtoString()final static MemoryStoreUpdateParamsnone()final static MemoryStoreUpdateParams.Builderbuilder()Returns a mutable builder for constructing an instance of MemoryStoreUpdateParams. -
-
Method Detail
-
memoryStoreId
final Optional<String> memoryStoreId()
The ID of the memory store to update (
memstore_...).The request fails with HTTP status 400 if the store is archived.
-
betas
final Optional<List<AnthropicBeta>> betas()
This endpoint is in beta: requests must send
agent-memory-2026-07-22ormanaged-agents-2026-04-01in this header.
-
workspaceId
final Optional<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.
-
description
final Optional<String> description()
New description for the store, up to 1,024 characters. Pass an empty string to clear it.
-
metadata
final Optional<MemoryStoreUpdateParams.Metadata> metadata()
Changes to apply to the memory store's metadata. Keys you leave out keep their values.
Set a key to a string to add or replace it, or to
nullto remove it. After the change, the metadata can hold at most 16 key-value pairs. Keys are 1 to 64 characters long and values at most 512 characters.
-
name
final Optional<String> name()
The new name of the memory store, 1 to 255 characters long, without control characters.
Sessions created after the change use the new name for the store's directory under
/mnt/memory/.
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, this method doesn't throw if the JSON field has an unexpected type.
-
_metadata
final JsonField<MemoryStoreUpdateParams.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final MemoryStoreUpdateParams.Builder toBuilder()
-
_body
final MemoryStoreUpdateParams.Body _body()
-
_pathParam
final String _pathParam(Integer index)
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
_spanData
SpanData _spanData()
The data for the OpenTelemetry span of a call to the method with these parameters.
-
none
final static MemoryStoreUpdateParams none()
-
builder
final static MemoryStoreUpdateParams.Builder builder()
Returns a mutable builder for constructing an instance of MemoryStoreUpdateParams.
-
-
-
-