-
-
Notifications
You must be signed in to change notification settings - Fork 61
Description
This parameter won't be added to the tool descriptions or the tools parameter schemas as its an internal option meant for to allow clients like editors to offer users the option of making a proposed edit or not.
The tools it will be added to are the: clojure_edit, clojure_edit_replace_sexp, file_edit, and file_write tools.
The reason we need to add this is that the result of the proposed edit operation is not straight forward given the clj-rewrite opterations... this way the llm client can get the actual changes. If we return the new-source code then the client can apply the changes themselves after approval.
The option is simple:
Add a :dry-run parameter.
Then the parameter is included we will not write out source code or notify emacs of changes
But we will still return the source code difference as the output.
:dry-run :diff should return the source code difference.
:dry-run :new-source should return the new source code.