Skip to content

Interface: AgentResult

The slice of Mastra’s generate result a turn reads.

toolResults matters as much as object here: when structured output fails and the turn re-asks as prose, an agent holding the create_teams_card tool typically CALLS it, so the best available card spec is the tool’s arguments - already in the right vocabulary - rather than anything in the prose.

optional object?: unknown


optional text?: string


optional toolResults?: object[]

optional args?: unknown

optional payload?: object

optional args?: unknown

optional toolName?: string

optional toolName?: string