pub struct EnterWorktreeTool;Expand description
EnterWorktree tool - create and enter a git worktree
Implementations§
Source§impl EnterWorktreeTool
impl EnterWorktreeTool
pub fn new() -> Self
pub fn name(&self) -> &str
pub fn description(&self) -> &str
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 EnterWorktreeTool
impl Default for EnterWorktreeTool
Source§impl ToolRender for EnterWorktreeTool
impl ToolRender for EnterWorktreeTool
Auto Trait Implementations§
impl Freeze for EnterWorktreeTool
impl RefUnwindSafe for EnterWorktreeTool
impl Send for EnterWorktreeTool
impl Sync for EnterWorktreeTool
impl Unpin for EnterWorktreeTool
impl UnsafeUnpin for EnterWorktreeTool
impl UnwindSafe for EnterWorktreeTool
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