| Crates.io | batch-mode-batch-executor |
| lib.rs | batch-mode-batch-executor |
| version | 0.2.2 |
| created_at | 2025-02-27 06:10:11.574115+00 |
| updated_at | 2025-07-13 10:45:31.796438+00 |
| description | Provides functionality for executing and managing batch processing workflows, including file management, status monitoring, error handling, and output reconciliation in OpenAI batch operations. |
| homepage | |
| repository | https://github.com/klebs6/klebs-general |
| max_upload_size | |
| id | 1571373 |
| size | 131,527 |
This crate provides functionality for executing and managing batch processing workflows in the context of OpenAI batch operations. It allows you to upload input files, create batches, monitor batch status, and download results. The crate integrates with other modules in the batch mode ecosystem, ensuring seamless execution of complex batch processes involving file uploads, status monitoring, error handling, and output reconciliation.
use batch_mode_batch_executor::{fresh_execute_batch_processing, BatchFileTriple, OpenAIClientHandle};
let client = OpenAIClientHandle::new();
let mut triple = BatchFileTriple::new(input_file, output_file, error_file);
let result = triple.fresh_execute(&mut triple, &client).await?;
This crate utilizes error-tree for structured error handling, supporting various error types such as BatchProcessingError, BatchMetadataError, and BatchDownloadError.
OPENAI_API_KEY environment variable must be set with your OpenAI API key.batch-mode crates, such as batch-mode-batch-client, batch-mode-batch-schema, and more.This crate is licensed under the MIT License. See LICENSE for details.