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

Method setStatus

packages/ai-client/src/chat-client.ts:502–506  ·  view source on GitHub ↗
(status: ChatClientState)

Source from the content-addressed store, hash-verified

500 }
501
502 private setStatus(status: ChatClientState): void {
503 this.status = status
504 this.callbacksRef.current.onStatusChange(status)
505 this.devtoolsBridge.emitSnapshot()
506 }
507
508 private setIsSubscribed(isSubscribed: boolean): void {
509 this.isSubscribed = isSubscribed

Callers 8

constructorMethod · 0.95
cancelInFlightStreamMethod · 0.95
reportStreamErrorMethod · 0.95
streamResponseMethod · 0.95
onAfterToolCallFunction · 0.45
onErrorFunction · 0.45
onAbortFunction · 0.45
closeCancelledFunction · 0.45

Calls 1

emitSnapshotMethod · 0.45

Tested by

no test coverage detected