SQL Server Agent - error source?

Does Agent monitor the Windows Event Log?

Or, does Agent receive errors from SQL Server directly?