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
//! Content-moderation requests and responses for text, image, audio, and video.
//!
//! ## Features
//!
//! - **Multi-format support** - Text, image, audio, and video content
//! moderation
//! - **Risk detection** - Identifies pornographic, violent, and illegal content
//! - **Structured results** - Detailed risk level and type information
//! - **Validation** - Input validation before dispatch
//!
//! # Examples
//!
//! ```rust,no_run
//! use zai_rs::model::moderation::*;
//! use zai_rs::ZaiClient;
//!
//! # async fn run() -> Result<(), Box<dyn std::error::Error>> {
//! let client = ZaiClient::from_env()?;
//! let moderation = Moderation::new_text("Content to review");
//! let _result = moderation.send_via(&client).await?;
//!
//! let moderation = Moderation::new_multimedia(
//! MediaType::Image,
//! "https://example.com/image.jpg"
//! );
//! let _result = moderation.send_via(&client).await?;
//! # Ok(())
//! # }
//! ```
/// Request builder and client for content moderation.
/// Supported moderation model ids.
pub use Moderation;
pub use *;