feat(team): run parallel nodes with isolated loops
This commit is contained in:
@ -16,10 +16,10 @@ if TYPE_CHECKING:
|
||||
class TeamService:
|
||||
"""Internal service for Beaver-native multi-agent execution."""
|
||||
|
||||
def __init__(self, loop: AgentLoop) -> None:
|
||||
def __init__(self, loop: AgentLoop, *, max_parallel_team_nodes: int = 3) -> None:
|
||||
self.loop = loop
|
||||
self.runner = LocalAgentRunner(loop)
|
||||
self.scheduler = TeamGraphScheduler(self.runner)
|
||||
self.scheduler = TeamGraphScheduler(self.runner, max_parallel_team_nodes=max_parallel_team_nodes)
|
||||
|
||||
async def run_team(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user