Member Junction
    Preparing search index...
    RuntimeAPIKeyResolver: (driverClass: string) => string | undefined

    Resolves the API key an action should use for ONE AI driver class, inside an agent run.

    BaseAgent sets one on RunActionParams.RuntimeAPIKeyResolver when — and only when — the run carries runtime API keys. It answers with the run's key for that driver class, else the platform key, else undefined; it is the run's prompt resolution (GetAIAPIKey(driverClass, runKeys)) behind a function, so an action gets the same key the prompts use without ever holding the list they come from. undefined also means "refused": the agent decides whether this action may use the run's key for that class, and a refusal leaves the action on the platform key exactly as if the run had none.

    Type Declaration

      • (driverClass: string): string | undefined
      • Parameters

        • driverClass: string

        Returns string | undefined