Fixed agent API client compatibility with new settings