Goodfire integration for LangChain
Project description
LangChain Goodfire Integration
This package contains the LangChain integration for the Goodfire API.
Installation
pip install langchain-goodfire
Usage
from langchain_goodfire import ChatGoodfire
from langchain_core.messages import SystemMessage, HumanMessage
import goodfire
chat = ChatGoodfire(
model=goodfire.Variant("meta-llama/Llama-3.3-70B-Instruct"),
goodfire_api_key="your-api-key"
)
messages = [
SystemMessage(content="You are a helpful assistant."),
HumanMessage(content="Hello!")
]
response = chat.invoke(messages)
print(response)
Development
To install the package in development mode:
pip install -e .
Testing
Run tests using pytest:
pytest tests/
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
For support, please open an issue on the GitHub repository.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langchain_goodfire-0.2.0.tar.gz.
File metadata
- Download URL: langchain_goodfire-0.2.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b12a465431c2b1a93ec32838d24fa4770c66b0d63155cdbe23f062c4e90b2a5a
|
|
| MD5 |
9463549a0c661351ba6f6c01f7c6ef8d
|
|
| BLAKE2b-256 |
2020b2a7308f3f0adbad8afbc91bcdec2f3a18c4f6698d5f9f4938c6bae81cff
|
File details
Details for the file langchain_goodfire-0.2.0-py3-none-any.whl.
File metadata
- Download URL: langchain_goodfire-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fbed39ebf4e334670f90834031cf4ad7b53e8e83fab0b86a2013aac3ade4ad7
|
|
| MD5 |
f3cf789f4116fb6dbe9a6904fc8f24b7
|
|
| BLAKE2b-256 |
c86a566bf78c55dc7da1f1ae89c3c588a063109a5f08d6539f5495de58a7cc83
|