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 Summary
Modifier and TypeMethodDescription@Nullable AgentCardresolveExtendedCard(@Nullable String tenant) Resolves the extendedAgentCardfor the given tenant.default @Nullable AgentCardresolvePublicCard(@Nullable String tenant) Resolves the publicAgentCardfor the given tenant.
-
Method Details
-
resolveExtendedCard
-
resolvePublicCard
Resolves the publicAgentCardfor the given tenant.Implementations should return the default public card when
tenantisnullor blank, the tenant-specific card when a match is found, andnullwhen 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 benull- Returns:
- the public agent card, or
nullif a non-blank tenant is unknown
-