Skip to main content

make_write

Function make_write 

Source
pub fn make_write(options: MakeWriteOptions) -> FunctionTool
Expand description

Creates a sandbox-routed write tool. Missing parent directories are created; the call fails when path is not absolute or has a .. segment.

use strands::vended_tools::write::{MakeWriteOptions, make_write};

let tool = make_write(MakeWriteOptions::builder().name("save").build());
assert_eq!(strands::Tool::name(&tool), "save");