MastraM
Mastra•4w ago•
3 replies
alakanderok

Agent Tools are not called when running from tool call.

hello, when im running
agent.generate
from a tool call with
structuredOutput
no any tool is being called by
projectIndexerAgent
is it a bug in mastra or something related to the provider not supporting
structuredOutput
?
i use
sonnet4.5


upd: tool calls started working by passing model to the structured output, tho the issue worth mentioning as it might be bug in mastra

const result = await projectIndexerAgent.generate('Analyze this project.', {
  structuredOutput: {
    schema: ProjectIndexSchema,
    // model: 'anthropic/claude-sonnet-4-20250514',
  },
  maxSteps: 30,
}
Was this page helpful?