Skip to main content

rig_core/model/
mod.rs

1//! Model metadata returned by providers with model listing support.
2//!
3//! Use [`ModelList`] for provider responses and [`ModelInfo`] for each
4//! advertised model entry. A provider with a model-listing wire returns it
5//! from `models()`; call it through a [`Model`](crate::driver::Model).
6//!
7//! ```
8//! use rig_core::model::ModelInfo;
9//!
10//! let model = ModelInfo::from_id("example");
11//! assert_eq!(model.display_name(), "example");
12//! ```
13
14pub mod listing;
15
16pub use listing::{ModelInfo, ModelList};