class Mindee::WorkflowOptions
-
‘:on_min_pages` Apply the operation only if the document has at least this many pages.
* `:REMOVE` - remove the specified pages, and keep all others.
* `:KEEP_ONLY` - keep only the specified pages, and remove all others.
* `:operation` Operation to apply on the document, given the specified page indexes:
* `:page_indexes` Zero-based list of page indexes.
@!attribute page_options [PageOptions, Hash, nil] Page cutting/merge options:
@!attribute rag [bool, nil] Whether to enable Retrieval-Augmented Generation.
requiring authentication.
@!attribute public_url [String, nil] A unique, encrypted URL for accessing the document validation interface without
This performs a full OCR operation on the server and may increase response time.
@!attribute full_text [bool] Whether to include the full OCR text response in compatible APIs.
@!attribute priority [Symbol, nil] Priority to give to the document.
@!attribute document_alias [String, nil] Alias to give to the document.
Class for configuration options in workflow executions.
def initialize(params: {})
def initialize(params: {}) params = params.transform_keys(&:to_sym) @document_alias = params.fetch(:document_alias, nil) @priority = params.fetch(:priority, nil) @full_text = params.fetch(:full_text, false) @public_url = params.fetch(:public_url, nil) @rag = params.fetch(:rag, nil) raw_page_options = params.fetch(:page_options, nil) raw_page_options = PageOptions.new(params: raw_page_options) unless raw_page_options.is_a?(PageOptions) @page_options = raw_page_options end