Structs§
Enums§
- Safe
Tool Result - Return type for
safe_toolbodies. Useok(...)/fail(...)to build an explicit envelope, or returnData(Value)to auto-wrap as{success:true, data:value}.From<ToolEnvelope>andFrom<Value>impls let bodies justreturn Ok(env.into())/return Ok(value.into()). - Tool
Chunk - Tool
Envelope - Tool
Step
Traits§
Functions§
- execute_
tools - fail
- ok
- read_
file_ tool - safe_
tool RegisteredTool::textequivalent that wraps the body in a structured envelope. The body returns either:- tool_
fail - Build a coded tool-failure
Error(parity with Nodenew ToolError(message, {code, hint})). Throwing this from asafe_toolbody produces{success:false, code, error, hint?}; thrown from a classictool()body, the catch site formats it viaformat_tool_erroras JSON. - validate_
tool_ arguments