Store one prompt definition per ID
This commit is contained in:
@@ -356,22 +356,20 @@ func smokeSelectionConfig() map[string]any {
|
||||
},
|
||||
"prompts": map[string]any{
|
||||
"selection.prompt": map[string]any{
|
||||
"v1": map[string]any{
|
||||
"default_profile": "prompt-profile",
|
||||
"inputs": []any{map[string]any{"name": "required_input", "required": true}},
|
||||
"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",
|
||||
},
|
||||
"version": "v1",
|
||||
"default_profile": "prompt-profile",
|
||||
"inputs": []any{map[string]any{"name": "required_input", "required": true}},
|
||||
"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",
|
||||
},
|
||||
},
|
||||
"backend.prompt": map[string]any{
|
||||
"v1": map[string]any{
|
||||
"messages": []any{map[string]any{"role": "user", "content": "Hello"}},
|
||||
"output": map[string]any{
|
||||
"format": "json", "validation_mode": "json_schema", "schema_path": "not-read.json",
|
||||
},
|
||||
"version": "v1",
|
||||
"messages": []any{map[string]any{"role": "user", "content": "Hello"}},
|
||||
"output": map[string]any{
|
||||
"format": "json", "validation_mode": "json_schema", "schema_path": "not-read.json",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user