The `SwarmRouter` class is a flexible routing system designed to manage different types of swarms for task execution. It provides a unified interface to interact with various swarm types, including `AgentRearrange`, `MixtureOfAgents`, `SpreadSheetSwarm`, `SequentialWorkflow`, and `ConcurrentWorkflow`. We will be continously adding more and more swarm architectures here as we progress with new architectures.
The `SwarmRouter` class is a flexible routing system designed to manage different
types of swarms for task execution. It provides a unified interface to interact with
various swarm types, including `AgentRearrange`, `MixtureOfAgents`,
`SpreadSheetSwarm`, `SequentialWorkflow`, and `ConcurrentWorkflow`. We will be
continously adding more and more swarm architectures here as we progress with new
architectures.
## Types
### SwarmType
A literal type that can be one of:
```python
SwarmType = Literal[
"AgentRearrange",
"MixtureOfAgents",
"SpreadSheetSwarm",
"SequentialWorkflow",
"ConcurrentWorkflow",
]
```
## Classes
## Classes
@ -11,33 +29,50 @@ The `SwarmRouter` class is a flexible routing system designed to manage differen
A Pydantic model for capturing log entries.
A Pydantic model for capturing log entries.
#### Attributes:
#### Attributes:
- `id` (str): Unique identifier for the log entry.
- `id` (str): Unique identifier generated using UUID4
- `timestamp` (datetime): Time of log creation.
- `timestamp` (datetime): UTC timestamp of log creation