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.
Properties
Section titled “Properties”object?
Section titled “object?”
optionalobject?:unknown
optionaltext?:string
toolResults?
Section titled “toolResults?”
optionaltoolResults?:object[]
optionalargs?:unknown
payload?
Section titled “payload?”
optionalpayload?:object
payload.args?
Section titled “payload.args?”
optionalargs?:unknown
payload.toolName?
Section titled “payload.toolName?”
optionaltoolName?:string
toolName?
Section titled “toolName?”
optionaltoolName?:string