Skip to main content

citationFromWeb

@retinue/monorepo


@retinue/monorepo / backend/src / citationFromWeb

Function: citationFromWeb()

citationFromWeb(input): CitationCandidate

Defined in: backend/src/citations/index.ts:98

A citation built from a web passage.

Shaped to accept ShareFlow's SourcePassage without adaptation — url, retrievedAt, excerpt — because AC-6 is only true if the two paths really do produce one thing rather than two things that look alike.

Parameters​

input​

passage​

{ excerpt: string; retrievedAt: string; url: string; }

passage.excerpt​

string

passage.retrievedAt​

string

passage.url​

string

supports​

readonly MessagePartId[]

title?​

string

Returns​

CitationCandidate