Skip to main content

Handwritten 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.0

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

Built distribution (wheel)

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

Total release size: 46.1 kB

Release files / zero_agent_core_multi_agent-0.1.0.tar.gz

Download URL zero_agent_core_multi_agent-0.1.0.tar.gz
Size 22.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bc2a080434ddc0285bfadc032c8d38540f959a3480c8127f63a83c97565feb9f
BLAKE2b-256 checksum
How to use checksums
bd738a9e7b03057db5fde6b4a3c42178d4105a38335552714b85a17f21ffde68
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.0-py3-none-any.whl

Download URL zero_agent_core_multi_agent-0.1.0-py3-none-any.whl
Size 23.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
995bc918287e9e7aa24e9fc1575df235d4d3b5aa3fa6f31d058d21521a306e8b
BLAKE2b-256 checksum
How to use checksums
824135d1aa4fd1d647995f389bb11f52becc68fffc5b3585e0dfe13a60c71c81
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

0.1.1

2 release files

This release

0.1.0 This release

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