pub struct ModelRegistryOptions {
pub models_json_path: Option<PathBuf>,
pub model_cache: Option<ModelCache>,
pub env: Arc<dyn EnvSource>,
}Expand description
Registry construction options.
Fields§
§models_json_path: Option<PathBuf>models.json path (None: no file).
model_cache: Option<ModelCache>Model list cache for dynamic registrations (None: no cache).
env: Arc<dyn EnvSource>Environment for provider env vars and $ENV config values.
Implementations§
Source§impl ModelRegistryOptions
impl ModelRegistryOptions
Sourcepub fn for_agent_dir(agent_dir: &Path) -> Self
pub fn for_agent_dir(agent_dir: &Path) -> Self
<agent>/models.json and <agent>/cache/models/ with the process environment.
Trait Implementations§
Source§impl Clone for ModelRegistryOptions
impl Clone for ModelRegistryOptions
Source§impl Debug for ModelRegistryOptions
impl Debug for ModelRegistryOptions
Auto Trait Implementations§
impl !RefUnwindSafe for ModelRegistryOptions
impl !UnwindSafe for ModelRegistryOptions
impl Freeze for ModelRegistryOptions
impl Send for ModelRegistryOptions
impl Sync for ModelRegistryOptions
impl Unpin for ModelRegistryOptions
impl UnsafeUnpin for ModelRegistryOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more