MCPcopy
hub / github.com/CopilotKit/CopilotKit / clear

Method clear

packages/core/src/intelligence-agent.ts:287–291  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

285 // cleanup() follows as a safety net for the run() path.
286 const fallback = setTimeout(() => clear(), 5_000);
287 const clear = () => {
288 clearTimeout(fallback);
289 void this.detachActiveRun();
290 this.cleanup();
291 };
292
293 this.activeChannel
294 .push(STOP_RUN_EVENT, { run_id: this.canonicalRunId })

Callers 15

drainToolStatusesFunction · 0.45
onRunFinishedEventFunction · 0.45
onRunErrorEventFunction · 0.45
markInterruptedFunction · 0.45
markInterruptedFunction · 0.45
MockResizeObserverClass · 0.45
markInterruptedFunction · 0.45
ngOnDestroyMethod · 0.45
constructorMethod · 0.45
renderMarkdownMethod · 0.45
renderSlotFunction · 0.45

Calls 2

cleanupMethod · 0.95
detachActiveRunMethod · 0.45

Tested by 1

completeMethod · 0.36