Store one prompt definition per ID
This commit is contained in:
@@ -252,7 +252,8 @@ func TestSmokeTestUsesPrivateInferenceWithoutApplicationResourcesOrListingChange
|
||||
client := &fakeLLMClient{response: &promptkit.GenerateResponse{Content: outputMarker}}
|
||||
input := configkit.Input{Source: configkit.Mapping("private diagnostic test", map[string]any{
|
||||
"profiles": map[string]any{"profile": map[string]any{"endpoint": "http://example.test/v1", "model": "model"}},
|
||||
"prompts": map[string]any{"application-prompt": map[string]any{"1": map[string]any{
|
||||
"prompts": map[string]any{"application-prompt": map[string]any{
|
||||
"version": "1",
|
||||
"default_profile": "profile",
|
||||
"session_id": `application-session {{input "document"}}`,
|
||||
"inputs": []any{map[string]any{"name": "document", "required": true}},
|
||||
@@ -263,7 +264,7 @@ func TestSmokeTestUsesPrivateInferenceWithoutApplicationResourcesOrListingChange
|
||||
"output": map[string]any{
|
||||
"format": "json", "validation_mode": "json_schema", "schema_path": schemaMarker,
|
||||
},
|
||||
}}},
|
||||
}},
|
||||
})}
|
||||
engine, err := promptkit.NewEngine(promptkit.Config{Sources: promptkit.ConfigurationSources{Main: &input}},
|
||||
promptkit.WithLLMClient(client), promptkit.WithArtifactReader(reader), promptkit.WithSchemaFS(schemaSource, "schemas"))
|
||||
|
||||
Reference in New Issue
Block a user