about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArun Isaac2026-11-15 04:32:58 +0000
committerArun Isaac2026-11-15 04:37:05 +0000
commitc99e852353cbb2d5b4a289f30f616f75af6fed18 (patch)
treeb46e1db8489d9dcfa41c34e7c3612463a5f8cb72
parentff1654b03a6fca92572b1ca25ce68221cc340208 (diff)
downloadkaagum-c99e852353cbb2d5b4a289f30f616f75af6fed18.tar.gz
kaagum-c99e852353cbb2d5b4a289f30f616f75af6fed18.tar.lz
kaagum-c99e852353cbb2d5b4a289f30f616f75af6fed18.zip
Do not put JSON tree into <user-message>; put only the text.
-rw-r--r--kaagum/tea.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/kaagum/tea.scm b/kaagum/tea.scm
index e50cca9..ca05f52 100644
--- a/kaagum/tea.scm
+++ b/kaagum/tea.scm
@@ -499,7 +499,10 @@ in @code{tea-loop}."
                   (state-begin
                    (state-let* ((state (current-state)))
                      (set-current-state (push (state-messages session-id)
-                                              (user-message prompt)
+                                              ;; TODO: Allow more than one
+                                              ;; content block.
+                                              (user-message (focus (in-json 0 "text")
+                                                                   prompt))
                                               state)))
                    (llm-requests session-id))))))
              ("session/cancel"