pub struct TaskRecord {Show 15 fields
pub id: String,
pub parent_task_id: Option<String>,
pub thread_id: String,
pub bot_id: String,
pub depth: u32,
pub objective: String,
pub state: TaskState,
pub result: Option<String>,
pub error: Option<String>,
pub current_activity: Option<String>,
pub model: Option<String>,
pub steps: u32,
pub input_tokens: u64,
pub output_tokens: u64,
pub cost_usd: f64,
}Expand description
A durable unit of work.
Fields§
§id: String§parent_task_id: Option<String>§thread_id: String§bot_id: String§depth: u32§objective: String§state: TaskState§result: Option<String>§error: Option<String>§current_activity: Option<String>§model: Option<String>The provider/model that served the latest step.
steps: u32§input_tokens: u64§output_tokens: u64§cost_usd: f64Trait Implementations§
Source§impl Clone for TaskRecord
impl Clone for TaskRecord
Source§impl Debug for TaskRecord
impl Debug for TaskRecord
Source§impl<'de> Deserialize<'de> for TaskRecord
impl<'de> Deserialize<'de> for TaskRecord
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 TaskRecord
impl RefUnwindSafe for TaskRecord
impl Send for TaskRecord
impl Sync for TaskRecord
impl Unpin for TaskRecord
impl UnsafeUnpin for TaskRecord
impl UnwindSafe for TaskRecord
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