Skip to main content

Sovara for LangChain (Python)

Sovara helps teams manage domain knowledge and put it to work in AI agents. Capture business rules, expert guidance, and lessons from experience in a shared knowledge base. Deliver relevant knowledge to agents as they work, review how they use it, and improve it together.

Bring your team's domain knowledge to LangChain and LangGraph agents with Sovara.

uv add "sovara-langchain[agent]"
# or: pip install "sovara-langchain[agent]"

Omit [agent] if you only use wrap_chat_model.

Use

Inside a Sovara trace, pick one per model:

import sovara_langchain
from sovara_langchain import SovaraMiddleware, wrap_chat_model

# create_agent: add the middleware last. It records model and tool calls.
agent = create_agent(model, tools, middleware=[*other_middleware, SovaraMiddleware()])

# Anything else (LangGraph nodes, create_react_agent, with_structured_output): wrap the model,
# and call instrument_tools() once at startup to record tool calls too.
sovara_langchain.instrument_tools()
model = wrap_chat_model(ChatOpenAI(model="gpt-5.4")).bind_tools(tools)

Use either the middleware or the wrapper for a model, and keep the middleware last. Calls outside a Sovara trace are not recorded; agents continue running if Sovara is unavailable. Recorded model conversations do not support Rerun.

Enable knowledge injection and see the integration guide for supported usage. Runnable examples are in examples.

Requires langchain-core 1.x (langchain 1.1+ for the middleware).

License

MIT.

Metadata

Release files for sovara-langchain 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sovara-langchain 0.1.2
File Size Uploaded Provenance Actions
sovara_langchain-0.1.2.tar.gz 15.5 kB Without provenance Details for sovara_langchain-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sovara-langchain 0.1.2
File Interpreter ABI Platform Actions
sovara_langchain-0.1.2-py3-none-any.whl Python 3 none any Details for sovara_langchain-0.1.2-py3-none-any.whl

Total release size: 30.9 kB

Release files / sovara_langchain-0.1.2.tar.gz

Download URL sovara_langchain-0.1.2.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8e9735c0884c6f6c178fd0b80c9071b11532967dcc78bc30c5837beb9250383c
BLAKE2b-256 checksum
How to use checksums
26433eef88b090090a6f2ca5b0892557df61fad0aca6d02155a86882193c6585
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / sovara_langchain-0.1.2-py3-none-any.whl

Download URL sovara_langchain-0.1.2-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c213c94cfc32c9b3b512682f532118c64106defc1877760f50e988b198d9577
BLAKE2b-256 checksum
How to use checksums
a47640a7c2a5b5de830e7ad99f4141cc76545f44e1fe429b04810a7308016305
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for sovara-langchain 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page