Metadata-Version: 2.4
Name: langchain-llama-stack
Version: 0.2.1a0
Summary: An integration package connecting Llama Stack and LangChain
Project-URL: Source Code, https://github.com/mattf/langchain-llama-stack
Project-URL: Release Notes, https://github.com/mattf/langchain-llama-stack/releases
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.12
Requires-Dist: langchain-openai>=0.3.31
Description-Content-Type: text/markdown

# langchain-llama-stack

This package contains the LangChain integration with [Llama Stack](https://github.com/meta-llama/llama-stack).

## Installation

```bash
pip install -U langchain-llama-stack
```

If your Llama Stack distribution requires credentials, use the `LLAMA_STACK_API_KEY` environment variable.

If your Llama Stack distribution server is not running on `http://localhost:8321`, use the `LLAMA_STACK_BASE_URL` environment variable or `base_url` param.

## Chat Models

`ChatLlamaStack` class exposes chat models hosted on your Llama Stack distribution server.

```python
from langchain_llama_stack import ChatLlamaStack

llm = ChatLlamaStack(model="meta/llama-3.1-8b-instruct")
llm.invoke("Sing a ballad of LangChain.")
```
