修改了nanobot,往Hermes agent的风格走,进度1/3
This commit is contained in:
2
app-instance/backend/beaver/coordinator/__init__.py
Normal file
2
app-instance/backend/beaver/coordinator/__init__.py
Normal file
@ -0,0 +1,2 @@
|
||||
"""Multi-agent coordination layer."""
|
||||
|
||||
@ -0,0 +1,2 @@
|
||||
"""Pluggable multi-agent backends."""
|
||||
|
||||
20
app-instance/backend/beaver/coordinator/backends/base.py
Normal file
20
app-instance/backend/beaver/coordinator/backends/base.py
Normal file
@ -0,0 +1,20 @@
|
||||
"""Backend interfaces for multi-agent execution."""
|
||||
|
||||
from dataclasses import dataclass
|
||||
from typing import Protocol
|
||||
|
||||
|
||||
@dataclass(slots=True)
|
||||
class BackendResult:
|
||||
"""Normalized result returned by a coordination backend."""
|
||||
|
||||
success: bool
|
||||
summary: str
|
||||
|
||||
|
||||
class CoordinationBackend(Protocol):
|
||||
"""Protocol implemented by pluggable coordination backends."""
|
||||
|
||||
def run(self, task: str) -> BackendResult:
|
||||
"""Execute a team task and return a normalized result."""
|
||||
|
||||
@ -0,0 +1,6 @@
|
||||
"""Swarms backend wrapper for Beaver.
|
||||
|
||||
This package is intentionally local to Beaver's coordinator layer.
|
||||
There is no `third_party/` directory in the new backend layout.
|
||||
"""
|
||||
|
||||
@ -0,0 +1,2 @@
|
||||
"""Delegation orchestration."""
|
||||
|
||||
@ -0,0 +1,2 @@
|
||||
"""Execution control, retry, and aggregation."""
|
||||
|
||||
@ -0,0 +1,2 @@
|
||||
"""Team planning and execution-plan generation."""
|
||||
|
||||
@ -0,0 +1,2 @@
|
||||
"""Agent registry and descriptors."""
|
||||
|
||||
2
app-instance/backend/beaver/coordinator/team/__init__.py
Normal file
2
app-instance/backend/beaver/coordinator/team/__init__.py
Normal file
@ -0,0 +1,2 @@
|
||||
"""Team models and orchestration objects."""
|
||||
|
||||
Reference in New Issue
Block a user