.NET API
TraconA2ABuilderExtensions
Tracon.AspNetCore.dllExtensions that register the services needed to publish Tracon agents over A2A.
public static class TraconA2ABuilderExtensionsInheritance
Section titled “Inheritance”object ← TraconA2ABuilderExtensions
Inherited Members
Section titled “Inherited Members”object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Methods
Section titled “Methods”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)Parameters
Section titled “Parameters”builder ITraconBuilder
The Tracon configuration chain.
configure Action<TraconA2AOptions>?
Options mutator.
Returns
Section titled “Returns”The chain, for further configuration.
Remarks
Section titled “Remarks”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"));Exceptions
Section titled “Exceptions”builder is null.