Skip to main content

Zero Agent Core Multi-Agent

zero-agent-core-multi-agent 是 Agent Core 的可选多 Agent 编排扩展。它不依赖 LangChain、LangGraph、AutoGen 或 CrewAI,直接复用 Core 的运行时、事件、访问上下文、Workflow Store 和 Run Lease。

pip install zero-agent-core-multi-agent
from agent_core_multi_agent import (
    AgentDescriptor,
    AgentRegistry,
    AgentTask,
    CallableAgentInvoker,
    HandoffRequest,
    SupervisorAgent,
)

registry = AgentRegistry()


async def researcher(task):
    return "检索完成"


registry.register(
    AgentDescriptor(
        agent_id="researcher",
        description="检索资料",
        capabilities=frozenset({"research"}),
    ),
    CallableAgentInvoker("researcher", researcher),
)

supervisor = SupervisorAgent(registry)
execution = await supervisor.run(
    AgentTask(
        thread_id="thread-1",
        input="查询飞行规则",
        required_capability="research",
    )
)
print(execution.output)

具体应用可以用 RuntimeAgentInvoker 包装现有 AgentRuntime。WorkflowCoordinationStore 支持复用 Core 的内存、SQLite、PostgreSQL Workflow Store;多 Worker 部署时再注入对应的 RunLeaseStore。 每次路由、调用和 handoff 都会落 checkpoint,恢复时使用相同任务 ID 和幂等键。

Metadata

Release files for zero-agent-core-multi-agent 0.1.2

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

Source distribution (sdist)

Source distribution for zero-agent-core-multi-agent 0.1.2
File Size Uploaded
zero_agent_core_multi_agent-0.1.2.tar.gz 22.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zero-agent-core-multi-agent 0.1.2
File Interpreter ABI Platform
zero_agent_core_multi_agent-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 46.0 kB

Release files / zero_agent_core_multi_agent-0.1.2.tar.gz

Download URL zero_agent_core_multi_agent-0.1.2.tar.gz
Size 22.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9c692ce504cf8c5dfc560ccb655788876469b36ccbf7f3529f5cf50aa1d279b5
BLAKE2b-256 checksum
How to use checksums
d45f30a9912e1e22da7557a4302a36cbfab29026e5c18348cf08acc56096dddc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / zero_agent_core_multi_agent-0.1.2-py3-none-any.whl

Download URL zero_agent_core_multi_agent-0.1.2-py3-none-any.whl
Size 23.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64fadeef65e73427b4dcfd5b358e94bd4ecd07dc8c3c1919c11cbe647d76b208
BLAKE2b-256 checksum
How to use checksums
7b56e15cf5be877e8ed2662210339c7cc0008c6e67561af4ef842960e2ed8c72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

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