library · inferred from evidence
AI21Client
The raw HTTP API client from the ai21-python SDK, not compatible with LangChain's Runnable interface.
- 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.