Metadata-Version: 2.1
Name: langchain-xai
Version: 0.2.0
Summary: An integration package connecting xAI and LangChain
Home-page: https://github.com/langchain-ai/langchain
License: MIT
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: aiohttp (>=3.9.1,<4)
Requires-Dist: langchain-core (>=0.3.29,<0.4.0)
Requires-Dist: langchain-openai (>=0.3,<0.4)
Requires-Dist: requests (>=2,<3)
Project-URL: Repository, https://github.com/langchain-ai/langchain
Project-URL: Release Notes, https://github.com/langchain-ai/langchain/releases?q=tag%3A%22langchain-xai%3D%3D0%22&expanded=true
Project-URL: Source Code, https://github.com/langchain-ai/langchain/tree/master/libs/partners/xai
Description-Content-Type: text/markdown

# langchain-xai

This package contains the LangChain integrations for [xAI](https://x.ai/) through their [APIs](https://console.x.ai).

## Installation and Setup

- Install the LangChain partner package

```bash
pip install -U langchain-xai
```

- Get your xAI api key from the [xAI Dashboard](https://console.x.ai) and set it as an environment variable (`XAI_API_KEY`)

## Chat Completions

This package contains the `ChatXAI` class, which is the recommended way to interface with xAI chat models.

