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.2.1.tar.gz (6.4 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.2.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_goodfire-0.2.1.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

Hashes for langchain_goodfire-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f70e5be51458a21069a01bf3ce2a413fe3346848160bb82491094779e1927fcd
MD5 ad4f9c11e20ef1d5f5d60d103d887bdd
BLAKE2b-256 d11d948e596dd429fa66b130121121bbff672bbeb8d434bd05f92d71ac97f657

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_goodfire-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3930c9e8e711b1a02338fb638714755e563f537f178a32da3cc8a8d90d22016f
MD5 16ff0946a842b3452b2a536aa1d313d9
BLAKE2b-256 5637e38377fb49be92e55434decfd723b7f163fef14f5851414addc0d1c50886

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