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

Method reset

packages/ai-client/src/generation-client.ts:315–324  ·  view source on GitHub ↗

* Clear the result, error, and return to idle state.

()

Source from the content-addressed store, hash-verified

313 * Clear the result, error, and return to idle state.
314 */
315 reset(): void {
316 this.stop()
317 this.setResult(null)
318 this.input = null
319 this.progress = null
320 this.devtoolsBridge.resetRuns()
321 this.setError(undefined)
322 this.setStatus('idle')
323 this.devtoolsBridge.emitState()
324 }
325
326 /**
327 * Update options without recreating the client.

Callers 15

injectGenerationFunction · 0.45
injectGenerateVideoFunction · 0.45
resetFunction · 0.45
resetFunction · 0.45
resetFunction · 0.45
resetFunction · 0.45
devtools.test.tsFile · 0.45

Calls 6

stopMethod · 0.95
setResultMethod · 0.95
setErrorMethod · 0.95
setStatusMethod · 0.95
resetRunsMethod · 0.45
emitStateMethod · 0.45

Tested by

no test coverage detected