Skip to main content

Module todo

Module todo 

Source
Expand description

TODO task tracking for agents.

This module provides tools for agents to track tasks and show progress. Task tracking helps agents organize complex work and gives users visibility into what the agent is working on.

§Example

use agent_sdk::todo::{TodoState, TodoWriteTool, TodoReadTool};
use std::sync::Arc;
use tokio::sync::RwLock;

let state = Arc::new(RwLock::new(TodoState::new()));
let write_tool = TodoWriteTool::new(Arc::clone(&state));
let read_tool = TodoReadTool::new(state);

Structs§

TodoItem
A single TODO item.
TodoReadTool
Tool for reading the current TODO list.
TodoState
Shared TODO state that can be persisted.
TodoWriteTool
Tool for writing/updating the TODO list.

Enums§

TodoStatus
Status of a TODO item.