Class JsonExtractionBuilder
java.lang.Object
ai.doctruth.JsonExtractionBuilder
Immutable fluent builder for JSON Schema-driven extraction. Use this when the caller
owns an external schema contract, including exported Pydantic JSON Schema.
- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptionrequireCitation(String fieldPath) ExtractionResult<com.fasterxml.jackson.databind.JsonNode> runJson(ParsedDocument doc) withContextStrategy(ContextStrategy strategy) withMaxRetries(int n) withSourcePublishedAt(Instant sourcePublishedAt)
-
Method Details
-
withProvenance
-
withBitemporal
-
withConfidence
-
withMaxRetries
-
withContextStrategy
-
withSourcePublishedAt
-
requireCitation
-
runJson
public ExtractionResult<com.fasterxml.jackson.databind.JsonNode> runJson(ParsedDocument doc) throws ExtractionException - Throws:
ExtractionException
-