LangChain BaseChatModel adapter for somm — lets LangChain/LangGraph/deepagents apps use somm as their LLM substrate
Project description
somm-langchain
LangChain BaseChatModel adapter for somm.
Lets LangChain / LangGraph / deepagents apps use somm as their LLM substrate — telemetry, routing, cost tracking, provider fallback, sommelier model memory — all without changing the agent-framework call sites.
import somm
from somm_langchain import SommChatModel
llm = somm.llm(project="my_agent")
chat = SommChatModel(somm_llm=llm, workload="agent_thinking")
from deepagents import create_deep_agent
agent = create_deep_agent(model=chat, tools=[...])
SommChatModel supports bind_tools() and routes tool-using calls through somm's neutral tool-calling shape (see docs/tool-calling.md). The adapter is thin: message translation in, somm.llm().generate() through, ChatGeneration out.
Built for agent orchestrators that run on deepagents and similar LangChain-based stacks, which mandate a tool-calling BaseChatModel.
Project details
Release history Release notifications | RSS feed
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 somm_langchain-0.7.1.tar.gz.
File metadata
- Download URL: somm_langchain-0.7.1.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
994d86ecb80b484f7c466e6e3a43d5243576f2d94dbb17b87b118ea37b7a9756
|
|
| MD5 |
b4c5b836748067d03a21b9ae0aef9a45
|
|
| BLAKE2b-256 |
3e1b1f89c977432897f6a17a07431caba3596d5dff3fd64fbd4872c4c33a156e
|
Provenance
The following attestation bundles were made for somm_langchain-0.7.1.tar.gz:
Publisher:
publish.yml on lavallee/somm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
somm_langchain-0.7.1.tar.gz -
Subject digest:
994d86ecb80b484f7c466e6e3a43d5243576f2d94dbb17b87b118ea37b7a9756 - Sigstore transparency entry: 2061818720
- Sigstore integration time:
-
Permalink:
lavallee/somm@b8373cf5a66760b23c1672a0707c218710f0fc27 -
Branch / Tag:
refs/tags/v0.7.1 - Owner: https://github.com/lavallee
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b8373cf5a66760b23c1672a0707c218710f0fc27 -
Trigger Event:
release
-
Statement type:
File details
Details for the file somm_langchain-0.7.1-py3-none-any.whl.
File metadata
- Download URL: somm_langchain-0.7.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d3b6ffa70e34889b4cad568409ce5e41e1ff9aeb342a70d0c7e86fcbf18483c
|
|
| MD5 |
6af57b2a70be011ab81095725f244bb1
|
|
| BLAKE2b-256 |
0e11f81ba40a5b32e19a4ad69f4486ecbfa547fe5bad4b9449e90a223ce5a219
|
Provenance
The following attestation bundles were made for somm_langchain-0.7.1-py3-none-any.whl:
Publisher:
publish.yml on lavallee/somm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
somm_langchain-0.7.1-py3-none-any.whl -
Subject digest:
0d3b6ffa70e34889b4cad568409ce5e41e1ff9aeb342a70d0c7e86fcbf18483c - Sigstore transparency entry: 2061819159
- Sigstore integration time:
-
Permalink:
lavallee/somm@b8373cf5a66760b23c1672a0707c218710f0fc27 -
Branch / Tag:
refs/tags/v0.7.1 - Owner: https://github.com/lavallee
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b8373cf5a66760b23c1672a0707c218710f0fc27 -
Trigger Event:
release
-
Statement type: