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
Registration order matters when you programmatically register agents with the same name as a built-in.
136
-
`register_builtins_agents()` uses `register_agent_if_absent()`, which silently skips names that are already taken,
137
-
so if you register your custom agents **before** calling `register_builtins_agents()`, your agents win.
138
-
If you call `register_builtins_agents()` first, a subsequent `register_agent()` with a conflicting name will raise a `ValueError`.
135
+
Registration order is critical when programmatically registering agents that share a name with a built-in agent. The system is designed to skip registration if a name is already taken. Therefore, if you register your custom agents before the built-in agents are loaded, your custom versions will take precedence.
136
+
137
+
Conversely, if the built-in agents are loaded first, they will take precedence, and any subsequent registration of a custom agent with the same name will be ignored.
0 commit comments