protocol
A2A v1.0 Protocol Handler
Structs
Section titled “Structs”A2AProtocol
Section titled “A2AProtocol”Methods
fn new(agent_card: AgentCard) -> Selfwith_registry
Section titled “with_registry”fn with_registry(agent_card: AgentCard, registry: A2AMethodRegistry) -> Selfagent_card
Section titled “agent_card”fn agent_card(&self) -> &AgentCardupdate_agent_card
Section titled “update_agent_card”fn update_agent_card(&mut self, agent_card: AgentCard)registry
Section titled “registry”fn registry(&self) -> &A2AMethodRegistryregistry_mut
Section titled “registry_mut”fn registry_mut(&mut self) -> &mut A2AMethodRegistryregister_method
Section titled “register_method”fn register_method<F>(&mut self, method: &str, description: &str, handler: F)where F: Fn + Send + Sync + ?register_notification
Section titled “register_notification”fn register_notification<F>(&mut self, method: &str, description: &str, handler: F)where F: Fn + Send + Sync + ?handle_request
Section titled “handle_request”fn handle_request(&self, request: JsonRpcRequest) -> A2AResult<JsonRpcResponse>handle_notification
Section titled “handle_notification”fn handle_notification(&self, notification: JsonRpcNotification) -> A2AResult<()>handle_incoming
Section titled “handle_incoming”fn handle_incoming(&self, incoming: JsonRpcIncoming) -> A2AResult<Option<JsonRpcResponse>>get_capabilities
Section titled “get_capabilities”fn get_capabilities(&self) -> Valueget_method_metadata
Section titled “get_method_metadata”fn get_method_metadata(&self) -> HashMap<String, &MethodMetadata>validate_request_params
Section titled “validate_request_params”fn validate_request_params(&self, method: &str, params: &Value) -> A2AResult<()>register_a2a_methods
Section titled “register_a2a_methods”fn register_a2a_methods(&mut self, storage: Option<Arc<dyn TaskStorage>>)Register all A2A v1.0 protocol methods.
send_request
Section titled “send_request”async fn send_request<T>(&self, transport: &T, request: JsonRpcRequest) -> A2AResult<JsonRpcResponse>send_notification
Section titled “send_notification”async fn send_notification<T>(&self, transport: &T, notification: JsonRpcNotification) -> A2AResult<()>