pub struct TodoTools { /* private fields */ }Expand description
Todo tools for managing task lists
Implementations§
Source§impl TodoTools
impl TodoTools
Sourcepub fn with_storage_path(storage_path: impl Into<PathBuf>) -> Self
pub fn with_storage_path(storage_path: impl Into<PathBuf>) -> Self
Create new todo tools with custom storage path
Sourcepub fn with_mcp_provider(self, provider: Arc<dyn Provider>) -> Self
pub fn with_mcp_provider(self, provider: Arc<dyn Provider>) -> Self
Set the MCP provider for todo operations
Sourcepub async fn write_todos_with_timeout(
&self,
input: TodowriteInput,
) -> Result<TodowriteOutput, ToolError>
pub async fn write_todos_with_timeout( &self, input: TodowriteInput, ) -> Result<TodowriteOutput, ToolError>
Write todos with timeout enforcement (500ms)
Attempts to use MCP provider if available, falls back to built-in implementation.
Sourcepub fn write_todos(
&self,
input: TodowriteInput,
) -> Result<TodowriteOutput, ToolError>
pub fn write_todos( &self, input: TodowriteInput, ) -> Result<TodowriteOutput, ToolError>
Write todos (create or update)
Attempts to use MCP provider if available, falls back to built-in implementation.
Sourcepub async fn read_todos_with_timeout(
&self,
input: TodoreadInput,
) -> Result<TodoreadOutput, ToolError>
pub async fn read_todos_with_timeout( &self, input: TodoreadInput, ) -> Result<TodoreadOutput, ToolError>
Read todos with timeout enforcement (500ms)
Attempts to use MCP provider if available, falls back to built-in implementation.
Sourcepub fn read_todos(
&self,
input: TodoreadInput,
) -> Result<TodoreadOutput, ToolError>
pub fn read_todos( &self, input: TodoreadInput, ) -> Result<TodoreadOutput, ToolError>
Read todos with optional filtering
Attempts to use MCP provider if available, falls back to built-in implementation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TodoTools
impl !RefUnwindSafe for TodoTools
impl Send for TodoTools
impl Sync for TodoTools
impl Unpin for TodoTools
impl !UnwindSafe for TodoTools
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