Skip to content

Function: resolveCardContextFactory()

resolveCardContextFactory(plugins, providerName): CardContextFactory | null

The agent plugin’s request-context factory, when it exposes one.

Resolved separately from the agent because it is the piece that gives an out-of-band turn the same tool reach as a chat turn; a provider without it still answers, just without user-scoped tools.

ReadonlyMap<string, unknown> | undefined

string

CardContextFactory | null