Skip to main content

Interface: SourceCitation

Defined in: packages/agentos/src/query-router/types.ts:125

A citation referencing a source used in generating the final answer.

Properties

heading

heading: string

Defined in: packages/agentos/src/query-router/types.ts:130

Section heading within the source, if applicable.


matchType

matchType: "vector" | "graph" | "research"

Defined in: packages/agentos/src/query-router/types.ts:142

Which retrieval method produced the cited source.

See

RetrievedChunk.matchType


path

path: string

Defined in: packages/agentos/src/query-router/types.ts:127

File path or document path of the cited source.


relevanceScore

relevanceScore: number

Defined in: packages/agentos/src/query-router/types.ts:136

Relevance score of the cited source (0 to 1). Inherited from the highest-scoring chunk from this source.