pub struct ThreadGoalRecord {
pub thread_id: String,
pub goal_id: String,
pub objective: String,
pub status: ThreadGoalStatus,
pub token_budget: Option<i64>,
pub tokens_used: i64,
pub time_used_seconds: i64,
pub continuation_count: i64,
pub created_at: i64,
pub updated_at: i64,
}Expand description
Persisted goal state attached to a thread.
Fields§
§thread_id: StringThread this goal belongs to.
goal_id: StringStable identifier for this goal revision.
objective: StringUser-visible objective.
status: ThreadGoalStatusCurrent lifecycle status.
token_budget: Option<i64>Optional token budget requested by the user.
tokens_used: i64Tokens consumed while pursuing the goal.
time_used_seconds: i64Elapsed wall-clock work time in seconds.
continuation_count: i64Durable continuation passes dispatched for this objective.
created_at: i64Unix timestamp (seconds) when the goal was created.
updated_at: i64Unix timestamp (seconds) when the goal was last updated.
Trait Implementations§
Source§impl Clone for ThreadGoalRecord
impl Clone for ThreadGoalRecord
Source§fn clone(&self) -> ThreadGoalRecord
fn clone(&self) -> ThreadGoalRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThreadGoalRecord
impl Debug for ThreadGoalRecord
Source§impl<'de> Deserialize<'de> for ThreadGoalRecord
impl<'de> Deserialize<'de> for ThreadGoalRecord
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 Eq for ThreadGoalRecord
Source§impl PartialEq for ThreadGoalRecord
impl PartialEq for ThreadGoalRecord
Source§fn eq(&self, other: &ThreadGoalRecord) -> bool
fn eq(&self, other: &ThreadGoalRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ThreadGoalRecord
impl Serialize for ThreadGoalRecord
impl StructuralPartialEq for ThreadGoalRecord
Auto Trait Implementations§
impl Freeze for ThreadGoalRecord
impl RefUnwindSafe for ThreadGoalRecord
impl Send for ThreadGoalRecord
impl Sync for ThreadGoalRecord
impl Unpin for ThreadGoalRecord
impl UnsafeUnpin for ThreadGoalRecord
impl UnwindSafe for ThreadGoalRecord
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