Skip to main content

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

langchain_goodfire-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_goodfire-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file langchain_goodfire-0.1.0.tar.gz.

File metadata

  • Download URL: langchain_goodfire-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for langchain_goodfire-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ea98f445ac96cb4f0f29b8deb874db60e6f5d0846bfa8ccd6c61f1d842a5e278
MD5 070718dcf9ba00f863c25f928f5ecb2e
BLAKE2b-256 b799fb6143978743f5e0301033c8fcf14e9a2f1e0c7bf9f79dd141c564c46963

See more details on using hashes here.

File details

Details for the file langchain_goodfire-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_goodfire-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75efb30065b955190b68017eb2b8441851bf09876a0bbf0e60d234fa3592781b
MD5 32879df916bcb1f04b5ef1df94e09004
BLAKE2b-256 31fd9c0a5a8565000dc5adf359f352bafea58633d73e0d76b219626093b22337

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page