about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArun Isaac2026-04-12 04:18:39 +0100
committerArun Isaac2026-04-12 04:18:39 +0100
commit968c5f2c9df53139729aa5356ad5a802d1c88f37 (patch)
tree2edfa9d8b85cbdcbcd4ded76290b992a297dc5dc
parentbe1495966157c20bce6c248ce3858baf9960e335 (diff)
downloadkaagum-968c5f2c9df53139729aa5356ad5a802d1c88f37.tar.gz
kaagum-968c5f2c9df53139729aa5356ad5a802d1c88f37.tar.lz
kaagum-968c5f2c9df53139729aa5356ad5a802d1c88f37.zip
Raise &tool-call-parse-failure when required arguments are missing.
spec->tool-call promises to raise &tool-call-parse-failure, not
&tool-call-failure.
-rw-r--r--kaakaa/tools.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/kaakaa/tools.scm b/kaakaa/tools.scm
index 50c2603..ef5d7ed 100644
--- a/kaakaa/tools.scm
+++ b/kaakaa/tools.scm
@@ -187,7 +187,7 @@ names that have been respectively allowed and rejected by the user in advance."
                                (else
                                 (and (tool-parameter-required? parameter)
                                      (raise-exception
-                                      (tool-call-failure
+                                      (tool-call-parse-failure
                                        (string-append "Error: Missing required argument "
                                                       arg-name))))))))
                            (tool-parameters tool))