Skip to main content

Module edit

Module edit 

Source
Expand description

The sandbox-routed edit tool: replaces an exact, unique string in a text file.

Structs§

MakeEditOptions
Options for make_edit (MakeEditOptions).
MakeEditOptionsBuilder
Use builder syntax to set the inputs and finish with build().

Constants§

DEFAULT_EDIT_DESCRIPTION
The description of the edit tool shown to the model (DEFAULT_EDIT_DESCRIPTION).

Functions§

edit
The default edit tool, editing through the calling agent’s sandbox (edit).
make_edit
Creates a sandbox-routed edit tool: replaces the one occurrence of old_str with new_str, inserted literally.