diff --git a/tooling/pipeline/includes/services/enrichment/enrichment_service.h b/tooling/pipeline/includes/services/enrichment/enrichment_service.h index 34aa88b0..acc9a31f 100644 --- a/tooling/pipeline/includes/services/enrichment/enrichment_service.h +++ b/tooling/pipeline/includes/services/enrichment/enrichment_service.h @@ -14,16 +14,16 @@ * @brief Interface for services that can enrich a location with context. */ class IEnrichmentService { - public: - virtual ~IEnrichmentService() = default; + public: + virtual ~IEnrichmentService() = default; - /** - * @brief Resolves contextual enrichment for a location. - * - * @param loc City to enrich. - * @return Context text, or an empty string if unavailable. - */ - virtual std::string GetLocationContext(const City& loc) = 0; + /** + * @brief Resolves contextual enrichment for a location. + * + * @param loc City to enrich. + * @return Context text, or an empty string if unavailable. + */ + virtual std::string GetLocationContext(const City& loc) = 0; }; #endif // BIERGARTEN_PIPELINE_INCLUDES_SERVICES_ENRICHMENT_ENRICHMENT_SERVICE_H_ diff --git a/tooling/pipeline/includes/services/enrichment/mock_enrichment.h b/tooling/pipeline/includes/services/enrichment/mock_enrichment.h index 88bc39aa..aad75a47 100644 --- a/tooling/pipeline/includes/services/enrichment/mock_enrichment.h +++ b/tooling/pipeline/includes/services/enrichment/mock_enrichment.h @@ -14,9 +14,7 @@ * @brief Enrichment service that returns no context for any location. */ class MockEnrichmentService final : public IEnrichmentService { - public: - std::string GetLocationContext(const City& /*loc*/) override { - return {}; - } + public: + std::string GetLocationContext(const City& /*loc*/) override { return {}; } }; #endif // BIERGARTEN_PIPELINE_INCLUDES_SERVICES_ENRICHMENT_MOCK_ENRICHMENT_H_ diff --git a/tooling/pipeline/includes/services/enrichment/wikipedia_service.h b/tooling/pipeline/includes/services/enrichment/wikipedia_service.h index e33b94a9..1a6be10a 100644 --- a/tooling/pipeline/includes/services/enrichment/wikipedia_service.h +++ b/tooling/pipeline/includes/services/enrichment/wikipedia_service.h @@ -19,30 +19,30 @@ * @brief Provides Wikipedia summary lookups backed by cached raw extracts. */ class WikipediaEnrichmentService final : public IEnrichmentService { - public: - /** - * @brief Creates a new Wikipedia service with the provided web client. - */ - explicit WikipediaEnrichmentService(std::unique_ptr client, - std::shared_ptr logger); + public: + /** + * @brief Creates a new Wikipedia service with the provided web client. + */ + explicit WikipediaEnrichmentService(std::unique_ptr client, + std::shared_ptr logger); - /** - * @brief Returns the Wikipedia-derived context for a location. - */ - [[nodiscard]] std::string GetLocationContext(const City& loc) override; + /** + * @brief Returns the Wikipedia-derived context for a location. + */ + [[nodiscard]] std::string GetLocationContext(const City& loc) override; - private: - std::string FetchExtract(std::string_view query); - std::unique_ptr client_; - std::shared_ptr logger_; - /** - * @brief Cache for raw Wikipedia query extracts, keyed by query string. - * - * GetLocationContext() always queries "brewing" and reuses "beer in - * {country}" for every city in that country, so caching avoids refetching - * the same extract across locations in a run. - */ - std::unordered_map extract_cache_; + private: + std::string FetchExtract(std::string_view query); + std::unique_ptr client_; + std::shared_ptr logger_; + /** + * @brief Cache for raw Wikipedia query extracts, keyed by query string. + * + * GetLocationContext() always queries "brewing" and reuses "beer in + * {country}" for every city in that country, so caching avoids refetching + * the same extract across locations in a run. + */ + std::unordered_map extract_cache_; }; #endif // BIERGARTEN_PIPELINE_INCLUDES_SERVICES_ENRICHMENT_WIKIPEDIA_SERVICE_H_