-
-
Notifications
You must be signed in to change notification settings - Fork 717
Add Auto Swarm Builder UI with agent creation animation #1307
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
| 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
|
|
||
| AGENTS = [f"agent_{i+1}" for i in range(CONFIG["agent_count"]) ] | ||
|
|
||
| def title_text(text: str) -> Text: |
Check failure
Code scanning / Pyre
Undefined or invalid type Error
| def create_agents_live() -> None: | ||
| statuses = {a: "pending" for a in AGENTS} | ||
|
|
||
| def render() -> Panel: |
Check failure
Code scanning / Pyre
Undefined or invalid type 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
|
|
||
| def create_agents_live() -> None: | ||
| # keep this function generic: create visual statuses for the provided agent list | ||
| agents = make_agents(CONFIG["agent_count"]) |
Check failure
Code scanning / Pyre
Incompatible parameter type Error
| show_configuration() | ||
| show_task() | ||
| # Iterative build -> evaluate -> judge loop | ||
| agents = make_agents(CONFIG["agent_count"]) |
Check failure
Code scanning / Pyre
Incompatible parameter type Error
| # Iterative build -> evaluate -> judge loop | ||
| agents = make_agents(CONFIG["agent_count"]) | ||
| # try to load external eval dataset (JSON) if available | ||
| external = load_eval_dataset(CONFIG.get("eval_dataset_path")) |
Check failure
Code scanning / Pyre
Incompatible parameter type Error
| external = load_eval_dataset(CONFIG.get("eval_dataset_path")) | ||
| dataset = external if external is not None else EVAL_DATASET | ||
|
|
||
| for iteration in range(1, CONFIG.get("eval_iterations", 1) + 1): |
Check failure
Code scanning / Pyre
Unsupported operand 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
| from rich.table import Table | ||
| from rich.text import Text | ||
| from rich.live import Live | ||
| from rich.align import Align |
Check failure
Code scanning / Pyre
Undefined import Error
resolves #1013
📚 Documentation preview 📚: https://swarms--1307.org.readthedocs.build/en/1307/