pub struct Plan {
pub summary: String,
pub steps: Vec<PlanStep>,
}Expand description
A structured plan produced by the PlanningAgent.
Fields§
§summary: String§steps: Vec<PlanStep>Implementations§
Source§impl Plan
impl Plan
Sourcepub fn from_context(ctx: &AgentContext) -> Option<Self>
pub fn from_context(ctx: &AgentContext) -> Option<Self>
Extract plan from AgentContext (set by PlanTool).
Sourcepub fn to_message(&self) -> Message
pub fn to_message(&self) -> Message
Convert plan to a message for injection into a build agent’s context.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Plan
impl<'de> Deserialize<'de> for Plan
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
Auto Trait Implementations§
impl Freeze for Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnsafeUnpin for Plan
impl UnwindSafe for Plan
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