pub fn make_notebook(options: MakeNotebookOptions) -> Result<FunctionTool>Expand description
Creates a notebook tool with the modes create (replaces any content),
list, read (optionally a line range, negative indices from the end), write (append,
replace oldStr, or insert after insertLine, a line number or search text) and clear.
use strands::vended_tools::notebook::{MakeNotebookOptions, make_notebook};
let scratchpad = make_notebook(
MakeNotebookOptions::builder().name("scratchpad").max_notebook_size_bytes(65_536).build(),
)?;
assert_eq!(strands::Tool::name(&scratchpad), "scratchpad");ยงErrors
When name is empty or max_notebook_size_bytes is 0.