pub struct TodoWriteTool;Expand description
TodoWrite tool - manage session todo list
Implementations§
Source§impl TodoWriteTool
impl TodoWriteTool
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 TodoWriteTool
impl Default for TodoWriteTool
Source§impl ToolRender for TodoWriteTool
impl ToolRender for TodoWriteTool
Auto Trait Implementations§
impl Freeze for TodoWriteTool
impl RefUnwindSafe for TodoWriteTool
impl Send for TodoWriteTool
impl Sync for TodoWriteTool
impl Unpin for TodoWriteTool
impl UnsafeUnpin for TodoWriteTool
impl UnwindSafe for TodoWriteTool
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