useserde::{Deserialize, Serialize};/// A schema for a true/false value.
////// # Example
////// ```
/// use llmprism::schema::BooleanSchema;
////// let urgent = BooleanSchema::new("urgent").with_description("Whether this request is time-sensitive");
/// ```
#[derive(Debug, Clone, Serialize, Deserialize)]pubstructBooleanSchema{/// The field/parameter name this schema describes.
pubname: String,
/// A plain-language explanation of what this value represents, shown to the
/// model so it can fill it in correctly.
pubdescription:Option<String>,
}implBooleanSchema{/// Creates a schema for a boolean named `name`, with no description yet.
pubfnnew(name: impl Into<String>)->Self{Self{
name: name.into(),
description:None,}}/// Attaches a plain-language description, shown to the model.
pubfnwith_description(mutself, description: impl Into<String>)->Self{self.description =Some(description.into());self}}