***

title: get_agents
slug: /reference/python/agents/agent-server/get-agents
description: Return all registered agents as a list of route/agent tuples.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[agentbase]: /docs/server-sdks/reference/python/agents/agent-base

Return all registered agents as a list of `(route, agent)` tuples. Useful for introspection,
logging, or building admin interfaces.

## **Returns**

`list[tuple[str, AgentBase]]` -- A list of tuples where the first element is the route string
(e.g., `"/sales"`) and the second is the [`AgentBase`][agentbase] instance.

## **Example**

```python {9}
from signalwire import AgentServer
from signalwire import AgentBase

agent1 = AgentBase(name="sales", route="/sales")
agent2 = AgentBase(name="support", route="/support")
server = AgentServer(port=3000)
server.register(agent1)
server.register(agent2)
for route, agent in server.get_agents():
    print(f"{route}: {agent.get_name()}")
# /sales: sales
# /support: support
```