package
Version:
v0.9.14
Opens a new window with list of versions in this module.
Published: Oct 29, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
ValidateClaim validates the field-specific value type of one AI claim.
type Claim struct {
Field string `json:"field"`
Value json.RawMessage `json:"value"`
Evidence string `json:"evidence"`
Section string `json:"section,omitempty"`
Confidence string `json:"confidence"`
}
type Document struct {
SchemaVersion int `json:"schema_version"`
Kind string `json:"kind"`
ModelID string `json:"model_id"`
Status string `json:"status"`
CreatedAt time.Time `json:"created_at"`
Source Source `json:"source"`
Generator Generator `json:"generator"`
Claims []Claim `json:"claims"`
}
type Generator struct {
Model string `json:"model"`
WireAPI string `json:"wire_api"`
}
type Source struct {
URL string `json:"url"`
Revision string `json:"revision,omitempty"`
SHA256 string `json:"sha256"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.