Doubt about Agent Class

What functions in the Agent class can be coded environment specifically?
Do we need to use only one algorithm for all the environments?