Skip to content

Commit 880f51f

Browse files
committed
Updated the tests to match the changes in chat.clj.
1 parent 051e88d commit 880f51f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/eca/features/chat_tool_call_state_test.clj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
(let [result (#'f.chat/transition-tool-call! db* chat-ctx tool-call-id :tool-prepare event-data)]
122122

123123
(is (match? {:status :preparing
124-
:actions [:send-toolCallPrepare :init-decision-reason]}
124+
:actions [:init-tool-call-state :send-toolCallPrepare]}
125125
result)
126126
"Expected return value to show :preparing status and send toolCallPrepare action")
127127

@@ -218,7 +218,7 @@
218218
(let [result (#'f.chat/transition-tool-call! db* chat-ctx tool-call-id :tool-run run-event-data)]
219219

220220
(is (match? {:status :check-approval
221-
:actions [:init-approval-promise :send-toolCallRun]}
221+
:actions [:init-arguments :init-approval-promise :send-toolCallRun]}
222222
result)
223223
"Expected next state to be :check-approval with actions of :init-approval-promise and :send-toolCallRun")
224224

@@ -273,7 +273,7 @@
273273
;; Step 2: :preparing -> :check-approval
274274
(let [result (#'f.chat/transition-tool-call! db* chat-ctx tool-call-id :tool-run run-event-data)]
275275
(is (match? {:status :check-approval
276-
:actions [:init-approval-promise :send-toolCallRun]}
276+
:actions [:init-arguments :init-approval-promise :send-toolCallRun]}
277277
result)
278278
"Expected transition to :check-approval with init promise and send run actions")
279279

@@ -517,6 +517,7 @@
517517
(#'f.chat/transition-tool-call! db* chat-ctx "tool-rejected" :stop-requested))
518518
"Expected exception as already rejected tool calls cannot be stopped"))))))
519519

520+
;; TODO: This test and the previous test seem to be testing similar things. Clean up.
520521
(deftest transition-tool-call-stop-transitions-test
521522
(testing "Stop transitions from various states"
522523
(h/reset-components!)

0 commit comments

Comments
 (0)