EmbabelServerGoalsAgentCardHandler

class EmbabelServerGoalsAgentCardHandler(val path: String = DEFAULT_A2A_PATH, agentPlatform: AgentPlatform, a2ARequestHandler: A2ARequestHandler, goalFilter: GoalFilter) : AgentCardHandler, A2ARequestHandler

Expose one agent card for the whole server.

Parameters

path

Relative path of the endpoint (under the root)

Constructors

Link copied to clipboard
constructor(path: String = DEFAULT_A2A_PATH, agentPlatform: AgentPlatform, a2ARequestHandler: A2ARequestHandler, goalFilter: GoalFilter)

Properties

Link copied to clipboard
open override val path: String

Functions

Link copied to clipboard
open override 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
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
open fun infoString(verbose: Boolean?, indent: Int): String