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

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.1
File Size Uploaded
zero_agent_core_multi_agent-0.1.1.tar.gz 22.1 kB Details

Built distribution (wheel)

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

Total release size: 46.0 kB

Release files / zero_agent_core_multi_agent-0.1.1.tar.gz

Download URL zero_agent_core_multi_agent-0.1.1.tar.gz
Size 22.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0cc9a7ea69f1dc0def689732137898d67195d82bde76fdeeb7c8cacf1f997f18
BLAKE2b-256 checksum
How to use checksums
6eb0a9e44745a5987353b468c67ab64e15035d981e6103395e7da36cf88cd330
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

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

Download URL zero_agent_core_multi_agent-0.1.1-py3-none-any.whl
Size 23.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66fa1b4414fea8897135b90f63836581d16c4f38fa0060c01759740a157959b4
BLAKE2b-256 checksum
How to use checksums
bf45c8711e9543c9c0cde63b739139270481b4e1aa6a1785c011d9f380b67a64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Release history Release notifications | RSS feed

0.1.2

2 release files

This release

0.1.1 This release

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