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

Function appendSource

ai/ai.ts:2024–2028  ·  view source on GitHub ↗
(url?: string, title?: string)

Source from the content-addressed store, hash-verified

2022
2023 const appendSource = (url?: string, title?: string) => {
2024 if (!url || seen.has(url)) return;
2025 seen.add(url);
2026 sources.push({ url, title });
2027 };
2028
2029 const appendAnnotations = (annotations: any[] | undefined) => {
2030 if (!Array.isArray(annotations)) return;
2031 for (const entry of annotations) {

Callers 2

appendAnnotationsFunction · 0.85
appendActionSourcesFunction · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected