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 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
Resolves the extendedAgentCardfor the given tenant.- Parameters:
tenant- the tenant identifier, may benull- Returns:
- the resolved extended agent card, or
nullif none is configured
-
resolvePublicCard
Resolves the publicAgentCardfor the given tenant.Returns
nullby 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-nullcard for known tenants.- Parameters:
tenant- the tenant identifier, may benull- Returns:
- the tenant-specific public agent card, or
nullto fall back to the default public card
-