]> git.giacomolli.uk - onechat/blobdiff - turn_test.go
Prove direct cancellation during a pending sync
[onechat] / turn_test.go
index 27151a9af9d6bafb1191c5da589f6c8cfb2a43ea..3c6bb06aa1d244328442c1d8b643d02c0db22976 100644 (file)
@@ -18,7 +18,7 @@ func TestTurnRunsToolsUntilTheFinalAnswer(t *testing.T) {
        server.reply = func(w http.ResponseWriter, call ModelFakeCall) {
                if call.number == 0 {
                        modelWriteEvents(w, modelCompletedEvent([]any{
-                               modelReasoningItem("rs_1", "opaque thought"),
+                               turnReasoningItem("rs_1", "opaque thought"),
                                modelFunctionCallItem("fc_1", "call_1", "shell", `{"command":"echo hi"}`),
                        }, 100, 0, 5))
 
@@ -391,7 +391,7 @@ func (r *TurnEventRecorder) LastEvent(kind string) Event {
        return Event{}
 }
 
-func modelReasoningItem(id, encrypted string) map[string]any {
+func turnReasoningItem(id, encrypted string) map[string]any {
        return map[string]any{
                "type":              "reasoning",
                "id":                id,