ToolCallFilterTokenLimiter"@mastra/core": "^0.24.8""@mastra/memory": "0.15.13""@mastra/fastembed": "0.10.7"step: 1chunk: 'error'{
"type": "error",
"error": {
"type": "error",
"error": {
"code": "context_length_exceeded",
"type": "invalid_request_error",
"param": "input",
"message": "Your input exceeds the context window of this model. Please adjust your input and try again."
},
"sequence_number": 2
}
}pnpm run setup⯠node --version
v22.21.0src/loop/test-utils/options.ts:6488:61 - error TS2554: Expected 0 arguments, but got 2.
@mastra/core:pre-build:
@mastra/core:pre-build: 6488 controller.error(new DOMException('The user aborted a request.', 'AbortError'));
@mastra/core:pre-build: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@mastra/core:pre-build:
@mastra/core:pre-build: src/loop/test-utils/options.ts:6665:63 - error TS2554: Expected 0 arguments, but got 2.
@mastra/core:pre-build:
@mastra/core:pre-build: 6665 controller.error(new DOMException('The user aborted a request.', 'AbortError'));
@mastra/core:pre-build: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@mastra/core:pre-build:
@mastra/core:pre-build: src/loop/test-utils/streamObject.ts:464:75 - error TS2345: Argument of type 'TextDecoderStream' is not assignable to parameter of type 'ReadableWritablePair<unknown, any>'.
@mastra/core:pre-build: Type '{}' is missing the following properties from type 'ReadableWritablePair<unknown, any>': readable, writable
@mastra/core:pre-build:
@mastra/core:pre-build: 464 await convertReadableStreamToArray(response.body!.pipeThrough(new TextDecoderStream())),
@mastra/core:pre-build: ~~~~~~~~~~~~~~~~~~~~~~~
@mastra/core:pre-build:
@mastra/core:pre-build:
@mastra/core:pre-build: Found 3 errors in 2 files.
@mastra/core:pre-build:
@mastra/core:pre-build: Errors Files
@mastra/core:pre-build: 2 src/loop/test-utils/options.ts:6488
@mastra/core:pre-build: 1 src/loop/test-utils/streamObject.ts:464Voice handler error: TypeError: this.traced is not a function
at _GeminiLiveVoice.connect (file:///home/michael/IdeaProjects/docuxec/node_modules/@mastra/voice-google-gemini-live/dist/index.js:1501:17)
at speakWithVoiceHandler (file:///home/michael/IdeaProjects/docuxec/packages/mastra/.mastra/output/index.mjs:131:28)resourceIdmastra_workflow_snapshotnetworkRoute/api/memory/threads/${threadId}/messages?agentId=${agentId}Crawl data appears contaminated with details for an unrelated business (xxxxxxxx), which do not belong to xxxxx and
should not be used for this verification.mapVariable({ step: someWorkflow, ... }) .map({
result: mapVariable({ step: mySubWorkflow, path: 'output' }),
}).map(async ({ getStepResult }) => ({
result: getStepResult(mySubWorkflow).output,
}))@mastra/core: beta
@mastra/ai-sdk: beta
Model: anthropic/claude-haiku-4-5// chat-agent.ts - Parent agent with sub-agent
export const chatAgent = new Agent({
id: 'chat-agent',
instructions: {
role: 'system',
content: 'You are a router...',
providerOptions: {
anthropic: {
thinking: { type: 'enabled', budgetTokens: 4000 }
}
}
},
model: 'anthropic/claude-haiku-4-5',
agents: { strategist: strategistAgent }
});
// Test script
const stream = await chatAgent.network('Hello', { memory: { thread: 'test' } });
for await (const chunk of stream) {
console.log(chunk.type);
// Never see: agent-execution-event-reasoning-delta
// Do see: agent-execution-event-text-delta
}updateWorkingMemory/api/chatchatRoute()networkRoute({
path: '/quote-agent/chat',
agent: 'quoteAgent',
}),networkRoute({
path: '/quote-agent/:my-agent-id/chat',
agent: 'quoteAgent',
}),// /api/chat
export async function POST(req: Request) {
// lots of business logic...
const stream = await myAgent.stream(messages, {
format: "aisdk", // Enable AI SDK v5 compatibilityexport const mastra = new Mastra({
server: {
apiRoutes: [
chatRoute({
path: "/chat",
agent: "weatherAgent",
}),
],
},
});