AAI SDK
    Preparing search index...

    Function resolveLlm

    • Resolve an LlmProvider descriptor into a Vercel AI SDK LanguageModel.

      The API key is pulled from the agent's env (e.g. OPENAI_API_KEY). Missing keys throw here — the pipeline session would fail on first streamText call otherwise, and the error is clearer at construction.

      Parameters

      Returns LanguageModel