Constants§
- DEFAULT_
OUTPUT_ FILE_ BRIDGE - The const pointer the macro references.
- PROCESS_
ERROR_ FILE_ BRIDGE - We expose a CONST of type
BatchWorkflowProcessErrorFileFn
, so passing&PROCESS_ERROR_FILE_BRIDGE
exactly matches the trait’s needed function pointer type.
Functions§
- default_
output_ file_ bridge_ fn - A default bridging function, if the user doesn’t specify a particular T type.
We’ll parse each line as a
CamelCaseTokenWithComment
or whichever default type we prefer. - handle_
failed_ json_ repair - handle_
finish_ reason_ length - handle_
successful_ response - process_
batch_ output_ and_ errors - We add
'static + Send + Sync
toT
, so that storing it in anArc<dyn ... + Send + Sync + 'static>
is valid and the resultingFuture
can beSend
. - process_
error_ data - process_
error_ file - This is the real async function that processes the error file for a given triple,using the list of error operations. Now uses NDJSON approach line by line.
- process_
output_ data - process_
output_ file - The core async function to process the output file for a given triple.Now we do NDJSON line-by-line parsing, just like the older batch-mode approach.
- process_
output_ file_ bridge_ fn - The bridging function EXACTLY matches the
BatchWorkflowProcessOutputFileFn
type: - save_
failed_ entries