Interface AgentCardRouter

All Known Implementing Classes:
CdiAgentCardRouter

public interface AgentCardRouter
Resolves tenant-specific AgentCard instances.

Implementations should return the default (unqualified) card when the tenant is null, blank, or does not match any registered tenant.

  • 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.

      Returns null by default, signaling the handler to fall back to the default (non-tenant-specific) public agent card injected via @PublicAgentCard. Implementations that manage tenant-specific public cards should return a non-null card for known tenants.

      Parameters:
      tenant - the tenant identifier, may be null
      Returns:
      the tenant-specific public agent card, or null to fall back to the default public card