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.
Mastra: a dedicated memory helper (rather than piggybacking the Vercel model path).
getSystemContextreturns the instruction string to add as a system message for the turn (agent.generate(input, { context: [{ role: "system", content }] }), which keeps the agent's owninstructions), andrememberpersists the completed turn. Structural, so@mastra/corestays an optional peer dependency.