1#[cfg_attr(feature = "python", ::pyo3::pyclass(get_all, set_all))]
5#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6pub struct Agent {
7 #[prost(string, tag="1")]
9 pub name: ::prost::alloc::string::String,
10 #[prost(string, tag="2")]
12 pub catalog_name: ::prost::alloc::string::String,
13 #[prost(string, tag="3")]
15 pub schema_name: ::prost::alloc::string::String,
16 #[prost(string, tag="4")]
18 pub full_name: ::prost::alloc::string::String,
19 #[prost(string, tag="5")]
21 pub agent_id: ::prost::alloc::string::String,
22 #[prost(enumeration="InvocationProtocol", tag="6")]
24 pub invocation_protocol: i32,
25 #[prost(string, tag="7")]
27 pub endpoint: ::prost::alloc::string::String,
28 #[prost(string, optional, tag="8")]
31 pub description: ::core::option::Option<::prost::alloc::string::String>,
32 #[prost(string, repeated, tag="9")]
35 pub capabilities: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
36 #[prost(string, optional, tag="10")]
40 pub input_schema: ::core::option::Option<::prost::alloc::string::String>,
41 #[prost(string, optional, tag="11")]
43 pub owner: ::core::option::Option<::prost::alloc::string::String>,
44 #[prost(string, optional, tag="12")]
46 pub comment: ::core::option::Option<::prost::alloc::string::String>,
47 #[prost(int64, optional, tag="1000")]
49 pub created_at: ::core::option::Option<i64>,
50 #[prost(string, optional, tag="1001")]
52 pub created_by: ::core::option::Option<::prost::alloc::string::String>,
53 #[prost(int64, optional, tag="1002")]
55 pub updated_at: ::core::option::Option<i64>,
56 #[prost(string, optional, tag="1003")]
58 pub updated_by: ::core::option::Option<::prost::alloc::string::String>,
59 #[prost(string, optional, tag="1004")]
61 pub metastore_id: ::core::option::Option<::prost::alloc::string::String>,
62}
63#[cfg_attr(feature = "python", ::pyo3::pyclass)]
65#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
66#[repr(i32)]
67pub enum InvocationProtocol {
68 Unspecified = 0,
69 Mcp = 1,
71 A2a = 2,
73 Openai = 3,
75 Anthropic = 4,
77 Rest = 5,
79}
80impl InvocationProtocol {
81 pub fn as_str_name(&self) -> &'static str {
86 match self {
87 Self::Unspecified => "INVOCATION_PROTOCOL_UNSPECIFIED",
88 Self::Mcp => "MCP",
89 Self::A2a => "A2A",
90 Self::Openai => "OPENAI",
91 Self::Anthropic => "ANTHROPIC",
92 Self::Rest => "REST",
93 }
94 }
95 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
97 match value {
98 "INVOCATION_PROTOCOL_UNSPECIFIED" => Some(Self::Unspecified),
99 "MCP" => Some(Self::Mcp),
100 "A2A" => Some(Self::A2a),
101 "OPENAI" => Some(Self::Openai),
102 "ANTHROPIC" => Some(Self::Anthropic),
103 "REST" => Some(Self::Rest),
104 _ => None,
105 }
106 }
107}
108#[cfg_attr(feature = "python", ::pyo3::pyclass(get_all, set_all))]
110#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
111pub struct ListAgentsRequest {
112 #[prost(string, tag="1")]
114 pub catalog_name: ::prost::alloc::string::String,
115 #[prost(string, tag="2")]
117 pub schema_name: ::prost::alloc::string::String,
118 #[prost(int32, optional, tag="3")]
120 pub max_results: ::core::option::Option<i32>,
121 #[prost(string, optional, tag="4")]
123 pub page_token: ::core::option::Option<::prost::alloc::string::String>,
124 #[prost(bool, optional, tag="5")]
127 pub include_browse: ::core::option::Option<bool>,
128}
129#[cfg_attr(feature = "python", ::pyo3::pyclass(get_all, set_all))]
131#[derive(Clone, PartialEq, ::prost::Message)]
132pub struct ListAgentsResponse {
133 #[prost(message, repeated, tag="1")]
135 pub agents: ::prost::alloc::vec::Vec<Agent>,
136 #[prost(string, optional, tag="2")]
141 pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
142}
143#[cfg_attr(feature = "python", ::pyo3::pyclass(get_all, set_all))]
145#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
146pub struct CreateAgentRequest {
147 #[prost(string, tag="1")]
149 pub catalog_name: ::prost::alloc::string::String,
150 #[prost(string, tag="2")]
152 pub schema_name: ::prost::alloc::string::String,
153 #[prost(string, tag="3")]
155 pub name: ::prost::alloc::string::String,
156 #[prost(enumeration="InvocationProtocol", tag="4")]
158 pub invocation_protocol: i32,
159 #[prost(string, tag="5")]
161 pub endpoint: ::prost::alloc::string::String,
162 #[prost(string, optional, tag="6")]
164 pub description: ::core::option::Option<::prost::alloc::string::String>,
165 #[prost(string, repeated, tag="7")]
167 pub capabilities: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
168 #[prost(string, optional, tag="8")]
170 pub input_schema: ::core::option::Option<::prost::alloc::string::String>,
171 #[prost(string, optional, tag="9")]
173 pub comment: ::core::option::Option<::prost::alloc::string::String>,
174}
175#[cfg_attr(feature = "python", ::pyo3::pyclass(get_all, set_all))]
176#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
177pub struct GetAgentRequest {
178 #[prost(string, tag="1")]
180 pub name: ::prost::alloc::string::String,
181 #[prost(bool, optional, tag="1005")]
184 pub include_browse: ::core::option::Option<bool>,
185}
186#[cfg_attr(feature = "python", ::pyo3::pyclass(get_all, set_all))]
187#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
188pub struct UpdateAgentRequest {
189 #[prost(string, tag="1")]
191 pub name: ::prost::alloc::string::String,
192 #[prost(string, optional, tag="2")]
194 pub new_name: ::core::option::Option<::prost::alloc::string::String>,
195 #[prost(enumeration="InvocationProtocol", optional, tag="3")]
197 pub invocation_protocol: ::core::option::Option<i32>,
198 #[prost(string, optional, tag="4")]
200 pub endpoint: ::core::option::Option<::prost::alloc::string::String>,
201 #[prost(string, optional, tag="5")]
203 pub description: ::core::option::Option<::prost::alloc::string::String>,
204 #[prost(string, repeated, tag="6")]
206 pub capabilities: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
207 #[prost(string, optional, tag="7")]
209 pub input_schema: ::core::option::Option<::prost::alloc::string::String>,
210 #[prost(string, optional, tag="8")]
212 pub comment: ::core::option::Option<::prost::alloc::string::String>,
213 #[prost(string, optional, tag="9")]
215 pub owner: ::core::option::Option<::prost::alloc::string::String>,
216}
217#[cfg_attr(feature = "python", ::pyo3::pyclass(get_all, set_all))]
218#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
219pub struct DeleteAgentRequest {
220 #[prost(string, tag="1")]
222 pub name: ::prost::alloc::string::String,
223}
224include!("unitycatalog.agents.v0alpha1.serde.rs");
225