changing the error to AgentRuntimeException