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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
//! # A2A (Agent2Agent) Protocol Types
//!
//! This crate provides the Rust data structures for the Agent2Agent (A2A) protocol,
//! generated from the canonical `proto/a2a.proto` definition via `prost` + `pbjson`.
//!
//! All types are available directly as `a2a_types::Foo`.
use ;
// ============================================================================
// Proto-generated types — included directly at the crate root.
// No intermediate module; every generated type is a first-class member of
// `a2a_types`.
// ============================================================================
include!;
include!;
// ============================================================================
// JSON-RPC 2.0 Wire Types
//
// JSON-RPC framing is not in the proto (it is a transport-level binding),
// so these three types remain hand-written. Used by `a2a-client` and the
// `web` layer in `radkit` to parse and build JSON-RPC envelopes.
// ============================================================================
/// Represents a JSON-RPC 2.0 identifier, which can be a string, number, or null.
/// Represents a JSON-RPC 2.0 Error Response object.
/// Represents a JSON-RPC 2.0 Error object, included in an error response.
// ============================================================================
// A2A Error Types
//
// Thin wrappers carrying well-known JSON-RPC error codes for the A2A protocol.
// Used by `error_mapper.rs` to build `JSONRPCError` values from `AgentError`.
// ============================================================================
/// An error indicating that the JSON sent is not a valid Request object.
/// An error indicating that the method parameters are invalid.
/// An error indicating an internal error on the server.
/// An A2A-specific error indicating that the requested task ID was not found.
/// An A2A-specific error indicating that the requested operation is not supported.