Skip to content

Commit 58fe983

Browse files
committed
Changed actions on :check-approval -> :rejected transition
That was a bugfix. Also used the new :reason code in sending toolCallRejected. This was an ommission.
1 parent 1675b9a commit 58fe983

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/eca/features/chat.clj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@
8686
- promise init & delivery
8787
- logging/metrics
8888
89+
Note: all actions are run in the order specified.
90+
8991
Note: all choices (i.e. conditionals) have to be made in code and result
9092
in different events sent to the state machine.
9193
For example, from the :check-approval state you can either get
@@ -151,7 +153,7 @@
151153

152154
[:check-approval :stop-requested]
153155
{:status :rejected
154-
:actions [:set-decision-reason :send-toolCallRejected]}
156+
:actions [:set-decision-reason :deliver-approval-false]}
155157

156158
[:preparing :stop-requested]
157159
{:status :stopped
@@ -215,7 +217,7 @@
215217
:origin (:origin event-data)
216218
:name (:name event-data)
217219
:arguments (:arguments event-data)
218-
:reason (:reason event-data :user)}
220+
:reason (:code (:reason event-data) :user))}
219221
:details (:details event-data)
220222
:summary (:summary event-data)))
221223

0 commit comments

Comments
 (0)