Current collected state Current
Observed since 20 Oct, 22:05 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Task routing layer for production AI agents — dispatch to the right agent by capability, health, and policy
Task routing for production AI agents. Given a task, AgentGrid finds the right agent from your registry based on capabilities, health, and policy — then dispatches.
pip install agentgrid-py
pip install "agentgrid-py[registry]" # with agentregistry-py
pip install "agentgrid-py[all]" # with registry + mesh + policy
import asyncio
from agentgrid import AgentGrid
from agentregistry import AgentRegistry, AgentManifest
async def main():
registry = AgentRegistry()
registry.publish(AgentManifest(
id="acme.search-agent", version="1.0.0",
capabilities=["search", "summarize"],
framework="langgraph",
))
grid = AgentGrid(registry=registry)
# Register handler for local dispatch
async def search_handler(task: str, payload: dict) -> dict:
return {"output": f"search results for: {task}"}
grid.register("acme.search-agent", search_handler)
# Route task to best agent
result = await grid.route("find quarterly revenue", requires=["search"])
print(f"Routed to: {result.agent_id} (score={result.score:.2f})")
print(f"Response: {result.response}")
asyncio.run(main())
from agentgrid import RoutingStrategy
# Best capability match (default)
result = await grid.route(task, strategy=RoutingStrategy.BEST_MATCH)
# Round-robin across eligible agents
result = await grid.route(task, strategy=RoutingStrategy.ROUND_ROBIN)
# Least loaded agent
result = await grid.route(task, strategy=RoutingStrategy.LEAST_LOADED)
# Broadcast to all eligible agents
results = await grid.broadcast(task, requires=["handle_event"])
agentgrid → routing which agent handles what task
agentmesh → events connects agents via pub/sub
agentplane → policy governs agent behaviour
agentregistry → discovery what agents exist and their capabilities
Apache 2.0 · PyPI
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 18 Jun 2026 | 8 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 22:05 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:c3c087c08dc22f0d2a99a7097b2cf4797764c920e14a55ba7dc76af4dc7708a7