MCPcopy
hub / github.com/TanStack/ai / textContentChunk

Function textContentChunk

packages/ai-client/tests/devtools.test.ts:156–168  ·  view source on GitHub ↗
(args: {
    messageId: string
    delta: string
    content: string
  })

Source from the content-addressed store, hash-verified

154 }
155
156 function textContentChunk(args: {
157 messageId: string
158 delta: string
159 content: string
160 }) {
161 return {
162 type: EventType.TEXT_MESSAGE_CONTENT,
163 messageId: args.messageId,
164 timestamp: Date.now(),
165 delta: args.delta,
166 content: args.content,
167 } satisfies StreamChunk
168 }
169
170 function dispatchToolFixture(overrides: Partial<AIDevtoolsToolFixture> = {}) {
171 const fixture: AIDevtoolsToolFixture = {

Callers 1

devtools.test.tsFile · 0.85

Calls 1

nowMethod · 0.80

Tested by

no test coverage detected