Class MemoryCreateParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class MemoryCreateParams implements Params
Create a memory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMemoryCreateParams.BuilderA builder for MemoryCreateParams.
public final classMemoryCreateParams.BodyRequest parameters for /en/api/beta/memory_stores/memories/create. The path must be unoccupied: if a memory already exists at the path, or the path is an ancestor or descendant of an existing memory's path, the request returns
memory_path_conflict_error(HTTP 409). Create never overwrites; to modify an existing memory, use /en/api/beta/memory_stores/memories/update.
-
Method Summary
Modifier and Type Method Description final Optional<String>memoryStoreId()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()UTF-8 text content for the new memory. final Stringpath()Hierarchical path for the new memory, e.g. final JsonField<String>_content()Returns the raw JSON value of content. final JsonField<String>_path()Returns the raw JSON value of path. 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 MemoryCreateParams.BuildertoBuilder()final MemoryCreateParams.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 MemoryCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of MemoryCreateParams. -
-
Method Detail
-
memoryStoreId
final Optional<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()
UTF-8 text content for the new memory. Maximum 100 kB (102,400 bytes). Required; pass
""explicitly to create an empty memory.
-
path
final String path()
Hierarchical path for the new memory, e.g.
/projects/foo/notes.md. 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.
-
_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.
-
_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 MemoryCreateParams.Builder toBuilder()
-
_body
final MemoryCreateParams.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 MemoryCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of MemoryCreateParams.
The following fields are required:
.content() .path()
-
-
-
-