about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArun Isaac2026-04-09 18:48:11 +0100
committerArun Isaac2026-04-09 18:48:11 +0100
commitb6ecb57f4635c5a211c3a57d55175903277ce9b0 (patch)
treeb865a2ff4631643454e323f1d5f348bbaa3435a4
parente8e7b0bc98bb0dd2d0ec948741d44ea91d6cc17f (diff)
downloadkaagum-b6ecb57f4635c5a211c3a57d55175903277ce9b0.tar.gz
kaagum-b6ecb57f4635c5a211c3a57d55175903277ce9b0.tar.lz
kaagum-b6ecb57f4635c5a211c3a57d55175903277ce9b0.zip
Send tool_call_update instead of tool_call for tool call updates.
A sessionUpdate of "tool_call" must only be sent when the tool call is
created. Further updates must send a sessionUpdate of
"tool_call_update".
-rw-r--r--kaakaa/tea.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/kaakaa/tea.scm b/kaakaa/tea.scm
index 0f53db6..8129ad1 100644
--- a/kaakaa/tea.scm
+++ b/kaakaa/tea.scm
@@ -364,7 +364,7 @@ and a list of effects.
                                             ("params"
                                              ("sessionId" . ,session-id)
                                              ("update"
-                                              ("sessionUpdate" . "tool_call")
+                                              ("sessionUpdate" . "tool_call_update")
                                               ("toolCallId" . ,call-id)
                                               ("status" . "failed"))))))))))
     (let ((call (spec->tool-call session-id
@@ -490,7 +490,7 @@ state and a list of effects."
                                   ("sessionId" . ,session-id)
                                   ("update"
                                    ;; TODO: Add locations and rawOutput.
-                                   ("sessionUpdate" . "tool_call")
+                                   ("sessionUpdate" . "tool_call_update")
                                    ("toolCallId" . ,(tool-call-result-call-id result))
                                    ("title" . ,(tool-call-result-title result))
                                    ("kind" . ,(tool-call-result-kind result))