26 lines
870 B
Go
26 lines
870 B
Go
// Package evidencecontext owns the durable source evidence-context contract.
|
|
package evidencecontext
|
|
|
|
import (
|
|
"gitea.maximumdirect.net/eric/notarius/internal/core/source"
|
|
"gitea.maximumdirect.net/eric/notarius/internal/framework/contracts"
|
|
)
|
|
|
|
const (
|
|
ArtifactKind contracts.ArtifactKind = "source/evidence-context"
|
|
SchemaID = "notarius.source.evidence_context"
|
|
SchemaName = "notarius_source_evidence_context_v1"
|
|
SchemaVersion = "v1"
|
|
MediaType = "application/json"
|
|
)
|
|
|
|
// Document is the durable selected source-unit excerpt.
|
|
type Document []source.SourceUnit
|
|
|
|
// BuildRequest supplies accepted source material and projected source references.
|
|
type BuildRequest struct {
|
|
Source *source.SourceDocument
|
|
WindowUnits int
|
|
SourceRefs []source.SourceRef
|
|
}
|