Pulling out AgentApiService.