pub enum Response {
Pong,
HelloAck {
granted_capabilities: Vec<String>,
server_version: String,
supported_tiers: Vec<String>,
},
ToolListResponse {
tools: Value,
},
ToolSchemaResponse {
schema: Value,
},
ToolResultResponse {
tool_id: String,
result: Value,
success: bool,
dry_run: bool,
next_cursor: Option<String>,
},
Error {
message: String,
code: Option<u16>,
retryable: Option<bool>,
details: Option<Value>,
},
}Expand description
Response frames sent from server → client.
Variants§
Pong
HelloAck
ToolListResponse
ToolSchemaResponse
ToolResultResponse
Fields
§
next_cursor: Option<String>SP-pagination-v1 §4.1 — when present, the tool has more pages.
The client passes this verbatim to Request::RunToolContinue.cursor
to fetch the next page. Server-opaque (HMAC-signed in the
reference impl); clients MUST NOT parse it. Absent on terminal
pages and on responses from non-paginating tools.
Error
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more