Skip to main content

systemprompt_models/a2a/
artifact_summary.rs

1//! Compact artifact summary rows for listings.
2//!
3//! Copyright (c) systemprompt.io — Business Source License 1.1.
4//! See <https://systemprompt.io> for licensing details.
5
6use chrono::{DateTime, Utc};
7use schemars::JsonSchema;
8use serde::{Deserialize, Serialize};
9use systemprompt_identifiers::{ArtifactId, TaskId};
10
11#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]
12pub struct ArtifactSummary {
13    pub artifact_id: ArtifactId,
14    pub name: Option<String>,
15    pub artifact_type: String,
16    pub tool_name: Option<String>,
17    pub task_id: TaskId,
18    pub created_at: DateTime<Utc>,
19}