systemprompt-models 0.1.18

Shared data models and types for systemprompt.io OS
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::artifact_metadata::ArtifactMetadata;
use super::message::Part;
use serde::{Deserialize, Serialize};
use systemprompt_identifiers::ArtifactId;

#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct Artifact {
    #[serde(rename = "artifactId")]
    pub id: ArtifactId,
    pub name: Option<String>,
    pub description: Option<String>,
    pub parts: Vec<Part>,
    pub extensions: Vec<serde_json::Value>,
    pub metadata: ArtifactMetadata,
}