swarmd-langchain
Swarmd integration for LangChain. Wires a LangChain agent
into the Swarmd platform: authenticated A2A clients, discovery of the agents
and MCP servers you are subscribed to, a polling tool that proxies to remote
A2A agents, and an executor that bridges incoming A2A requests into a LangChain
AgentExecutor.
pip install swarmd-langchain
Requires Python 3.9+. Pulls in swarmd-sdk
and langchain.
Quick start
from swarmd_langchain import create_runtime, create_llm_agent, fetch_remote_agents, serve
runtime = create_runtime()
agent = create_llm_agent(
runtime,
name="my_agent",
description="Does the thing",
instruction="You are a helpful assistant.",
tools=fetch_remote_agents(runtime),
)
serve(agent, runtime)
create_runtime() reads the same SWARMD_* environment variables as
swarmd-sdk — see that package for the full list.
What's in the box
create_runtime |
a SwarmDRuntime wired for LangChain |
create_llm_agent |
a LangChain agent configured against the platform |
fetch_remote_agents |
the agents you are subscribed to, as LangChain tools |
fetch_mcp_tools |
the MCP servers you are subscribed to, as LangChain tools |
create_a2a_client_factory |
authenticated A2A clients |
PollingA2aTool |
tool that proxies to a remote A2A agent, polling non-terminal states |
LangChainA2aExecutor |
serves an AgentExecutor over the A2A protocol |
serve |
serve the agent over A2A with the admin/webhook app mounted |
Documentation and support
Full documentation is at docs.swarmd.ai. For help, email support@swarmd.ai.
MIT licensed.
Metadata
Release files for swarmd-langchain 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| swarmd_langchain-0.4.1.tar.gz | 13.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swarmd_langchain-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.9 kB
Release files / swarmd_langchain-0.4.1.tar.gz
| Download URL | swarmd_langchain-0.4.1.tar.gz |
|---|---|
| Size | 13.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9a2503cc1d20c8df2b0f1ff0ac1057dd47df4ea6033770ba51bd017de1616bc
|
|
BLAKE2b-256 checksum How to use checksums |
917ba6fe308efc45b6a66e46fecad43a655ecc5098d1366b39ac797597bd78c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / swarmd_langchain-0.4.1-py3-none-any.whl
| Download URL | swarmd_langchain-0.4.1-py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
39fcfafc1ff0b0354e6a87acd3122d10992f4ecb8b84441ba3b162270003bf98
|
|
BLAKE2b-256 checksum How to use checksums |
1b7ffb1c82a7864e5aadeaea84eb2aa9fb08641faf5c7e22b1bb3f98b35bc5bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for swarmd-langchain 0.4.1
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.