actrone-memory
    Preparing search index...

    Function mastraMemory

    • Mastra: a dedicated memory helper (rather than piggybacking the Vercel model path). getSystemContext returns the instruction string to prepend to a Mastra agent's context for the turn, and remember persists the completed turn, call them around agent.generate(...). Structural, so @mastra/core stays an optional peer dependency.

      Parameters

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