Skip to main content

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

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

Source distribution (sdist)

Source distribution for swarmd-langchain 0.4.4
File Size Uploaded Provenance
swarmd_langchain-0.4.4.tar.gz 13.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for swarmd-langchain 0.4.4
File Interpreter ABI Platform
swarmd_langchain-0.4.4-py3-none-any.whl Python 3 none any Details

Total release size: 26.9 kB

Release files / swarmd_langchain-0.4.4.tar.gz

Download URL swarmd_langchain-0.4.4.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0a3bf005ccb5126c808359bd3f923314f08c0a1e3016dd56547394e39ae57ed0
BLAKE2b-256 checksum
How to use checksums
8dd6bc9dafa1edc39c768167c277d4ebdabd02af1d361b7e38a42a7fbb968691
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.4-py3-none-any.whl

Download URL swarmd_langchain-0.4.4-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
698be1a3b184dc7052ed991a2d6e299a676a226925e30a3cd30227a5fe28690d
BLAKE2b-256 checksum
How to use checksums
ca46de571d16eccd4bfdb35164fce9db97312bb2610cb748847df36e30aae04b
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.4

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