mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-08-18 20:19:18 +08:00
all tools
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
pub mod agent {
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
pub mod v1 {
|
||||
include!(concat!(env!("OUT_DIR"), "/agent.v1.rs"));
|
||||
}
|
||||
}
|
||||
|
||||
pub mod aiserver {
|
||||
pub mod v1 {
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct BidiRequestId {
|
||||
#[prost(string, tag = "1")]
|
||||
pub request_id: String,
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct BidiAppendRequest {
|
||||
#[prost(string, tag = "1")]
|
||||
pub data: String,
|
||||
#[prost(message, optional, tag = "2")]
|
||||
pub request_id: Option<BidiRequestId>,
|
||||
#[prost(int64, tag = "3")]
|
||||
pub append_seqno: i64,
|
||||
#[prost(bytes = "vec", tag = "4")]
|
||||
pub data_binary: Vec<u8>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
|
||||
pub struct BidiAppendResponse {}
|
||||
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct CustomErrorDetails {
|
||||
#[prost(string, tag = "1")]
|
||||
pub title: String,
|
||||
#[prost(string, tag = "2")]
|
||||
pub detail: String,
|
||||
#[prost(bool, optional, tag = "3")]
|
||||
pub allow_command_links_potentially_unsafe_please_only_use_for_handwritten_trusted_markdown:
|
||||
Option<bool>,
|
||||
#[prost(bool, optional, tag = "4")]
|
||||
pub is_retryable: Option<bool>,
|
||||
#[prost(bool, optional, tag = "5")]
|
||||
pub show_request_id: Option<bool>,
|
||||
#[prost(bool, optional, tag = "6")]
|
||||
pub should_show_immediate_error: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct ErrorDetails {
|
||||
#[prost(enumeration = "error_details::Error", tag = "1")]
|
||||
pub error: i32,
|
||||
#[prost(message, optional, tag = "2")]
|
||||
pub details: Option<CustomErrorDetails>,
|
||||
#[prost(bool, optional, tag = "3")]
|
||||
pub is_expected: Option<bool>,
|
||||
}
|
||||
|
||||
pub mod error_details {
|
||||
#[derive(
|
||||
Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration,
|
||||
)]
|
||||
#[repr(i32)]
|
||||
pub enum Error {
|
||||
Unspecified = 0,
|
||||
CustomMessage = 29,
|
||||
ProviderError = 57,
|
||||
Internal = 59,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user