The tool-result shape a CLI handler returns.
A host may enrich these — attaching recovery hints or pending agent
instructions — by passing its own builders to hive-addon.cli/make-handler.
The tool-result shape a CLI handler returns. A host may enrich these — attaching recovery hints or pending agent instructions — by passing its own builders to `hive-addon.cli/make-handler`.
(error message)A failed result carrying MESSAGE.
A failed result carrying MESSAGE.
(error? response)True iff RESPONSE is an error result.
True iff RESPONSE is an error result.
(text content)A successful result carrying CONTENT.
The parameter is not called text: on cljrs a defn parameter sharing the
FUNCTION'S OWN name does not shadow the self-reference, so the body binds the
function object and this returned {:text #<Fn text>}. A parameter named after
any OTHER var shadows correctly, and so does a let — it is specifically the
self-name collision that breaks.
A successful result carrying CONTENT.
The parameter is not called `text`: on cljrs a defn parameter sharing the
FUNCTION'S OWN name does not shadow the self-reference, so the body binds the
function object and this returned {:text #<Fn text>}. A parameter named after
any OTHER var shadows correctly, and so does a `let` — it is specifically the
self-name collision that breaks.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |