Add schema selection values and ownership

This commit is contained in:
2026-11-20 15:20:29 +00:00
parent e775a3c116
commit fbe3d427a2
17 changed files with 186 additions and 9 deletions

View File

@@ -502,8 +502,9 @@ type OutputContract struct {
// ValidationMode selects the content check. Use one of the declared
// ValidationMode constants.
ValidationMode ValidationMode `json:"validation_mode"`
// SchemaPath is required when ValidationMode is ValidationJSONSchema and is
// ignored by other modes.
// Schema supplies an inline JSON Schema. Nil means no inline selection.
Schema any `json:"schema,omitempty"`
// SchemaPath identifies a schema under the applicable configured root.
SchemaPath string `json:"schema_path"`
// RepairAttempts is an additional generation-call budget from zero through
// three. Zero is single-pass. A positive value is valid only with basic,