library · inferred from evidence
AI21LLM
A LangChain-compatible wrapper for AI21 LLM models, provided by the langchain_ai21 package.
- AI21 LLM is not Runnable in LangChain: use the langchain_ai21 wrapper
Passing AI21Client directly as the llm to LangChain agents fails because the raw client is not Runnable. Use the AI21LLM or ChatAI21 wrapper from the langchain_ai21 package instead.