rightkit_agent_engine_protocol/
refs.rs1use serde::{Deserialize, Serialize};
2
3pub const TOOL_OUTPUT_INTERNAL_KIND: &str = "tool_output_internal";
4
5#[derive(Debug, Clone, Serialize, Deserialize)]
7#[serde(rename_all = "camelCase")]
8pub struct OutputRef {
9 pub id: String,
10 pub kind: String,
12 pub size_bytes: i64,
13 pub content_hash: Option<String>,
14 pub preview: Option<String>,
15 #[serde(default = "default_output_media_type")]
18 pub media_type: String,
19 #[serde(default)]
21 pub truncated: bool,
22 #[serde(default)]
25 pub retrievable: bool,
26}
27
28fn default_output_media_type() -> String {
29 "text/plain; charset=utf-8".to_string()
30}
31
32#[derive(Debug, Clone, Serialize, Deserialize)]
34#[serde(rename_all = "camelCase")]
35pub struct ArtifactRef {
36 pub id: String,
37 pub kind: String,
39 pub title: Option<String>,
40 pub content_hash: Option<String>,
41}