Bind schema selections throughout execution
This commit is contained in:
@@ -42,7 +42,7 @@ func (c selectionTestLLM) Generate(context.Context, domain.GenerateRequest) (*do
|
||||
|
||||
type selectionTestValidator struct{ state *selectionTestCollaborators }
|
||||
|
||||
func (v selectionTestValidator) PrepareValidation(context.Context, domain.OutputContract) (validate.PreparedValidation, error) {
|
||||
func (v selectionTestValidator) PrepareValidation(context.Context, validate.Input) (validate.PreparedValidation, error) {
|
||||
v.state.validationCalls++
|
||||
return nil, errors.New("validation must not occur during target selection")
|
||||
}
|
||||
@@ -359,13 +359,13 @@ func smokeSelectionConfig() map[string]any {
|
||||
"messages": []any{map[string]any{"role": "user", "content": "Hello {{.required_input}}"}},
|
||||
"session_id": "{{.vars.session}}",
|
||||
"output": map[string]any{
|
||||
"format": "json", "validation_mode": "json_schema", "schema_path": "not-read.json",
|
||||
"format": "json", "validation_mode": "json_schema", "schema": false,
|
||||
},
|
||||
},
|
||||
map[string]any{"id": "backend.prompt",
|
||||
"messages": []any{map[string]any{"role": "user", "content": "Hello"}},
|
||||
"output": map[string]any{
|
||||
"format": "json", "validation_mode": "json_schema", "schema_path": "not-read.json",
|
||||
"format": "json", "validation_mode": "json_schema", "schema": false,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user