MCPcopy Index your code
hub / github.com/TanStack/ai / onConfig

Function onConfig

packages/ai/tests/middleware-capabilities.test.ts:195–198  ·  view source on GitHub ↗
(ctx)

Source from the content-addressed store, hash-verified

193 name: 'greeter-consumer',
194 requires: [cap],
195 onConfig(ctx) {
196 seen.push('onConfig')
197 expect(getGreeting(ctx).greeting).toBe('hi')
198 },
199 }
200 const { adapter } = createMockAdapter({
201 iterations: [

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected