MCPcopy
hub / github.com/TanStack/ai / onConfig

Function onConfig

packages/ai/tests/structured-output-middleware.test.ts:82–84  ·  view source on GitHub ↗
(ctx, config)

Source from the content-addressed store, hash-verified

80 const middleware: ChatMiddleware = {
81 name: 'spy',
82 onConfig(ctx, config) {
83 configLog.push({ phase: ctx.phase, hook: 'onConfig', config })
84 },
85 onStructuredOutputConfig(ctx, config) {
86 configLog.push({
87 phase: ctx.phase,

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected