Skip to content

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.

ReadonlyMap<string, unknown> | undefined

string

string

CardAgentLike | null