actrone-memory
    Preparing search index...

    Function cloudflareAgentsMemory

    • Cloudflare Agents (agents): an Agent typically calls the AI SDK's generateText({ system, ... }) on Workers. getSystem returns the governed context to pass as system for the turn, and remember persists the completed turn. Structural, so agents stays an optional peer dependency and this runs on the Workers runtime (the in-memory store needs no Node APIs).

      Parameters

      Returns {
          getSystem: (query: string, tokenBudget?: number) => Promise<string>;
          remember: (
              userMessage: string,
              assistantMessage: string,
          ) => Promise<string>;
      }