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

Function appendAnnotations

ai/ai.ts:2030–2036  ·  view source on GitHub ↗
(annotations: any[] | undefined)

Source from the content-addressed store, hash-verified

2028
2029 const appendAnnotations = (annotations: any[] | undefined) => {
2030 if (!Array.isArray(annotations)) return;
2031 for (const entry of annotations) {
2032 if (entry?.type !== "url_citation") continue;
2033 appendSource(entry?.url, entry?.title);
2034 }
2035 };
2036
2037 const appendActionSources = (action: any) => {
2038 const sourceList = Array.isArray(action?.sources)
2039 ? action.sources

Callers 1

collectResponsesSourcesFunction · 0.85

Calls 1

appendSourceFunction · 0.85

Tested by

no test coverage detected