message_router#

class baf.platforms.a2a.message_router.A2ARouter[source]#

Bases: object

async aiohttp_handler(request)[source]#

Handle HTTP requests from the server

async handle(method_name, params)[source]#

Execute the method given its name and parameters

register(method_name, func)[source]#

Register a method (coupled to its name, also called as key) that can be called via RPC.

register_orchestration_methods(platform, registry)[source]#

Register methods used for orchestration in its router. Enables one agent to call another agent.

register_task_methods(platform)[source]#

Auto-register internal methods for creating, executing and getting task status.