Ignore agent_id parameter if agent is provided.