nat.plugins.a2a.server.front_end_plugin#

Attributes#

Classes#

A2AFrontEndPlugin

A2A front end plugin implementation.

Module Contents#

logger#
class A2AFrontEndPlugin(full_config: nat.data_models.config.Config)#

Bases: nat.builder.front_end.FrontEndBase[nat.plugins.a2a.server.front_end_config.A2AFrontEndConfig]

A2A front end plugin implementation.

Exposes NAT workflows as A2A-compliant remote agents that can be discovered and invoked by other A2A agents and clients.

Initializes the FrontEndBase object with the specified NAT configuration.

Parameters#

full_configConfig

The configuration object to use for the front end.

async run() None#

Run the A2A server.

This method: 1. Builds the workflow 2. Creates the agent card from configuration 3. Creates the agent executor adapter 4. Sets up the A2A server 5. Starts the server with uvicorn

_get_worker_instance() nat.plugins.a2a.server.front_end_plugin_worker.A2AFrontEndPluginWorker#

Get an instance of the worker class.

Returns:

Worker instance configured with full config