Class MemoryUpdateParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class MemoryUpdateParams implements Params
Update a memory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMemoryUpdateParams.BuilderA builder for MemoryUpdateParams.
public final classMemoryUpdateParams.BodyRequest parameters for /en/api/beta/memory_stores/memories/update. At least one of
contentorpathmust be provided. Renaming onto a path occupied by a different memory returnsmemory_path_conflict_error(HTTP 409). Rename never overwrites; delete or rename the blocking memory first. An update where every supplied field already matches the stored value is a no-op: it returns 200 with the existing memory and writes no new version.
-
Method Summary
Modifier and Type Method Description final StringmemoryStoreId()final Optional<String>memoryId()final Optional<BetaManagedAgentsMemoryView>view()Query parameter for view final Optional<List<AnthropicBeta>>betas()Optional header to specify the beta version(s) you want to use. final Optional<String>content()New UTF-8 text content for the memory. final Optional<String>path()New path for the memory (a rename). final Optional<BetaManagedAgentsPrecondition>precondition()Optimistic-concurrency precondition: the update applies only if the memory's stored content_sha256equals the supplied value.final JsonField<String>_content()Returns the raw JSON value of content. final JsonField<String>_path()Returns the raw JSON value of path. final JsonField<BetaManagedAgentsPrecondition>_precondition()Returns the raw JSON value of precondition. 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 MemoryUpdateParams.BuildertoBuilder()final MemoryUpdateParams.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. Booleanequals(Object other)IntegerhashCode()StringtoString()final static MemoryUpdateParams.Builderbuilder()Returns a mutable builder for constructing an instance of MemoryUpdateParams. -
-
Method Detail
-
memoryStoreId
final String memoryStoreId()
-
view
final Optional<BetaManagedAgentsMemoryView> view()
Query parameter for view
-
betas
final Optional<List<AnthropicBeta>> betas()
Optional header to specify the beta version(s) you want to use.
-
content
final Optional<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).
-
path
final Optional<String> path()
New path for the memory (a rename). Must start with
/, contain at least one non-empty segment, and be at most 1,024 bytes. Must not contain empty segments,.or..segments, control or format characters, and must be NFC-normalized. Paths are case-sensitive. The memory'sidis preserved across renames. Omit to leave the path unchanged.
-
precondition
final Optional<BetaManagedAgentsPrecondition> precondition()
Optimistic-concurrency precondition: the update applies only if the memory's stored
content_sha256equals the supplied value. On mismatch, the request returnsmemory_precondition_failed_error(HTTP 409); re-read the memory and retry against the fresh state. If the precondition fails but the stored state already exactly matches the requestedcontentandpath, the server returns 200 instead of 409.
-
_content
final JsonField<String> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_path
final JsonField<String> _path()
Returns the raw JSON value of path.
Unlike path, this method doesn't throw if the JSON field has an unexpected type.
-
_precondition
final JsonField<BetaManagedAgentsPrecondition> _precondition()
Returns the raw JSON value of precondition.
Unlike precondition, 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 MemoryUpdateParams.Builder toBuilder()
-
_body
final MemoryUpdateParams.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.
-
builder
final static MemoryUpdateParams.Builder builder()
Returns a mutable builder for constructing an instance of MemoryUpdateParams.
The following fields are required:
.memoryStoreId()
-
-
-
-