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

File tool-cache-middleware.test.ts

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

Source from the content-addressed store, hash-verified

1import { describe, expect, it, vi } from 'vitest'
2import { chat } from '../src/activities/chat/index'
3import { toolCacheMiddleware } from '../src/middlewares/tool-cache'
4import type {

Callers

nothing calls this directly

Calls 10

serverToolFunction · 0.90
createMockAdapterFunction · 0.90
chatFunction · 0.90
toolCacheMiddlewareFunction · 0.90
collectChunksFunction · 0.90
createMapStorageFunction · 0.85
getMethod · 0.65
setMethod · 0.65
deleteMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected