fix: update minimal multi_agent_router example and docs for correct result handling

pull/896/head
Pavan Kumar 2 weeks ago
parent 06d79356d4
commit 6f54434091

@ -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).

@ -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"])

Loading…
Cancel
Save