pub struct FileEditTool;Implementations§
Source§impl FileEditTool
impl FileEditTool
pub fn new() -> Self
pub fn name(&self) -> &str
pub fn description(&self) -> &str
pub fn input_schema(&self) -> ToolInputSchema
pub async fn execute( &self, input: Value, context: &ToolContext, ) -> Result<ToolResult, AgentError>
Sourcepub fn user_facing_name(&self, input: Option<&Value>) -> String
pub fn user_facing_name(&self, input: Option<&Value>) -> String
Returns the user-facing name for this tool based on input. Returns “Update” for edits, “Create” for new files.
Sourcepub fn get_tool_use_summary(&self, input: Option<&Value>) -> Option<String>
pub fn get_tool_use_summary(&self, input: Option<&Value>) -> Option<String>
Returns a short summary for compact views.
Sourcepub fn render_tool_result_message(&self, content: &Value) -> Option<String>
pub fn render_tool_result_message(&self, content: &Value) -> Option<String>
Renders the tool result for display.
Trait Implementations§
Source§impl ToolRender for FileEditTool
impl ToolRender for FileEditTool
Auto Trait Implementations§
impl Freeze for FileEditTool
impl RefUnwindSafe for FileEditTool
impl Send for FileEditTool
impl Sync for FileEditTool
impl Unpin for FileEditTool
impl UnsafeUnpin for FileEditTool
impl UnwindSafe for FileEditTool
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