pub struct ToolInput {
pub input: String,
pub workspace_root: String,
}Expand description
Input provided to a plugin tool by the AgentZero runtime.
The runtime serializes this as JSON, writes it into WASM linear memory,
and passes the pointer/length to az_tool_execute.
Fields§
§input: StringThe raw input string from the LLM tool call.
workspace_root: StringAbsolute path to the workspace root directory.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToolInput
impl<'de> Deserialize<'de> for ToolInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ToolInput
impl RefUnwindSafe for ToolInput
impl Send for ToolInput
impl Sync for ToolInput
impl Unpin for ToolInput
impl UnsafeUnpin for ToolInput
impl UnwindSafe for ToolInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more