X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/d8f3785bb69288663f4cc46bf4d609c6770452d5..4a42f7f208cbfead335eba9ebe615b35b1742130:/turn_test.go?ds=sidebyside diff --git a/turn_test.go b/turn_test.go index 27151a9..3c6bb06 100644 --- a/turn_test.go +++ b/turn_test.go @@ -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,