Skip to content
mercury framework
GitHub

StepInfo

StepInfo = object

Defined in: types/plugin-types/index.ts:142

Minimal shape of a finished generation step — enough to see what tool was called, with what input, and what came back. A subset of the AI SDK’s StepResult; function parameter types only need to be structurally compatible, not identical. A toolCalls entry with no matching toolResults entry (linked by toolCallId) means the call failed before executing, surfaced as a tool-error in content.

content: object[]

Defined in: types/plugin-types/index.ts:145

optional error?: unknown

optional toolCallId?: string

type: string


toolCalls: object[]

Defined in: types/plugin-types/index.ts:143

input: unknown

toolCallId: string

toolName: string


toolResults: object[]

Defined in: types/plugin-types/index.ts:144

output: unknown

toolCallId: string

toolName: string