Class MemoryStoreCreateParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class MemoryStoreCreateParams implements Params
Create a Memory Store
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMemoryStoreCreateParams.BuilderA builder for MemoryStoreCreateParams.
public final classMemoryStoreCreateParams.BodyRequest parameters for creating a
memory_store.public final classMemoryStoreCreateParams.MetadataKey-value pairs for your own use, such as the end user that the store belongs to. The agent doesn't see them.
A store has at most 16 pairs. Keys are 1 to 64 characters long and values at most 512 characters.
-
Method Summary
Modifier and Type Method Description 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 Stringname()The name of the memory store, 1 to 255 characters long, without control characters. final Optional<String>description()Free-text description of what the store contains, up to 1,024 characters. final Optional<MemoryStoreCreateParams.Metadata>metadata()Key-value pairs for your own use, such as the end user that the store belongs to. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<MemoryStoreCreateParams.Metadata>_metadata()Returns the raw JSON value of metadata. 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 MemoryStoreCreateParams.BuildertoBuilder()final MemoryStoreCreateParams.Body_body()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 MemoryStoreCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of MemoryStoreCreateParams. -
-
Method Detail
-
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.
-
name
final String name()
The name of the memory store, 1 to 255 characters long, without control characters. Names don't have to be unique in a workspace.
In a session, the store's directory under
/mnt/memory/is based on this name. The name is lowercased and every run of characters other than ASCII letters and digits becomes one hyphen. The session's memory store resource gives the exact path inmount_path.See the memory guide to learn more about how agents access memory stores.
-
description
final Optional<String> description()
Free-text description of what the store contains, up to 1,024 characters. Included in the agent's system prompt when the store is attached, so word it to be useful to the agent.
-
metadata
final Optional<MemoryStoreCreateParams.Metadata> metadata()
Key-value pairs for your own use, such as the end user that the store belongs to. The agent doesn't see them.
A store has at most 16 pairs. Keys are 1 to 64 characters long and values at most 512 characters.
-
_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.
-
_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<MemoryStoreCreateParams.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, 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 MemoryStoreCreateParams.Builder toBuilder()
-
_body
final MemoryStoreCreateParams.Body _body()
-
_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.
-
builder
final static MemoryStoreCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of MemoryStoreCreateParams.
The following fields are required:
.name()
-
-
-
-