MCPcopy Index your code
hub / github.com/TanStack/ai / chat.test.ts

File chat.test.ts

packages/ai/tests/chat.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, createChatOptions } from '../src/activities/chat/index'
3import { DISCOVERY_TOOL_NAME } from '../src/activities/chat/tools/lazy-tool-manager'
4import { EventType } from '../src/types'

Callers

nothing calls this directly

Calls 12

createMockAdapterFunction · 0.90
chatFunction · 0.90
collectChunksFunction · 0.90
serverToolFunction · 0.90
clientToolFunction · 0.90
createChatOptionsFunction · 0.90
chunkFunction · 0.90
lazyServerToolFunction · 0.85
hasMethod · 0.80
nowMethod · 0.80
abortMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected