MCPcopy
hub / github.com/TanStack/ai / middleware-context.test.ts

File middleware-context.test.ts

packages/ai/tests/middleware-context.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { describe, expect, it } from 'vitest'
2import { chat, toolDefinition } from '../src'
3import { collectChunks, createMockAdapter, ev } from './test-utils'
4import type { ChatMiddleware } from '../src'

Callers

nothing calls this directly

Calls 5

toolDefinitionFunction · 0.90
createMockAdapterFunction · 0.90
collectChunksFunction · 0.90
chatFunction · 0.90
pushMethod · 0.45

Tested by

no test coverage detected