MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / CustomLoader

Interface CustomLoader

crates/opencode-provider/src/bootstrap.rs:266–272  ·  view source on GitHub ↗

Trait for provider-specific model loading customization.

Source from the content-addressed store, hash-verified

264
265/// Trait for provider-specific model loading customization.
266pub trait CustomLoader: Send + Sync {
267 fn load(
268 &self,
269 provider: &ModelsProviderInfo,
270 provider_state: Option<&ProviderState>,
271 ) -> CustomLoaderResult;
272}
273
274// ---------------------------------------------------------------------------
275// Custom loader implementations for all 14+ providers

Callers

nothing calls this directly

Implementers 1

bootstrap.rscrates/opencode-provider/src/bootstrap

Calls

no outgoing calls

Tested by

no test coverage detected