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

Method stop

packages/ai-client/src/chat-client.ts:1154–1161  ·  view source on GitHub ↗

* Stop the current stream

()

Source from the content-addressed store, hash-verified

1152 * Stop the current stream
1153 */
1154 stop(): void {
1155 const hadLocalStream = this.abortController !== null
1156 this.cancelInFlightStream({ setReadyStatus: true })
1157 if (hadLocalStream) {
1158 this.resetSessionGenerating()
1159 }
1160 this.events.stopped()
1161 }
1162
1163 /**
1164 * Clear all messages

Callers 11

injectChatFunction · 0.95
useChatFunction · 0.95
teardownConnectionFunction · 0.45
disconnectFunction · 0.45
useChatFunction · 0.45
use-chat.test.tsFile · 0.45
stopListeningFunction · 0.45
handleAbortFunction · 0.45
stopAllFunction · 0.45
useAudioRecorderFunction · 0.45
globalTeardownFunction · 0.45

Calls 3

cancelInFlightStreamMethod · 0.95
stoppedMethod · 0.80

Tested by

no test coverage detected