MCPcopy
hub / github.com/continuedev/continue / updateFinalResponse

Function updateFinalResponse

extensions/cli/src/stream/streamChatResponse.ts:43–55  ·  view source on GitHub ↗
(
  content: string,
  shouldContinue: boolean,
  isHeadless: boolean,
  currentFinalResponse: string,
)

Source from the content-addressed store, hash-verified

41dotenv.config();
42
43function updateFinalResponse(
44 content: string,
45 shouldContinue: boolean,
46 isHeadless: boolean,
47 currentFinalResponse: string,
48): string {
49 if (!shouldContinue) {
50 return content;
51 } else if (isHeadless && content) {
52 return content;
53 }
54 return currentFinalResponse;
55}
56
57function handleContentDisplay(
58 content: string,

Callers 1

streamChatResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected