MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / appendItem

Function appendItem

ai/ai.ts:2125–2130  ·  view source on GitHub ↗
(item: any)

Source from the content-addressed store, hash-verified

2123
2124 const appendItem = (item: any) => {
2125 const parsed = parseResponsesOutputContent(item);
2126 if (parsed.text) fallbackText = parsed.text;
2127 if (parsed.images.length > 0) fallbackImages = parsed.images;
2128 appendSources(parsed.sources);
2129 };
2130
2131 for (const payload of payloads) {
2132 if (
2133 payload?.type === "response.output_text.delta" &&

Callers 1

Calls 2

appendSourcesFunction · 0.85

Tested by

no test coverage detected