We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85dfca4 commit 898c36dCopy full SHA for 898c36d
1 file changed
agent_r1/agent_flow/agent_flow.py
@@ -456,7 +456,10 @@ def register(agent_name: str):
456
457
def decorator(subclass: type[AgentFlowBase]) -> type[AgentFlowBase]:
458
fqdn = f"{subclass.__module__}.{subclass.__qualname__}"
459
- _agent_flow_registry[agent_name] = {"_target_": fqdn}
+ if agent_name in _agent_flow_registry:
460
+ _agent_flow_registry[agent_name]["_target_"] = fqdn
461
+ else:
462
+ _agent_flow_registry[agent_name] = {"_target_": fqdn}
463
return subclass
464
465
return decorator
0 commit comments