MCPcopy Create free account
hub / github.com/TanStack/ai / makeContext

Function makeContext

packages/ai-claude-code/tests/translate.test.ts:6–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import type { StreamChunk } from '@tanstack/ai'
5
6function makeContext() {
7 let id = 0
8 return {
9 model: 'claude-opus-4-6',
10 runId: 'run-1',
11 threadId: 'thread-1',
12 genId: () => `gen-${++id}`,
13 }
14}
15
16async function* fromArray(
17 messages: Array<AgentSdkMessage>,

Callers 2

collectFunction · 0.85
translate.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected