Skip to content
Tracon

TraconA2ABuilderExtensions

Namespace Tracon · Assembly Tracon.AspNetCore.dll

Extensions that register the services needed to publish Tracon agents over A2A.

public static class TraconA2ABuilderExtensions

objectTraconA2ABuilderExtensions

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

UseA2A(ITraconBuilder, Action<TraconA2AOptions>?)

Section titled “ UseA2A(ITraconBuilder, Action<TraconA2AOptions>?)”

Registers an A2A server for each agent in TraconA2AOptions.ExposedAgents. The HTTP endpoint must still be connected separately with app.MapTraconA2A(...).

public static ITraconBuilder UseA2A(this ITraconBuilder builder, Action<TraconA2AOptions>? configure = null)

builder ITraconBuilder

The Tracon configuration chain.

configure Action<TraconA2AOptions>?

Options mutator.

ITraconBuilder

The chain, for further configuration.

ExposedAgents is read and FROZEN HERE, at registration time. AddA2AServer requires an agent INSTANCE; because Tracon’s catalog can change at runtime (MAF’s own registry is not used), a lazily-resolved Tracon.ExternalAgentProxy is registered for each name — the real agent is resolved from the catalog on every call, but which names exist in A2A is frozen at registration time.

By default no agent is exposed.

builder.AddTracon()
.UseA2A(o => o.ExposedAgents.Add("support"));

ArgumentNullException

builder is null.