MCPcopy Create free account
hub / github.com/microsoft/data-formulator / handleCompletion

Function handleCompletion

src/views/SimpleChartRecBox.tsx:1014–1032  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1012 };
1013
1014 const handleCompletion = () => {
1015 if (isCompleted) return;
1016 isCompleted = true;
1017 setIsChatFormulating(false);
1018 agentAbortRef.current = null;
1019 clearTimeout(timeoutId);
1020
1021 // Clean up any remaining draft (the last step created a new draft that was never filled)
1022 if (currentDraftId) {
1023 dispatch(dfActions.removeDraftNode(currentDraftId));
1024 currentDraftId = null;
1025 }
1026
1027 const completionResult = allResults.find((r: any) => r.type === "completion");
1028 if (completionResult) {
1029 setChatPrompt("");
1030 setAttachedImages([]);
1031 }
1032 };
1033
1034 (async () => {
1035 try {

Callers 1

SimpleChartRecBoxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected