AgentCardHandler

Exposes an A2A AgentCard and handles JSON-RPC requests routed to its path

Inheritors

Properties

Link copied to clipboard
abstract val path: String

Relative path below root

Functions

Link copied to clipboard
abstract fun agentCard(scheme: String, host: String, port: Int): <Error class: unknown class>

Returns the agent card for the A2A server. We need to provide the scheme, host, and port so that the agent card can compute the correct URL for its POST endpoint.

Link copied to clipboard
abstract 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 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".