Autonomy A2ARequest Handler
class AutonomyA2ARequestHandler(autonomy: Autonomy, agenticEventListener: AgenticEventListener, streamingHandler: A2AStreamingHandler) : A2ARequestHandler
Handle A2A messages according to the A2A protocol. Doesn't dictate mapping to URLs: a router or controller in front of this class must handle that.
Constructors
Link copied to clipboard
constructor(autonomy: Autonomy, agenticEventListener: AgenticEventListener, streamingHandler: A2AStreamingHandler)
Functions
Link copied to clipboard
open override fun handleJsonRpc(request: <Error class: unknown class><out <Error class: unknown class>>): <Error class: unknown class><out <Error class: unknown class>>
Handle a JSON-RPC request according to the A2A protocol.
Link copied to clipboard
open override fun handleJsonRpcStream(request: <Error class: unknown class><out <Error class: unknown class>>): <Error class: unknown class>
Handles a streaming JSON-RPC request using Server-Sent Events (SSE). This method is called when a client requests a streaming response for methods like "message/stream".
Link copied to clipboard