MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / getReferences

Function getReferences

packages/queue/src/tasks/llm/index.ts:126–135  ·  view source on GitHub ↗
(documents: SourceDocument[])

Source from the content-addressed store, hash-verified

124};
125
126export function getReferences(documents: SourceDocument[]): string[] {
127 const sources: string[] = [];
128 documents.forEach((document) => {
129 const source = document.metadata.source || document.metadata.threadId;
130 if (source && !sources.includes(source)) {
131 sources.push(source);
132 }
133 });
134 return sources;
135}
136
137function getUrls(references: string[]) {
138 return references.filter(

Callers 2

index.test.tsFile · 0.85
parseBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected