pub struct Task {
pub id: String,
pub state: TaskState,
pub messages: Vec<Message>,
pub created_at: String,
pub completed_at: Option<String>,
pub error: Option<TaskError>,
pub usage: Option<Value>,
pub artifacts: Option<Vec<ArtifactInfo>>,
}Fields§
§id: String§state: TaskState§messages: Vec<Message>§created_at: String§completed_at: Option<String>§error: Option<TaskError>§usage: Option<Value>§artifacts: Option<Vec<ArtifactInfo>>Zero or more file artifacts produced by this task. Present when the
task completed with an output_artifact_path — the consumer reads
these files byte-by-byte instead of re-typing inline content through
another LLM (#715 Part B).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Task
impl<'de> Deserialize<'de> for Task
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 Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnsafeUnpin for Task
impl UnwindSafe for Task
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