Plan
Defined in the planning module.Rust AI Agent SDK A plan consisting of multiple steps.
Fields
| Name | Type | Description |
|---|---|---|
id | String | Plan ID |
name | String | Plan name/goal |
description | Option<String> | Plan description |
steps | Vec<PlanStep> | Steps in the plan |
created_at | chrono::DateTime<chrono::Utc> | Created timestamp |
updated_at | chrono::DateTime<chrono::Utc> | Updated timestamp |
metadata | HashMap<String | Plan metadata |
Methods
new
| Name | Type |
|---|---|
name | impl Into<String> |
description
| Name | Type |
|---|---|
desc | impl Into<String> |
add_step
| Name | Type |
|---|---|
step | PlanStep |
get_step
| Name | Type |
|---|---|
id | &str |
get_step_mut
| Name | Type |
|---|---|
id | &str |
completed_steps
next_step
progress
is_complete
has_failed
step_count
Source
View on GitHub
praisonai/src/planning/mod.rs at line 127
