Uses of Class
dyntabs.ai.ExtractionBuilder
Packages that use ExtractionBuilder
-
Uses of ExtractionBuilder in dyntabs.ai
Methods in dyntabs.ai that return ExtractionBuilderModifier and TypeMethodDescriptionstatic <T> ExtractionBuilder<T> Starts a typed extraction: turn unstructured text or a document into a populated Java object (record or POJO).ExtractionBuilder.validate()Enables Jakarta Bean Validation on the extracted object.ExtractionBuilder.withApiKey(String apiKey) Overrides the API key for this extraction.ExtractionBuilder.withBaseUrl(String baseUrl) Overrides the API base URL (proxies, Azure OpenAI, self-hosted endpoints).ExtractionBuilder.withChatModel(dev.langchain4j.model.chat.ChatModel model) Injects an externally createdChatModel, bypassingeasyai.propertiesandEasyAI.configure().ExtractionBuilder.withEventListener(EasyAIListener eventListener) Registers a listener that receives a liveEasyAIEventstream as the extraction runs:EasyAIEvent.Phase.STARTEDwhen it begins, aEasyAIEvent.Phase.PROGRESSwhen the model is queried, aEasyAIEvent.Phase.RETRYfor each re-attempt on malformed JSON, and a finalEasyAIEvent.Phase.RESULT(orEasyAIEvent.Phase.ERROR).Overrides the model name for this extraction (e.g.ExtractionBuilder.withProvider(String provider) Overrides the provider ("openai"or"ollama") for this extraction.ExtractionBuilder.withRetries(int retries) Sets how many additional attempts to make if the model returns malformed JSON.ExtractionBuilder.withTemperature(double temperature) Overrides the sampling temperature.