]> git.giacomolli.uk - onechat/blobdiff - chain_test.go
Keep the schedules in a file
[onechat] / chain_test.go
index 833f86e7a73e883a12bc814b43d95a42c4be7437..070a5f2a6f4318538b74b538aa3e2328d5b56f63 100644 (file)
@@ -36,9 +36,10 @@ func TestChainReturnsTheRepliesOfTheFinalAnswer(t *testing.T) {
        chain := &Chain{
                client: newModelClient(server.URL, ModelAPIKey(modelTestKey), "agent-key", filepath.Join(t.TempDir(), "usage.jsonl")),
                tools: &Toolbox{
-                       log:     memory,
-                       chat:    memory,
-                       workdir: t.TempDir(),
+                       log:       memory,
+                       chat:      memory,
+                       subagents: newTestSubagents(t),
+                       workdir:   t.TempDir(),
                },
                request: ModelRequest{
                        Model:  "gpt-test",