SourceLocator

sealed interface SourceLocator

A reference to where source material lives.

A SourceLocator holds a reference to source material rather than the material itself. It tells a consumer how to locate or re-fetch the original material that grounds a proposition, without assuming responsibility for storage, credentials, or connector access.

Implementations form a discriminated union, allowing consumers to match on the kind of reference: URI, file path, content hash, or connector reference.

Inheritors

Properties

Link copied to clipboard
abstract val display: String?

Optional human-readable label for display in UIs and reports. This is presentation-only and never participates in identity.

Functions

Link copied to clipboard
abstract fun key(): String

A stable, comparable key identifying this locator.