File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 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
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
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
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! )
You can’t perform that action at this time.
0 commit comments