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

Method recordStreamId

packages/ai-client/src/devtools.ts:768–770  ·  view source on GitHub ↗

* Called by the auto-attaching emitter every time it sees a non-empty * streamId pass through. Lets devtools track the latest stream id * without the chat client wiring it up explicitly.

(streamId: string)

Source from the content-addressed store, hash-verified

766 * without the chat client wiring it up explicitly.
767 */
768 recordStreamId(streamId: string): void {
769 if (streamId) this.lastStreamId = streamId
770 }
771
772 mountWithTools(initialMessageCount: number): void {
773 this.events.clientCreated(initialMessageCount)

Callers 1

afterEmitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected