Source code for autogen_agentchat.base._team
from typing import Any, Mapping, Protocol
from ._task import TaskRunner
[docs]
class Team(TaskRunner, Protocol):
[docs]
async def reset(self) -> None:
"""Reset the team and all its participants to its initial state."""
...
[docs]
async def save_state(self) -> Mapping[str, Any]:
"""Save the current state of the team."""
...
[docs]
async def load_state(self, state: Mapping[str, Any]) -> None:
"""Load the state of the team."""
...