#[non_exhaustive]pub enum AgentResponse {
Show 14 variants
InitializeResponse(Box<InitializeResponse>),
AuthenticateResponse(AuthenticateResponse),
LogoutResponse(LogoutResponse),
NewSessionResponse(NewSessionResponse),
LoadSessionResponse(LoadSessionResponse),
ListSessionsResponse(ListSessionsResponse),
DeleteSessionResponse(DeleteSessionResponse),
ForkSessionResponse(ForkSessionResponse),
ResumeSessionResponse(ResumeSessionResponse),
CloseSessionResponse(CloseSessionResponse),
SetSessionConfigOptionResponse(SetSessionConfigOptionResponse),
PromptResponse(PromptResponse),
ExtMethodResponse(ExtResponse),
MessageMcpResponse(MessageMcpResponse),
}unstable_protocol_v2 only.Expand description
All possible responses that an agent can send to a client.
This enum is used internally for routing RPC responses. You typically won’t need to use this directly - the responses are handled automatically by the connection.
These are responses to the corresponding ClientRequest variants.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InitializeResponse(Box<InitializeResponse>)
Successful result returned for a initialize request.
AuthenticateResponse(AuthenticateResponse)
Successful result returned for a authenticate request.
LogoutResponse(LogoutResponse)
Successful result returned for a logout request.
NewSessionResponse(NewSessionResponse)
Successful result returned for a session/new request.
LoadSessionResponse(LoadSessionResponse)
Successful result returned for a session/load request.
ListSessionsResponse(ListSessionsResponse)
Successful result returned for a session/list request.
DeleteSessionResponse(DeleteSessionResponse)
Successful result returned for a session/delete request.
ForkSessionResponse(ForkSessionResponse)
unstable_session_fork only.Successful result returned for a session/fork request.
ResumeSessionResponse(ResumeSessionResponse)
Successful result returned for a session/resume request.
CloseSessionResponse(CloseSessionResponse)
Successful result returned for a session/close request.
SetSessionConfigOptionResponse(SetSessionConfigOptionResponse)
Successful result returned for a session/set_config_option request.
PromptResponse(PromptResponse)
Successful result returned for a session/prompt request.
ExtMethodResponse(ExtResponse)
Successful result returned by an extension method outside the core ACP method set.
MessageMcpResponse(MessageMcpResponse)
unstable_mcp_over_acp only.Successful result returned by an MCP-over-ACP mcp/message request.
Trait Implementations§
Source§impl Clone for AgentResponse
impl Clone for AgentResponse
Source§fn clone(&self) -> AgentResponse
fn clone(&self) -> AgentResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AgentResponse
impl Debug for AgentResponse
Source§impl<'de> Deserialize<'de> for AgentResponse
impl<'de> Deserialize<'de> for AgentResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl IntoV1 for AgentResponse
impl IntoV1 for AgentResponse
Source§type Output = AgentResponse
type Output = AgentResponse
Source§fn into_v1(
self,
) -> Result<<AgentResponse as IntoV1>::Output, ProtocolConversionError>
fn into_v1( self, ) -> Result<<AgentResponse as IntoV1>::Output, ProtocolConversionError>
Source§impl JsonRpcResponse for AgentResponse
impl JsonRpcResponse for AgentResponse
Source§impl JsonSchema for AgentResponse
impl JsonSchema for AgentResponse
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more