Skip to main content

systemprompt_models/a2a/
artifact.rs

1use super::artifact_metadata::ArtifactMetadata;
2use super::message::Part;
3use serde::{Deserialize, Serialize};
4use systemprompt_identifiers::ArtifactId;
5
6#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
7#[serde(rename_all = "camelCase")]
8pub struct Artifact {
9    pub id: ArtifactId,
10    pub title: Option<String>,
11    pub description: Option<String>,
12    pub parts: Vec<Part>,
13    pub extensions: Vec<serde_json::Value>,
14    pub metadata: ArtifactMetadata,
15}