Revert "Update agent.rb"

This reverts commit 12756da1d0e215ad0fdce6d792ff3efaf047e2f8.