#[non_exhaustive]pub enum AgentResponse {
Show 13 variants
InitializeResponse(Box<InitializeResponse>),
LoginAuthResponse(Box<LoginAuthResponse>),
LogoutAuthResponse(Box<LogoutAuthResponse>),
NewSessionResponse(Box<NewSessionResponse>),
ListSessionsResponse(Box<ListSessionsResponse>),
DeleteSessionResponse(Box<DeleteSessionResponse>),
ForkSessionResponse(Box<ForkSessionResponse>),
ResumeSessionResponse(Box<ResumeSessionResponse>),
CloseSessionResponse(Box<CloseSessionResponse>),
SetSessionConfigOptionResponse(Box<SetSessionConfigOptionResponse>),
PromptResponse(Box<PromptResponse>),
ExtMethodResponse(Box<ExtResponse>),
MessageMcpResponse(Box<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.
LoginAuthResponse(Box<LoginAuthResponse>)
Successful result returned for an auth/login request.
LogoutAuthResponse(Box<LogoutAuthResponse>)
Successful result returned for an auth/logout request.
NewSessionResponse(Box<NewSessionResponse>)
Successful result returned for a session/new request.
ListSessionsResponse(Box<ListSessionsResponse>)
Successful result returned for a session/list request.
DeleteSessionResponse(Box<DeleteSessionResponse>)
Successful result returned for a session/delete request.
ForkSessionResponse(Box<ForkSessionResponse>)
unstable_session_fork only.Successful result returned for a session/fork request.
ResumeSessionResponse(Box<ResumeSessionResponse>)
Successful result returned for a session/resume request.
CloseSessionResponse(Box<CloseSessionResponse>)
Successful result returned for a session/close request.
SetSessionConfigOptionResponse(Box<SetSessionConfigOptionResponse>)
Successful result returned for a session/set_config_option request.
PromptResponse(Box<PromptResponse>)
Successful result returned for a session/prompt request.
ExtMethodResponse(Box<ExtResponse>)
Successful result returned by an extension method outside the core ACP method set.
MessageMcpResponse(Box<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