]> git.giacomolli.uk - onechat/blobdiff - turn_test.go
Order daemon and storage declarations
[onechat] / turn_test.go
index 949c0b8fe93b550c973d480336e5163f96438555..811487e8771fa54bcf33640606c7945eb6a4d59b 100644 (file)
@@ -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{},
+       }
+}