"""Multi-agent coordination layer."""

from .models import (
    AgentDescriptor,
    DelegationEnvelope,
    ExecutionGraph,
    ExecutionNode,
    NodeRunResult,
    TeamRunResult,
)


def __getattr__(name: str):
    if name == "LocalAgentRunner":
        from .local import LocalAgentRunner

        return LocalAgentRunner
    if name == "TeamGraphScheduler":
        from .execution import TeamGraphScheduler

        return TeamGraphScheduler
    raise AttributeError(name)


__all__ = [
    "AgentDescriptor",
    "DelegationEnvelope",
    "ExecutionGraph",
    "ExecutionNode",
    "LocalAgentRunner",
    "NodeRunResult",
    "TeamGraphScheduler",
    "TeamRunResult",
]
