Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
TodoItem
Defined in the planning module.
Rust AI Agent SDK
A todo item.
Fields
| Name | Type | Description |
|---|
id | String | Item ID |
content | String | Item content |
status | StepStatus | Item status |
priority | TodoPriority | Priority |
tags | Vec<String> | Tags |
due_date | Option<chrono::DateTime<chrono::Utc>> | Due date |
created_at | chrono::DateTime<chrono::Utc> | Created timestamp |
Methods
new
fn new(content: impl Into<String>) -> Self
Create a new todo item.
Parameters:
| Name | Type |
|---|
content | impl Into<String> |
priority
fn priority(mut self, priority: TodoPriority) -> Self
Set priority.
Parameters:
| Name | Type |
|---|
priority | TodoPriority |
tag
fn tag(mut self, tag: impl Into<String>) -> Self
Add a tag.
Parameters:
| Name | Type |
|---|
tag | impl Into<String> |
due
fn due(mut self, date: chrono::DateTime<chrono::Utc>) -> Self
Set due date.
Parameters:
| Name | Type |
|---|
date | chrono::DateTime<chrono::Utc> |
complete
fn complete(&mut self) -> ()
Mark as completed.
is_overdue
fn is_overdue(&self) -> bool
Check if overdue.
Source
View on GitHub
praisonai/src/planning/mod.rs at line 245