Reject empty and truncated answers and expose complete tool calls

This commit is contained in:
sausheong committed 2026-09-11 23:48:25 +08:00
1 parent 019a38f111
commit 3ca0994437
14 files changed
+278 -7

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ func TestRunLifecycleStartFailureAndFinishCannotChangeOutcome(t *testing.T) {
t.Error("finish unbounded")
}
panic("observer cannot rewrite outcome")
}}, []llm.ChatEvent{{Type: llm.EventDone}}, nil)
}}, []llm.ChatEvent{{Type: llm.EventTextDelta, Text: "Answer"}, {Type: llm.EventDone}}, nil)
defer rt.Close()
defer rt.Session.Close()
failed := false