Replies: 2 comments 1 reply
-
|
See #968. This is on the docket, but I need to set some time aside to figure out the best way to do it. |
Beta Was this translation helpful? Give feedback.
-
|
An update: gptel now provides the hooks Between the three options, you can inspect and act on tool calls and tool results, modify arguments, short-circuit the call and provide results yourself, modify the result of the tool call, block tool calls and supply the LLM with a reason, or stop the request entirely. See the documentation of the hooks. (If you want more information see commit messages from a080e68 to af0d39f.) There are two missing features:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be nice if tool confirmation were a bit more programmable.
In my specific case:
The simplest solution, IMO, is to allow the tool's
:confirmparameter to be a synchronous function that:allow,deny(maybe with an optional reason?),ask, or a string (to be displayed in the buffer as the tool confirmation).A more flexible alternative would be to have the tool call some kind of
gptel-ask-confirmationfunction, but that starts turning into callback hell pretty quickly.Beta Was this translation helpful? Give feedback.
All reactions