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

Function textUpdated

packages/ai-client/src/events.ts:102–114  ·  view source on GitHub ↗

* Emit text update events (combines processor and client events)

(
    streamId: string,
    messageId: string,
    content: string,
    context?: ChatClientRunEventContext,
  )

Source from the content-addressed store, hash-verified

100 * Emit text update events (combines processor and client events)
101 */
102 textUpdated(
103 streamId: string,
104 messageId: string,
105 content: string,
106 context?: ChatClientRunEventContext,
107 ): void {
108 this.emitEvent('text:chunk:content', {
109 streamId,
110 messageId,
111 content,
112 ...context,
113 })
114 }
115
116 /**
117 * Emit tool call state change events (combines processor and client events)

Callers

nothing calls this directly

Calls 1

emitEventMethod · 0.45

Tested by

no test coverage detected