1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! # Batch Processing Module
//!
//! Provides batch-processing capabilities for the Zhipu AI API. Submit
//! multiple requests asynchronously, inspect job state, and use the returned
//! output/error file identifiers to retrieve results through the file API.
//!
//! # Operations
//!
//! - Create — create a new batch job
//! - List — list batch jobs with filtering
//! - Retrieve — retrieve a batch job's status and results
//! - Cancel — cancel a running or queued batch job
//!
//! # Usage
//!
//! ```rust,no_run
//! use zai_rs::{ZaiResult, batches::*, client::ZaiClient};
//!
//! # async fn example(client: &ZaiClient) -> ZaiResult<()> {
//! let job = BatchCreateRequest::new("batch-input-file-id", BatchEndpoint::ChatCompletions)
//! .send_via(client)
//! .await?;
//! let current = BatchGetRequest::new("batch-id").send_via(client).await?;
//! let cancelled = BatchCancelRequest::new("batch-id").send_via(client).await?;
//! # let _ = (job, current, cancelled);
//! # Ok(())
//! # }
//! ```
/// Cancel a running or queued batch job (`POST …/batches/{id}/cancel`).
/// Create a new batch job (`POST …/batches`).
/// List batch jobs with filtering/pagination (`GET …/batches`).
/// Retrieve a batch job's status and results (`GET …/batches/{id}`).
pub use ;
pub use ;
pub use ;
pub use ;
pub use BatchItem;