pub fn make_programmatic_tool_caller(
options: MakeProgrammaticToolCallerOptions,
) -> ProgrammaticToolCallerExpand description
Creates a programmatic tool caller.
use std::time::Duration;
use strands::Tool;
use strands_harness::tools::programmatic_tool_caller::{
Isolation, MakeProgrammaticToolCallerOptions, make_programmatic_tool_caller,
};
let caller = make_programmatic_tool_caller(
MakeProgrammaticToolCallerOptions::builder()
.name("run_code")
.allowed_tools(vec!["read".to_owned()])
.timeout(Some(Duration::from_secs(60)))
.isolation(Isolation::InProcess)
.build(),
);
assert_eq!(caller.name(), "run_code");