.NET API
TraconA2AExtensions
Tracon.AspNetCore.dllExtensions that connect the HTTP endpoint that publishes Tracon agents over A2A.
public static class TraconA2AExtensionsInheritance
Section titled “Inheritance”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()
Fields
Section titled “Fields”DefaultPattern
Section titled “ DefaultPattern”Default path prefix.
public const string DefaultPattern = "/tracon/a2a"Field Value
Section titled “Field Value”Methods
Section titled “Methods”MapTraconA2A(IEndpointRouteBuilder, string)
Section titled “ MapTraconA2A(IEndpointRouteBuilder, string)”Publishes the agents registered via UseA2A over A2A.
public static IEndpointConventionBuilder MapTraconA2A(this IEndpointRouteBuilder endpoints, string pattern = "/tracon/a2a")Parameters
Section titled “Parameters”endpoints IEndpointRouteBuilder
The application’s routing builder.
pattern string
Path prefix. Default is /tracon/a2a.
Returns
Section titled “Returns”The endpoint’s convention builder.
Remarks
Section titled “Remarks”Each exposed agent is mapped to its own sub-path: {pattern}/{agent}.
The A2A protocol models a single server as a single agent identity;
multiple agents cannot share the SAME .well-known/agent-card.json
path. Each agent’s card is published at its own sub-path
({pattern}/{agent}/.well-known/agent-card.json).
Applies the SAME three-layer protection as MapTracon —
settings are inherited from there.
If an exposed agent carries a tool that requires approval the application STILL fails — but not synchronously from this method, rather through Tracon.A2AApprovalGuardFilter: the check waits in the background until the SQL schema is ready (so this method itself does not crash with “no such table” against an empty database, the same pattern), completes by the first request, and no request can get ahead of it.
app.MapTracon();app.MapTraconA2A();Exceptions
Section titled “Exceptions”endpoints is null.
pattern is empty.
UseA2A or MapTracon has not been called first, or
this is called while remote access is enabled.