Class CaptureEnrichmentService
java.lang.Object
com.shaft.capture.generate.CaptureEnrichmentService
Produces schema-validated AI naming and assertion previews from sanitized Capture metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a service using the configured SHAFT Pilot provider.CaptureEnrichmentService(Function<com.shaft.pilot.ai.AiRequest, com.shaft.pilot.ai.AiResponse> executor) Creates a service with an injectable provider execution boundary. -
Method Summary
-
Constructor Details
-
CaptureEnrichmentService
public CaptureEnrichmentService()Creates a service using the configured SHAFT Pilot provider. -
CaptureEnrichmentService
public CaptureEnrichmentService(Function<com.shaft.pilot.ai.AiRequest, com.shaft.pilot.ai.AiResponse> executor) Creates a service with an injectable provider execution boundary.- Parameters:
executor- provider request executor
-
-
Method Details
-
preview
public CaptureEnrichmentPreview preview(CaptureSession session, String fingerprint, String deterministicClassName, String deterministicMethodName, Map<String, String> deterministicElementNames, com.shaft.pilot.ai.ApprovalPolicy approvalPolicy) Requests a review-only enrichment proposal.- Parameters:
session- sanitized Capture sessionfingerprint- deterministic source fingerprintdeterministicClassName- current class namedeterministicMethodName- current method namedeterministicElementNames- current field namesapprovalPolicy- explicit provider approval- Returns:
- reviewable preview
-