You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Need to switch architectures easily |`SwarmRouter`|
943
941
944
942
---
@@ -1086,8 +1084,6 @@ from swarms import Agent
1086
1084
1087
1085
**Don't instantiate heavyweight structures inside tight loops** — create agents and workflows once, reuse them across calls.
1088
1086
1089
-
**Don't pass `tools=[]` (empty list)** — pass `tools=None` instead. An empty list can confuse schema generation.
1090
-
1091
1087
**Don't use `streaming_on=True` and `streaming_callback` together on the same agent** — `streaming_on` streams to stdout; `streaming_callback` streams to your function. Pick one.
1092
1088
1093
1089
**Don't set `context_compression=False` on very long autonomous sessions** — without compression the agent will eventually hit the context limit and raise an error.
0 commit comments