diff options
| author | Arun Isaac | 2026-04-09 18:49:41 +0100 |
|---|---|---|
| committer | Arun Isaac | 2026-04-09 18:51:47 +0100 |
| commit | 361956056d5b918c41b35f30b763bf401cc5cc7a (patch) | |
| tree | ee4553ac71661bc6ce0e8aaba0b04f1d9e768523 | |
| parent | b6ecb57f4635c5a211c3a57d55175903277ce9b0 (diff) | |
| download | kaagum-361956056d5b918c41b35f30b763bf401cc5cc7a.tar.gz kaagum-361956056d5b918c41b35f30b763bf401cc5cc7a.tar.lz kaagum-361956056d5b918c41b35f30b763bf401cc5cc7a.zip | |
Do not repeat tool title, kind and rawInput.
It is enough to send the tool title, kind and rawInput the first time when the tool call is created. There is no need to send these fields repeatedly in subsequent updates. Subsequent updates need only mention fields that have actually changed.
| -rw-r--r-- | kaakaa/tea.scm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kaakaa/tea.scm b/kaakaa/tea.scm index 8129ad1..61b00f3 100644 --- a/kaakaa/tea.scm +++ b/kaakaa/tea.scm @@ -492,8 +492,6 @@ state and a list of effects." ;; TODO: Add locations and rawOutput. ("sessionUpdate" . "tool_call_update") ("toolCallId" . ,(tool-call-result-call-id result)) - ("title" . ,(tool-call-result-title result)) - ("kind" . ,(tool-call-result-kind result)) ("status" . ,(if (tool-call-result-success? result) "completed" @@ -503,8 +501,7 @@ state and a list of effects." ("content" ("type" . "text") ("text" . ,(focus (key-ref "content") - (tool-call-result-json result))))) - ("rawInput" . ,(tool-call-result-arguments result)))))) + (tool-call-result-json result))))))))) (state->llm-requests session-id state))))) (define (next-state state message tools) |
