import { Agent } from "@mastra/core";
import { Memory } from "@mastra/memory";
import { sharedStorage, sharedVector } from "../shared";
import gmailAgent from "./gmail-agent";
import webAgent from "./web-agent";
// ... other agents
export const orchestratorAgent = new Agent({
name: "automation-orchestrator",
instructions: "You are an intelligent automation orchestrator...",
model: openrouter("openai/gpt-4o-mini"),
agents: {
gmail_agent: gmailAgent,
web_agent: webAgent,
// ... other agents
},
memory: new Memory({
storage: sharedStorage,
vector: sharedVector,
embedder: openai.embedding('text-embedding-3-small'),
options: {
lastMessages: 20,
semanticRecall: {
topK: 5,
messageRange: 2,
scope: 'resource',
},
workingMemory: {
enabled: true,
scope: 'resource',
},
},
}),
});
import { Agent } from "@mastra/core";
import { Memory } from "@mastra/memory";
import { sharedStorage, sharedVector } from "../shared";
import gmailAgent from "./gmail-agent";
import webAgent from "./web-agent";
// ... other agents
export const orchestratorAgent = new Agent({
name: "automation-orchestrator",
instructions: "You are an intelligent automation orchestrator...",
model: openrouter("openai/gpt-4o-mini"),
agents: {
gmail_agent: gmailAgent,
web_agent: webAgent,
// ... other agents
},
memory: new Memory({
storage: sharedStorage,
vector: sharedVector,
embedder: openai.embedding('text-embedding-3-small'),
options: {
lastMessages: 20,
semanticRecall: {
topK: 5,
messageRange: 2,
scope: 'resource',
},
workingMemory: {
enabled: true,
scope: 'resource',
},
},
}),
});