//! Structured-output enforcement modes for agent requests.
//!
//! ```
//! use rig_agent::run::output::OutputMode;
//! let mode = OutputMode::default();
//! assert_eq!(mode, OutputMode::Auto);
//! ```
use ;
/// Select how requests convey an agent's output schema.
///
/// Whatever the mode, and whether or not the provider enforces the schema, a
/// run ends only on an answer that is JSON fitting the schema, as
/// [`rig_core::tool::validate::validate`] checks it: it asks the model again
/// while its output-retry budget lasts, then fails.