Interface AgentCardRouter

All Known Implementing Classes:
CdiAgentCardRouter

public interface AgentCardRouter
Resolves tenant-specific AgentCard instances.

Implementations should return the default public card when the tenant is null or blank. When a non-blank tenant is provided and no matching card exists, implementations should return null; the caller will treat that as a 404.

  • Method Details

    • resolveExtendedCard

      @Nullable AgentCard resolveExtendedCard(@Nullable String tenant)
      Resolves the extended AgentCard for the given tenant.
      Parameters:
      tenant - the tenant identifier, may be null
      Returns:
      the resolved extended agent card, or null if none is configured
    • resolvePublicCard

      default @Nullable AgentCard resolvePublicCard(@Nullable String tenant)
      Resolves the public AgentCard for the given tenant.

      Implementations should return the default public card when tenant is null or blank, the tenant-specific card when a match is found, and null when a non-blank tenant has no matching card — the caller treats that as HTTP 404.

      The default implementation returns null (no public-card routing configured).

      Parameters:
      tenant - the tenant identifier, may be null
      Returns:
      the public agent card, or null if a non-blank tenant is unknown