pub struct PowerShellTool;Expand description
PowerShell tool - executes PowerShell commands with security checks
Implementations§
Source§impl PowerShellTool
impl PowerShellTool
pub fn new() -> Self
pub fn name(&self) -> &str
pub fn description(&self) -> String
pub fn user_facing_name(&self, _input: Option<&Value>) -> String
pub fn get_tool_use_summary(&self, input: Option<&Value>) -> Option<String>
pub fn render_tool_result_message(&self, content: &Value) -> Option<String>
pub fn input_schema(&self) -> ToolInputSchema
pub async fn execute( &self, input: Value, context: &ToolContext, ) -> Result<ToolResult, AgentError>
Trait Implementations§
Source§impl Default for PowerShellTool
impl Default for PowerShellTool
Source§impl ToolRender for PowerShellTool
impl ToolRender for PowerShellTool
Auto Trait Implementations§
impl Freeze for PowerShellTool
impl RefUnwindSafe for PowerShellTool
impl Send for PowerShellTool
impl Sync for PowerShellTool
impl Unpin for PowerShellTool
impl UnsafeUnpin for PowerShellTool
impl UnwindSafe for PowerShellTool
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