mesa_frames.AgentSetRegistry.rename#
- AgentSetRegistry.rename(target: AgentSet | str | dict[AgentSet | str, str] | list[tuple[AgentSet | str, str]], new_name: str | None = None, *, on_conflict: Literal['canonicalize', 'raise'] = 'canonicalize', mode: Literal['atomic', 'best_effort'] = 'atomic', inplace: bool = True) Self[source]#
Rename AgentSets with conflict handling.
Supports single-target
(set | old_name, new_name)and batch rename via dict or list of pairs. Names remain unique across the registry.