pub struct Artifact {
pub artifact_id: String,
pub name: Option<String>,
pub parts: Vec<Part>,
pub metadata: Option<Value>,
}Expand description
A named output produced by an agent during task processing.
Artifacts are the primary mechanism for agents to return results. They can contain
text, files, or structured data, and are accumulated on the Task as the agent runs.
Fields§
§artifact_id: StringUnique artifact identifier within the task.
name: Option<String>Optional human-readable label for the artifact (e.g., "generated_report").
parts: Vec<Part>Content parts composing the artifact.
metadata: Option<Value>Arbitrary extension metadata.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Artifact
impl<'de> Deserialize<'de> for Artifact
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 Artifact
impl RefUnwindSafe for Artifact
impl Send for Artifact
impl Sync for Artifact
impl Unpin for Artifact
impl UnsafeUnpin for Artifact
impl UnwindSafe for Artifact
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