Lazily generate agent ID when first accessed.
This is a method of the Agent class in the agent module.
def agent_id() -> Any