Type guard to check if an object is an instance of BaseAgent.
The object to check.
True if the object is an instance of BaseAgent, false otherwise.
Type guard to check if an object is an instance of BaseAgent.