Skip to main content

Module write

Module write 

Source
Expand description

The sandbox-routed write tool: creates or overwrites a text file. Pairs with read and edit.

Structs§

MakeWriteOptions
Options for make_write (MakeWriteOptions).
MakeWriteOptionsBuilder
Use builder syntax to set the inputs and finish with build().

Constants§

DEFAULT_WRITE_DESCRIPTION
The description of the write tool shown to the model (DEFAULT_WRITE_DESCRIPTION).

Functions§

make_write
Creates a sandbox-routed write tool. Missing parent directories are created; the call fails when path is not absolute or has a .. segment.
write
The default write tool, writing through the calling agent’s sandbox (write).