Class MemoryCreateParams

  • All Implemented Interfaces:
    com.anthropic.core.Params

    
    public final class MemoryCreateParams
     implements Params
                        

    Create a Memory

    • Constructor Detail

    • Method Detail

      • view

         final Optional<BetaManagedAgentsMemoryView> view()

        Whether a memory or memory_version in the response includes its content. Defaults to full on retrieve operations and to basic on list, create, and update operations.

        With full, list operations return at most 20 items per page.

      • betas

         final Optional<List<AnthropicBeta>> betas()

        This endpoint is in beta: requests must send agent-memory-2026-07-22 or managed-agents-2026-04-01 in 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.

      • content

         final Optional<String> content()

        The UTF-8 text content of the new memory. Pass "" to create an empty memory.

        The maximum size is 100 kB (102,400 bytes).

      • path

         final String path()

        The path of the new memory, such as /projects/foo/notes.md. Paths are case-sensitive.

        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.

      • _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.

      • _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.