MCPcopy Index your code
hub / github.com/TanStack/ai / textMessageStartChunk

Function textMessageStartChunk

packages/ai/tests/helpers/processor-harness.ts:32–39  ·  view source on GitHub ↗
(messageId = 'msg-1')

Source from the content-addressed store, hash-verified

30
31/** A TEXT_MESSAGE_START chunk for an assistant message. */
32export function textMessageStartChunk(messageId = 'msg-1'): StreamChunk {
33 return {
34 type: EventType.TEXT_MESSAGE_START,
35 timestamp: Date.now(),
36 messageId,
37 role: 'assistant',
38 }
39}
40
41/** A ui-resource CUSTOM event chunk (MCP Apps). */
42export function uiResourceChunk(

Callers 2

runProcessorWithChunksFunction · 0.85

Calls 1

nowMethod · 0.80

Tested by

no test coverage detected