sales_agent = Agent(name="Sales Agent") def transfer_to_sales(): return sales_agent agent = Agent(functions=[transfer_to_sales]) response = client.run(agent, [{"role":"user", "content":"Transfer me to sales."}]) print(response.agent.name)