X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/790279faf0fda789d93a75f6f5996e65d5de4a18..f5c601f1801aaa276f8c335fcb51c373edc0b50c:/turn_test.go?ds=sidebyside diff --git a/turn_test.go b/turn_test.go index 949c0b8..811487e 100644 --- a/turn_test.go +++ b/turn_test.go @@ -388,7 +388,7 @@ func turnInputTexts(t *testing.T, call ModelFakeCall) []string { func newTestTurnLoopWith(t *testing.T, server *ModelFake, summarizer Summarizer) *TurnTestLoop { t.Helper() - agent, err := openAgent(t.TempDir()) + agent, err := openAgent(filepath.Join(t.TempDir(), "agent")) require.NoError(t, err) agent.config.Workdir = t.TempDir() @@ -423,3 +423,12 @@ func newTestTurnLoopWith(t *testing.T, server *ModelFake, summarizer Summarizer) return test } + +func modelReasoningItem(id, encrypted string) map[string]any { + return map[string]any{ + "type": "reasoning", + "id": id, + "encrypted_content": encrypted, + "summary": []any{}, + } +}