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 when using via LangChain
Dont pass AI21Client as the llm. Use the LangChain wrapper from the langchain_ai21 package instead: from langchain_ai21 import AI21LLM, then llm = AI21LLM(model="j2-ultra", your AI21 key parameter) and pass that llm to load_tools and initia