Listing Agents

To list all the agents in your project, use the list_agents method:

Python
my_agents = client.agents.list_agents()
my_agents
[Agent(agent_id="xxxxxxxx", name="Scott Henderson's SEO & Growth Marketing Agent"), Agent(agent_id="xxxxxxxx", name="Rosh Singh's Sales & Research Qualifier Agent")]

Retrieving an Agent

To retrieve a specific agent, use the retrieve_agent method with the agent_id:

Python
my_agent = client.agents.retrieve_agent(agent_id="xxxxxxxx")

my_agent
Agent(agent_id="xxxxxxxx", name="Scott Henderson's SEO & Growth Marketing Agent")

Deleting an Agent

To delete an agent, use the delete_agent method with the agent_id:

Python
success = client.agents.delete_agent(agent_id="xxxxxxxx")
success
True