X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/c781f79f3c8cb9a7577ee1574d196988da2719b3..496569ab5b179932c60b2924bf4c61176c8be004:/subagent_run_test.go?ds=inline diff --git a/subagent_run_test.go b/subagent_run_test.go index efd387c..389a4bf 100644 --- a/subagent_run_test.go +++ b/subagent_run_test.go @@ -532,8 +532,8 @@ func TestRestartReportsASubagentThatCannotGoOn(t *testing.T) { } // subagentTestStart runs a loop of agent with its memory and subagents in the -// agent directory, as the daemon does. The returned function stops the loop -// and closes the files. +// agent directory, as the daemon does. The returned function stops the loop and +// closes the files. func subagentTestStart(t *testing.T, agent *Agent, server *ModelFake, events *TurnEventRecorder, logger *slog.Logger) (*TurnLoop, *Memory, func()) { t.Helper() @@ -562,8 +562,7 @@ func subagentTestStart(t *testing.T, agent *Agent, server *ModelFake, events *Tu } } -// subagentTestChat returns each message of the chat in memory as -// "kind: text". +// subagentTestChat returns each message of the chat in memory as "kind: text". func subagentTestChat(t *testing.T, memory *Memory) []string { t.Helper() @@ -593,8 +592,8 @@ func subagentTestLastItem(call ModelFakeCall) map[string]any { return input[len(input)-1].(map[string]any) } -// subagentTestText returns the text of the user message item, or "" for -// another item. +// subagentTestText returns the text of the user message item, or "" for another +// item. func subagentTestText(item map[string]any) string { content, _ := item["content"].([]any)