Document PromptKit source composition and deployment

This commit is contained in:
2026-10-04 14:04:32 +00:00
parent db8acbea43
commit 169a94f7ea
5 changed files with 193 additions and 29 deletions

View File

@@ -193,7 +193,7 @@ func TestMaintainedConfigurationExampleSet(t *testing.T) {
t.Fatal(err)
}
if len(llmProfiles) != 1 || llmProfiles[0].Name() != "dnd-extraction.yml" {
t.Fatalf("maintained LLM profiles = %#v, want dnd-extraction.yml", llmProfiles)
t.Fatalf("maintained LLM profile files = %#v, want the single combined profile file", llmProfiles)
}
}
@@ -215,6 +215,25 @@ func TestMaintainedExamplesValidateEffectiveProfilesOffline(t *testing.T) {
}
})
}
var stdout, stderr strings.Builder
code := RunWithOptions([]string{
"config", "profile", "--config", repositoryPath("examples", "dnd-complete.config.yml"), "dnd-extraction-development",
}, &stdout, &stderr, Options{})
var profile struct {
ProfileID string `json:"profile_id"`
Target struct {
BackendID string `json:"backend_id"`
Model string `json:"model"`
Temperature float64 `json:"temperature"`
} `json:"effective_model_params"`
}
if err := json.Unmarshal([]byte(stdout.String()), &profile); err != nil {
t.Fatalf("development profile JSON = %q: %v", stdout.String(), err)
}
if code != 0 || stderr.Len() != 0 || profile.ProfileID != "dnd-extraction-development" || profile.Target.BackendID != "openrouter" || profile.Target.Model != "openai/gpt-5.6-luna" || profile.Target.Temperature != 0.2 {
t.Fatalf("development profile inspection = code %d, %q, %q, %#v", code, stdout.String(), stderr.String(), profile)
}
}
func exampleStepLaneIDs(resolved pipeline.ResolvedPipeline) []string {