Guide long-running Agent work through inspection, edits and verification
This commit is contained in:
1 parent
d04777247b
commit
2c176a9869
3 files changed
+45
-6
No files matched your search
@@ -423,6 +423,7 @@ class AgentWorkerIntegrationTest {
|
||||
var first = captured.getAllValues().getFirst().path("messages");
|
||||
assertEquals(2, first.size());
|
||||
assertEquals("system", first.get(0).path("role").asText());
|
||||
assertTrue(first.get(0).path("content").asText().contains("make one focused edit"));
|
||||
assertTrue(first.get(1).path("content").asText().startsWith(prompt));
|
||||
assertTrue(first.get(1).path("content").asText().contains("index.html"));
|
||||
assertTrue(first.get(1).path("content").asText().contains("npm run build"));
|
||||
@@ -454,6 +455,7 @@ class AgentWorkerIntegrationTest {
|
||||
var checkpoint = tasks.agentHistory(id);
|
||||
assertTrue(checkpoint.through() > 0);
|
||||
assertTrue(checkpoint.summary().contains("npm run build"));
|
||||
assertTrue(checkpoint.summary().contains("exit code 0"));
|
||||
assertTrue(checkpoint.summary().contains("7200"));
|
||||
assertEquals(
|
||||
2, checkpoint.messages().size(), "Only the system prompt and new model turn are active");
|
||||
|
||||
Reference in new issue
Block a user