API for agent plans