Remove redundant captured prompt fields

This commit is contained in:
2026-11-05 14:34:05 +00:00
parent 7db5572b62
commit cee9bbc7b2
7 changed files with 10 additions and 10 deletions

View File

@@ -641,9 +641,6 @@ func copyExtraParams(src map[string]any) map[string]any {
func resolveOutputContract(def *domain.PromptDefinition, override *domain.OutputContract) (domain.OutputContract, error) {
contract := def.Validation
if contract.Format == "" {
contract.Format = def.OutputFormat
}
if override != nil {
contract = *override
if contract.Format == "" {

View File

@@ -2504,7 +2504,6 @@ func promptDef(format domain.OutputFormat, mode domain.ValidationMode, attempts
DefaultProfile: "exec",
Inputs: []domain.PromptInput{{Name: "transcript", Required: true}},
Templates: []domain.PromptMessageTemplate{{Role: "user", Content: "x"}},
OutputFormat: format,
Validation: domain.OutputContract{
ValidationMode: mode,
RepairAttempts: attempts,