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 add as a system message for the turn (agent.generate(input, { context: [{ role: "system", content }] }), which keeps the agent's own instructions), and remember persists the completed turn. 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>;
      }