# ElasticAgent Source: https://www.tensorplay.cn/docs/generated/tensorplay.distributed.elastic.agent.server.ElasticAgent.html ```python class tensorplay.distributed.elastic.agent.server.ElasticAgent ``` Agent interface for one worker-group role. ```python get_worker_group(role: str = 'default') → WorkerGroup ``` Return the managed group. ```python run(role: str = 'default') → RunResult ``` Run the worker group to a terminal state.