Skip to main content

Module listing

Module listing 

Source
Expand description

Provider model metadata and listing interfaces.

use rig_core::model::{ModelInfo, ModelList};

let models = ModelList::new(vec![ModelInfo::new("example", "Example model")]);
assert_eq!(models.len(), 1);

Structsยง

ModelInfo
Provider-advertised model identifier and optional metadata.
ModelList
Ordered provider model entries. May represent one page or an aggregated listing.