SongGuess
    Preparing search index...

    Class AgentMemoryNamespaceAbstract

    Namespace-level Agent Memory binding.

    Used as the type of an env.MEMORY-style binding backed by the Agent Memory product.

    export default {
    async fetch(_request: Request, env: Env): Promise<Response> {
    const profile = await env.MEMORY.getProfile("wrangler-e2e");
    const summary = await profile.getSummary();
    return Response.json(summary);
    },
    };
    Index

    Constructors

    Methods

    • Soft-delete a profile and schedule deferred purge. Marks all memories and messages as deleted.

      Parameters

      • profileName: string

        Name of the profile to delete.

      Returns Promise<void>

    • Get a memory profile by name. Profiles are isolated by namespace and addressed by a compound key (namespaceId:profileName).

      Parameters

      • profileName: string

        Profile name (validated against naming rules).

      Returns Promise<AgentMemoryProfile>

      RPC target for interacting with the profile.