fix: Added FormatAdapter and CommonAdapter for type safety