Finalize structured diagnostic aggregation

This commit is contained in:
2026-08-27 16:40:17 +00:00
parent 480680b257
commit 4dbbf68051
112 changed files with 656 additions and 893 deletions

View File

@@ -163,7 +163,6 @@ type ChunkRequest struct {
type ChunkPlanResult struct {
Plan source.ChunkPlan `json:"plan"`
Warnings []Warning `json:"warnings,omitempty"`
Diagnostics []ProducerDiagnostic `json:"diagnostics,omitempty"`
ModelCandidate *ModelCandidate `json:"-"`
}
@@ -289,21 +288,13 @@ type ValidationResult struct {
Message string `json:"message,omitempty"`
CorrectionGuidance string `json:"-"`
DiagnosticArtifactPath string `json:"diagnostic_artifact_path,omitempty"`
Warnings []Warning `json:"warnings,omitempty"`
Diagnostics []ProducerDiagnostic `json:"diagnostics,omitempty"`
}
type Warning struct {
Scope string `json:"scope,omitempty"`
ReasonCode string `json:"reason_code"`
Message string `json:"message"`
}
type OutputRequest struct {
Manifest artifacts.RunManifest `json:"manifest"`
NormalizeOutputs []SerializedOutput `json:"normalize_outputs,omitempty"`
Rejected []RejectedOutput `json:"rejected,omitempty"`
Warnings []Warning `json:"warnings,omitempty"`
Diagnostics DiagnosticCollection `json:"diagnostics,omitempty"`
LLMProfile string `json:"llm_profile,omitempty"`
StructuredOutputRepairAttempts *int `json:"structured_output_repair_attempts,omitempty"`

View File

@@ -48,7 +48,6 @@ type TypedExtractionRequest struct {
type TypedExtractionResult[T any] struct {
Value T
Warnings []Warning
Diagnostics []ProducerDiagnostic
ModelCandidate *ModelCandidate
}
@@ -74,7 +73,6 @@ type TypedMergeRequest[T any] struct {
type TypedMergeResult[T any] struct {
Value T
Warnings []Warning
Diagnostics []ProducerDiagnostic
ModelCandidate *ModelCandidate
}
@@ -99,7 +97,6 @@ type TypedNormalizeRequest[T any] struct {
type TypedNormalizeResult[T any] struct {
Value T
Warnings []Warning
Diagnostics []ProducerDiagnostic
Retry *NormalizeRetry
ModelCandidate *ModelCandidate
@@ -117,7 +114,6 @@ const (
type NormalizeRetry struct {
ReasonCode string
Message string
FallbackWarnings []Warning
FallbackDiagnostics []ProducerDiagnostic
}