set default value for use_agent to maintain compatibility with existing code