pub struct AgentGoal {
pub description: String,
pub success_criteria: Vec<String>,
pub progress: f32,
pub achieved: bool,
pub created_at: i64,
pub achieved_at: Option<i64>,
}Expand description
Agent goal with success criteria
Fields§
§description: StringGoal description
success_criteria: Vec<String>Success criteria (list of conditions)
progress: f32Current progress (0.0 - 1.0)
achieved: boolIs goal achieved?
created_at: i64Timestamp when goal was created
achieved_at: Option<i64>Timestamp when goal was achieved (if achieved)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentGoal
impl<'de> Deserialize<'de> for AgentGoal
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 AgentGoal
impl RefUnwindSafe for AgentGoal
impl Send for AgentGoal
impl Sync for AgentGoal
impl Unpin for AgentGoal
impl UnsafeUnpin for AgentGoal
impl UnwindSafe for AgentGoal
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