Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/TanStack/ai
/ onIteration
Function
onIteration
packages/ai/tests/structured-output-middleware.test.ts:95–97 ·
view source on GitHub ↗
(_ctx, info)
Source
from the content-addressed store, hash-verified
93
hookLog.push(
'onStart'
)
94
},
95
onIteration(_ctx, info) {
96
hookLog.push(`onIteration:${info.iteration}`)
97
},
98
onChunk(ctx, chunk) {
99
chunkLog.push({ phase: ctx.phase,
type
: chunk.
type
})
100
},
Callers
nothing calls this directly
Calls
1
push
Method · 0.45
Tested by
no test coverage detected