Accessing the List of Registered Agents from Within an Agent on the Same LangGraph Server

Hi all,

I’ve searched through the documentation but haven’t found any references for this scenario:

I’m implementing a coordinator agent to deploy on the LangGraph server, and I’d like this agent to dynamically retrieve a list of all other agents available on the server. Is there a recommended approach or existing mechanism to access the registered agents from within an agent? Any guidelines or examples would be greatly appreciated.

Thanks,
Marcelo

client = get_client()

async def my_node(...):
    other_agents = await client.assistants.search()

is how i’d do it. That work for you?

@wfh Thanks for the info.

Does not the get_client operation need the server URL?

Marcelo