From c6ce11e17af9a4b62bbbc082e5f13bb3a3b656a6 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Sat, 7 Mar 2026 23:54:00 +0000 Subject: test(api): update elaborate and validate tests to use AgentConfig --- internal/api/elaborate_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'internal/api/elaborate_test.go') diff --git a/internal/api/elaborate_test.go b/internal/api/elaborate_test.go index 52f7fdf..4939701 100644 --- a/internal/api/elaborate_test.go +++ b/internal/api/elaborate_test.go @@ -53,7 +53,8 @@ func TestElaborateTask_Success(t *testing.T) { task := elaboratedTask{ Name: "Run Go tests with race detector", Description: "Runs the Go test suite with -race flag and checks coverage.", - Claude: elaboratedClaude{ + Agent: elaboratedAgent{ + Type: "claude", Model: "sonnet", Instructions: "Run go test -race ./... and report results.", WorkingDir: "", @@ -94,7 +95,7 @@ func TestElaborateTask_Success(t *testing.T) { if result.Name == "" { t.Error("expected non-empty name") } - if result.Claude.Instructions == "" { + if result.Agent.Instructions == "" { t.Error("expected non-empty instructions") } } @@ -127,7 +128,8 @@ func TestElaborateTask_MarkdownFencedJSON(t *testing.T) { task := elaboratedTask{ Name: "Test task", Description: "Does something.", - Claude: elaboratedClaude{ + Agent: elaboratedAgent{ + Type: "claude", Model: "sonnet", Instructions: "Do the thing.", MaxBudgetUSD: 0.5, -- cgit v1.2.3