last := subagentTestLastItem(call)
switch {
case subagentTestCall(call) && last["type"] == "function_call_output":
- // The report comes after the reply of the turn of the spawn.
+ // The report comes after the reply of the turn of the
+ // spawn.
test.events.WaitFor(t, "reply", 1)
modelWriteEvents(w, modelCompletedEvent([]any{modelMessageItem("There are 3 files.")}, 100, 0, 5))
case subagentTestCall(call):