From 6f54434091eae7c1e13195537c9ae732de9b3da9 Mon Sep 17 00:00:00 2001 From: Pavan Kumar <66913595+ascender1729@users.noreply.github.com> Date: Tue, 17 Jun 2025 16:36:03 +0000 Subject: [PATCH] fix: update minimal multi_agent_router example and docs for correct result handling --- docs/swarms/examples/multi_agent_router_minimal.md | 1 - examples/multi_agent/mar/multi_agent_router_minimal.py | 1 - 2 files changed, 2 deletions(-) diff --git a/docs/swarms/examples/multi_agent_router_minimal.md b/docs/swarms/examples/multi_agent_router_minimal.md index 5e283ec3..17ad8bc3 100644 --- a/docs/swarms/examples/multi_agent_router_minimal.md +++ b/docs/swarms/examples/multi_agent_router_minimal.md @@ -21,7 +21,6 @@ agents = [ router = MultiAgentRouter(agents=agents) result = router.route_task("Write a function that adds two numbers") -print("Chosen agent:", result["boss_decision"]["selected_agent"]) ``` View the source on [GitHub](https://github.com/kyegomez/swarms/blob/master/examples/multi_agent/mar/multi_agent_router_minimal.py). diff --git a/examples/multi_agent/mar/multi_agent_router_minimal.py b/examples/multi_agent/mar/multi_agent_router_minimal.py index 7020d0c3..2930c175 100644 --- a/examples/multi_agent/mar/multi_agent_router_minimal.py +++ b/examples/multi_agent/mar/multi_agent_router_minimal.py @@ -17,4 +17,3 @@ if __name__ == "__main__": router = MultiAgentRouter(agents=agents) result = router.route_task("Write a function that adds two numbers") - print("Chosen agent:", result["boss_decision"]["selected_agent"])