1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
// @generated from the MSP stable schema and protocol sources; do not edit by hand.
use serde::Deserialize;
use serde::Serialize;
mod catch_all;
/// `toolCall.statusProgress`: the latest `TaskProgressDetail`, field-for-field.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
#[non_exhaustive]
pub struct StatusProgress {
/// Completed units.
pub current: u64,
/// Total units, when known.
#[serde(skip_serializing_if = "Option::is_none")]
pub total: Option<u64>,
/// Unit label, when recorded.
#[serde(skip_serializing_if = "Option::is_none")]
pub unit: Option<String>,
}
/// `toolCall.statusStep`: the latest `TaskActiveStepDetail`, field-for-field.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
#[non_exhaustive]
pub struct StatusStep {
/// The active step's label.
pub label: String,
/// The step index, when known.
#[serde(skip_serializing_if = "Option::is_none")]
pub index: Option<u64>,
/// The step count, when known.
#[serde(skip_serializing_if = "Option::is_none")]
pub total: Option<u64>,
}
/// `toolCall.statusAttempt`: the latest `TaskExternalAttemptDetail`,
/// field-for-field — countdown inputs the client renders the tick from, so no
/// event spam.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
#[non_exhaustive]
pub struct StatusAttempt {
/// The external system (durable vocabulary, verbatim).
pub system: String,
/// The operation (durable vocabulary, verbatim).
pub operation: String,
/// The attempt number.
pub attempt: u32,
/// The scheduled next attempt, when known.
#[serde(skip_serializing_if = "Option::is_none")]
pub next_attempt: Option<u32>,
/// The maximum attempts, when known.
#[serde(skip_serializing_if = "Option::is_none")]
pub max_attempts: Option<u32>,
/// The retry delay in ms, when known.
#[serde(skip_serializing_if = "Option::is_none")]
pub retry_delay_ms: Option<u64>,
/// The error kind (durable vocabulary, verbatim), when recorded.
#[serde(skip_serializing_if = "Option::is_none")]
pub error_kind: Option<String>,
/// The HTTP status, when recorded.
#[serde(skip_serializing_if = "Option::is_none")]
pub http_status: Option<u16>,
}
/// `toolCall.statusHealth`: the latest `TaskHealthDetail`, field-for-field.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
#[non_exhaustive]
pub struct StatusHealth {
/// The health level (the durable `TaskHealthLevel` vocabulary verbatim).
pub level: StatusHealthLevel,
/// The reason, when recorded.
#[serde(skip_serializing_if = "Option::is_none")]
pub reason: Option<String>,
}
/// `toolCall.statusHealth.level`: the durable `TaskHealthLevel` vocabulary
/// verbatim. Open — runtime vocabulary may grow additively, and clients MUST
/// render unknown levels generically.
#[derive(Debug, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum StatusHealthLevel {
/// Healthy.
Ok,
/// Waiting.
Waiting,
/// Degraded.
Degraded,
/// Retrying.
Retrying,
/// Blocked.
Blocked,
/// Failed.
Failed,
/// A value from a newer host, kept verbatim so an older client decodes the
/// rest of the message. Never construct it with a known word.
Unknown(String),
}
/// `toolCall.statusChildren`: the latest `TaskChildSummaryDetail`,
/// field-for-field.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
#[non_exhaustive]
pub struct StatusChildren {
/// Active children.
pub active: u64,
/// Completed children.
pub completed: u64,
/// Failed children.
pub failed: u64,
/// Cancelled children.
pub cancelled: u64,
/// Total children, when known.
#[serde(skip_serializing_if = "Option::is_none")]
pub total: Option<u64>,
}