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

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.5
File Size Uploaded Provenance
swarmd_langchain-0.4.5.tar.gz 13.2 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 26.9 kB

Release files / swarmd_langchain-0.4.5.tar.gz

Download URL swarmd_langchain-0.4.5.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d9cfba4727ee4f13dcc8614aac2a23defce1b009af6e953aa0dd45f58bd06c84
BLAKE2b-256 checksum
How to use checksums
2962e1a4a959b1c76831e78e9cbbb667107cbccd0c8a1005132d498edad2869f
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.5-py3-none-any.whl

Download URL swarmd_langchain-0.4.5-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94f34c1d67ffa213bf0399178dc55bf3f2cf3a31d73348c523ea068517f46109
BLAKE2b-256 checksum
How to use checksums
d1cec7fd38d6ca794670897fb34e087a3169dbb8673d12c6831e2a154e819af0
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.5

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