© 2026 Hedgehog Software, LLC
@mastra/core": "0.7.0-alpha.3
@mastra/memory": "0.2.6-alpha.3
export const memory = new Memory({ options: { lastMessages: 20, semanticRecall: { topK: 10, messageRange: 2, }, }, });
const agentTwo = mastra.getAgent('agentTwo'); const response = await agentTwo.generate( [ { role: 'user', content: `Instructions`, }, ], { threadId, resourceId, } );
const { messages } = await agentTwo.query({ threadId, });