Class ConfigResolutionService

java.lang.Object
ai.pipeline.connector.intake.service.ConfigResolutionService

@ApplicationScoped public class ConfigResolutionService extends Object
Service for resolving Tier 1 configuration for a datasource.

Intake is graph-agnostic. It only handles Tier 1 (service-level) configuration from datasource-admin. Tier 2 (graph-level) configuration is resolved by the engine during IntakeHandoff - this keeps intake simple and decoupled from graph internals.

Design rationale:

  • Intake validates API keys and optionally persists documents
  • Engine knows about graphs, routing, and Tier 2 overrides
  • Separation of concerns: intake doesn't need graph knowledge
  • Constructor Details

    • ConfigResolutionService

      public ConfigResolutionService()
      Default constructor for CDI.
  • Method Details

    • resolveConfig

      public ConfigResolutionService.ResolvedConfig resolveConfig(String datasourceId, String apiKey)
      Resolve Tier 1 configuration for a datasource using its ID and API key.
      Parameters:
      datasourceId - The unique identifier of the datasource
      apiKey - The API key for authentication
      Returns:
      Resolved configuration containing Tier 1 settings