Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1
import
{ describe, expect, it, vi } from
'vitest'
2
import
{ chat } from
'../src/activities/chat/index'
3
import
{ toolCacheMiddleware } from
'../src/middlewares/tool-cache'
4
import
type
{
Callers
nothing calls this directly
Calls
10
serverTool
Function · 0.90
createMockAdapter
Function · 0.90
chat
Function · 0.90
toolCacheMiddleware
Function · 0.90
collectChunks
Function · 0.90
createMapStorage
Function · 0.85
get
Method · 0.65
set
Method · 0.65
delete
Method · 0.65
push
Method · 0.45
Tested by
no test coverage detected