MCPcopy Create free account
hub / github.com/Rfym21/Qwen2API / closeTextBlockIfOpen

Function closeTextBlockIfOpen

src/controllers/anthropic.js:404–409  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

402 if (textPart) {
403 textPart.text = `${textPart.text || ''}\n\n# Tool-call retry\n${hint}`;
404 } else {
405 last.content = [{ type: 'text', text: hint }, ...last.content];
406 }
407 }
408 }
409 return { ...body, messages };
410};
411
412/**

Callers 3

emitThinkingDeltaFunction · 0.85
emitToolUseFunction · 0.85
handleAnthropicStreamFunction · 0.85

Calls 1

writeAnthropicEventFunction · 0.85

Tested by

no test coverage detected