pub struct AgentPlan {
pub plan_id: PlanId,
pub agent_id: AgentId,
pub goal_id: GoalId,
pub description: String,
pub status: PlanStatus,
pub steps: Vec<PlanStep>,
pub estimated_cost: Option<PlanCost>,
pub actual_cost: Option<PlanCost>,
pub created_at: Timestamp,
pub started_at: Option<Timestamp>,
pub completed_at: Option<Timestamp>,
}Expand description
A plan to achieve a goal.
Fields§
§plan_id: PlanIdUnique identifier for this plan
agent_id: AgentIdAgent that created this plan
goal_id: GoalIdGoal this plan is for
description: StringDescription of the plan
status: PlanStatusCurrent status
steps: Vec<PlanStep>Steps in the plan
estimated_cost: Option<PlanCost>Estimated cost
actual_cost: Option<PlanCost>Actual cost (after execution)
created_at: TimestampWhen this plan was created
started_at: Option<Timestamp>When execution started
completed_at: Option<Timestamp>When completed
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentPlan
impl<'de> Deserialize<'de> for AgentPlan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for AgentPlan
Auto Trait Implementations§
impl Freeze for AgentPlan
impl RefUnwindSafe for AgentPlan
impl Send for AgentPlan
impl Sync for AgentPlan
impl Unpin for AgentPlan
impl UnwindSafe for AgentPlan
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