Documentation
¶
Overview ¶
Package report provides offline evidence writing for benchmark runs. Online reporting is handled by harness.ReportToBench (POST /v1/bench/runs).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EvidenceEntry ¶
type EvidenceEntry struct {
ID string `json:"id"`
Type string `json:"type"`
Actor string `json:"actor"`
Timestamp time.Time `json:"timestamp"`
ScenarioID string `json:"scenario_id"`
Adapter string `json:"adapter"`
Passed bool `json:"passed"`
ExitCode int `json:"exit_code"`
Duration time.Duration `json:"duration_ns"`
Metadata map[string]string `json:"metadata,omitempty"`
}
EvidenceEntry represents a single benchmark evidence record.
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter writes benchmark evidence to local JSONL files.
func NewReporter ¶
NewReporter creates a Reporter with the given config.
func (*Reporter) Report ¶
func (r *Reporter) Report(entries []EvidenceEntry) error
Report writes evidence locally.
func (*Reporter) WriteOffline ¶
func (r *Reporter) WriteOffline(entries []EvidenceEntry) error
WriteOffline writes evidence entries as JSONL to the evidence directory.
Click to show internal directories.
Click to hide internal directories.