Function: resolveCardAgent()
resolveCardAgent(
plugins,providerName,agentId?):CardAgentLike|null
Resolve the agent that answers a turn from the AppKit plugin registry.
agentId picks a specific agent; omitted, the provider’s default agent
answers. Returns null when the provider is absent or the id is unknown, so
the route can answer 503 / 404 instead of throwing.
Parameters
Section titled “Parameters”plugins
Section titled “plugins”ReadonlyMap<string, unknown> | undefined
providerName
Section titled “providerName”string
agentId?
Section titled “agentId?”string
Returns
Section titled “Returns”CardAgentLike | null