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.3

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.3
File Size Uploaded Provenance Actions
sovara_langchain-0.1.3.tar.gz 15.5 kB Without provenance Details for sovara_langchain-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 30.9 kB

Release files / sovara_langchain-0.1.3.tar.gz

Download URL sovara_langchain-0.1.3.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f57d2bf2f1be9b93441df73d15b041ed91b5cbaac394b4fc1972fd5f05e008ba
BLAKE2b-256 checksum
How to use checksums
37e2d92e516898e70f15268bbc6741ddeddf84aad4317d5a0e041b5ee2030dce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.5 {"installer":{"name":"uv","version":"0.11.5","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.3-py3-none-any.whl

Download URL sovara_langchain-0.1.3-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25fef35e60527c4b9f5bb7d6b86e71a6ef94ab79c31772f7427d0ff7cf6c9273
BLAKE2b-256 checksum
How to use checksums
cde2c1aa079e340dad939e8c33044a7dc48af8218343773b4990cb7dc6b539cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.5 {"installer":{"name":"uv","version":"0.11.5","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.3

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