A2aEngine.Transport.BeamNative.Server (a2a_engine v0.1.0)

Copy Markdown View Source

GenServer that receives A2A requests over the BEAM-native transport.

Hosts start this under their supervision tree with a handler module and an auth module:

{A2aEngine.Transport.BeamNative.Server,
 name: :my_agent_a2a,
 handler: MyApp.A2A.Handler,
 auth: A2aEngine.Auth.Localhost,
 auth_opts: [],
 pubsub: MyApp.PubSub}

The name becomes the call target (GenServer.call(:my_agent_a2a, ...)).

Summary

Functions

Returns a specification to start this module under a supervisor.

Types

opts()

@type opts() :: [
  handler: module(),
  auth: module(),
  auth_opts: keyword(),
  pubsub: atom(),
  name: atom()
]

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)