Change API of AgentDelegate.