Registry / ai-ml / kagent-langgraph

kagent-langgraph

JSON →
library0.9.6pypypiunverified

LangGraph integration for KAgent providing a comprehensive A2A (Agent-to-Agent) server and client framework for building multi-agent systems. Version 0.9.6, requires Python >=3.10. Maintained by kagent team.

pip install kagent-langgraph
INSTALL
IMPORT
SIG · KAGENT-LANGGRAPH
K
kagent-langgraph
ai-mlpythonv0.9.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

A2AServer
from kagent import A2AServer
from kagent_langgraph import A2AServer

Quickstart example: create a LangGraph workflow and serve it via A2A protocol, then connect with a client.

import asyncio from kagent_langgraph import A2AServer, A2AClient from langgraph.graph import StateGraph # Define a simple LangGraph workflow workflow = StateGraph(dict) workflow.set_entry_point("start") workflow.add_node("start", lambda state: {"message": "Hello from KAgent!"}) app = workflow.compile() # Run A2A server server = A2AServer(app, host="localhost", port=8000) async def run(): # Start server in background await server.start() # Create client and send a message client = A2AClient(server_url="http://localhost:8000") response = await client.send_message({"content": "Hi"}) print(response) await server.stop() asyncio.run(run())
Debug
Known issues
breakingPython 3.10+ only. Do not attempt to install on older Python versions.
fix
Use Python >=3.10.
affects: all
gotchaLangGraph StateGraph must return a dict. If your nodes return other types (e.g., list), the server will fail with serialisation errors.
fix
Ensure all node outputs are JSON-serializable dicts.
affects: all
deprecatedIn version 0.9.x, the import path changed from 'kagent_langgraph.a2a' to 'kagent_langgraph' directly. Old imports will break.
fix
Use 'from kagent_langgraph import A2AServer' instead of 'from kagent_langgraph.a2a import A2AServer'.
affects: >=0.9.0
Upgrade
Version history
0.9.6latest on PyPI · released Jun 5, 2026
Audit
Dependencies
langgraphrequiredCore dependency for graph-based agent workflows
kagentrequiredBase KAgent framework
Agent activity
7 hits · last 30 days
node
6
Bingbot
1
Resources

No resource links recorded.

kagent-langgraph — pip install kagent-langgraph · libregistry