Structure representing a warning generated during document processing.
Matches the Rust ProcessingWarning struct.
Fields
:source- The component or stage that generated the warning:message- Human-readable warning message
Summary
Functions
Create a ProcessingWarning struct from a map.
Convert a ProcessingWarning struct to a map.
Types
Functions
Create a ProcessingWarning struct from a map.
Examples
iex> Kreuzberg.ProcessingWarning.from_map(%{
...> "source" => "ocr",
...> "message" => "Low confidence detected"
...> })
%Kreuzberg.ProcessingWarning{
source: "ocr",
message: "Low confidence detected"
}
Convert a ProcessingWarning struct to a map.
Examples
iex> warning = %Kreuzberg.ProcessingWarning{source: "ocr", message: "Low confidence"}
iex> Kreuzberg.ProcessingWarning.to_map(warning)
%{
"source" => "ocr",
"message" => "Low confidence"
}