Carry optional prompt labels through results
This commit is contained in:
@@ -366,7 +366,7 @@ func TestRunnerPrepareWithExplicitProfileSelection(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("expected no error, got %v", err)
|
||||
}
|
||||
if prepared.PromptID != "p" || prepared.PromptVersion != "1" {
|
||||
if prepared.PromptID != "p" || prepared.PromptVersion == nil || *prepared.PromptVersion != "1" {
|
||||
t.Fatalf("unexpected prepared prompt metadata: %+v", prepared)
|
||||
}
|
||||
if prepared.SelectedProfileID != "exec" {
|
||||
@@ -1257,7 +1257,7 @@ func TestRunnerRunSuccessful(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("expected no error, got %v", err)
|
||||
}
|
||||
if res.PromptID != "p" || res.PromptVersion != "1" {
|
||||
if res.PromptID != "p" || res.PromptVersion == nil || *res.PromptVersion != "1" {
|
||||
t.Fatalf("unexpected prompt metadata: %+v", res)
|
||||
}
|
||||
if res.SelectedProfileID != "exec" {
|
||||
@@ -2504,7 +2504,7 @@ func TestBuildOutputArtifactDefaults(t *testing.T) {
|
||||
func promptDef(format domain.OutputFormat, mode domain.ValidationMode, attempts int) *domain.PromptDefinition {
|
||||
return &domain.PromptDefinition{
|
||||
ID: "p",
|
||||
Version: "1",
|
||||
Version: stringPtr("1"),
|
||||
DefaultProfile: "exec",
|
||||
Inputs: []domain.PromptInput{{Name: "transcript", Required: true}},
|
||||
Templates: []domain.PromptMessageTemplate{{Role: "user", Content: "x"}},
|
||||
|
||||
Reference in New Issue
Block a user