pub enum ProgressEvent {
ProcessingStarted {
text_length: usize,
model: String,
provider: String,
},
ChunkingStarted {
total_chars: usize,
chunk_count: usize,
strategy: String,
},
BatchProgress {
batch_number: usize,
total_batches: usize,
chunks_processed: usize,
total_chunks: usize,
},
ModelCall {
provider: String,
model: String,
input_length: usize,
},
ModelResponse {
success: bool,
output_length: Option<usize>,
},
ValidationStarted {
raw_output_length: usize,
},
ValidationCompleted {
extractions_found: usize,
aligned_count: usize,
errors: usize,
warnings: usize,
},
AggregationStarted {
chunk_count: usize,
},
ProcessingCompleted {
total_extractions: usize,
processing_time_ms: u64,
},
RetryAttempt {
operation: String,
attempt: usize,
max_attempts: usize,
delay_seconds: u64,
},
Error {
operation: String,
error: String,
},
Debug {
operation: String,
details: String,
},
}
Expand description
Progress event types for different stages of processing
Variants§
ProcessingStarted
Text processing started
ChunkingStarted
Text is being chunked
BatchProgress
Batch processing progress
ModelCall
Language model call in progress
ModelResponse
Model response received
ValidationStarted
Extraction validation and parsing
ValidationCompleted
Validation completed
AggregationStarted
Results aggregation
ProcessingCompleted
Processing completed
RetryAttempt
Retry attempt
Error
Error occurred
Debug
Debug information
Trait Implementations§
Source§impl Clone for ProgressEvent
impl Clone for ProgressEvent
Source§fn clone(&self) -> ProgressEvent
fn clone(&self) -> ProgressEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ProgressEvent
impl RefUnwindSafe for ProgressEvent
impl Send for ProgressEvent
impl Sync for ProgressEvent
impl Unpin for ProgressEvent
impl UnwindSafe for ProgressEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more