-
-
Notifications
You must be signed in to change notification settings - Fork 717
[FEAT][AutoSwarmUI] Add Auto Swarm Builder UI with agent creation and… #1308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… evaluation functionality
| Usage: python3 examples/auto_swarm_ui.py | ||
| Install dependency: pip install rich | ||
| """ | ||
| from rich.console import Console |
Check failure
Code scanning / Pyre
Undefined import Error
| Install dependency: pip install rich | ||
| """ | ||
| from rich.console import Console | ||
| from rich.panel import Panel |
Check failure
Code scanning / Pyre
Undefined import Error
| """ | ||
| from rich.console import Console | ||
| from rich.panel import Panel | ||
| from rich.table import Table |
Check failure
Code scanning / Pyre
Undefined import Error
| from rich.console import Console | ||
| from rich.panel import Panel | ||
| from rich.table import Table | ||
| from rich.text import Text |
Check failure
Code scanning / Pyre
Undefined import Error
| from rich.panel import Panel | ||
| from rich.table import Table | ||
| from rich.text import Text | ||
| from rich.live import Live |
Check failure
Code scanning / Pyre
Undefined import Error
| ] | ||
|
|
||
|
|
||
| def load_eval_dataset(path: str): |
Check failure
Code scanning / Pyre
Undefined or invalid type Error
| t = Table(expand=True, show_header=True, header_style="bold red") | ||
| t.add_column("Agent", style="red", no_wrap=True) | ||
| t.add_column("Status", style="white") | ||
| for a, s in statuses.items(): |
Check failure
Code scanning / Pyre
Incompatible parameter type Error
|
|
||
| for iteration in range(1, CONFIG.get("eval_iterations", 1) + 1): | ||
| console.print(Panel(Text(f"Iteration {iteration}: building agents...", style="bold red"), border_style="red")) | ||
| create_agents_live() |
Check failure
Code scanning / Pyre
Incompatible parameter type Error
| console.print(Panel(Text(f"Iteration {iteration}: building agents...", style="bold red"), border_style="red")) | ||
| create_agents_live() | ||
|
|
||
| # run evaluation |
Check failure
Code scanning / Pyre
Incompatible parameter type Error
| # run evaluation | ||
| console.print(Panel(Text("Evaluating agents...", style="bold red"), border_style="red")) | ||
| scores = evaluate_agents(agents, dataset, CONFIG) | ||
| show_scores_panel(scores) |
Check failure
Code scanning / Pyre
Unsupported operand Error
Resolves #939
📚 Documentation preview 📚: https://swarms--1308.org.readthedocs.build/en/1308/