Public declaration syntax from forge-rs/crates/forge-provider-platforms/src/lib.rs Original source SHA-256: 092754cb834f0ceaed06cfd6c11a403aa7c4eedd6b774b1f804325f47edf31b1 Function bodies and constant values are omitted. This is not the complete implementation. Source line 61 #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ProviderFamily { DirectModel, Gateway, } Source line 67 #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum AuthStrategy { ApiKey, AccessToken, BrowserAccountLogin, CloudCredentials, } Source line 75 #[derive(Debug, Clone, PartialEq, Eq)] pub struct ProviderPreset { pub namespace: &'static str, pub family: ProviderFamily, pub auth_strategy: AuthStrategy } Source line 81 pub fn approved_direct_provider_presets() -> Vec; Source line 141 pub fn approved_gateway_provider_presets() -> Vec; Source line 172 #[cfg(not(target_arch = "wasm32"))] pub fn register_default_core_direct_providers(registry: &mut ProviderRegistry) -> ForgeResult<()>; Source line 180 #[cfg(not(target_arch = "wasm32"))] pub fn register_openai_model( registry: &mut ProviderRegistry, model_id: impl Into, ) -> ForgeResult; Source line 200 #[cfg(not(target_arch = "wasm32"))] pub fn register_anthropic_model( registry: &mut ProviderRegistry, model_id: impl Into, ) -> ForgeResult; Source line 219 #[cfg(not(target_arch = "wasm32"))] pub fn register_google_model( registry: &mut ProviderRegistry, model_id: impl Into, ) -> ForgeResult; Source line 238 #[cfg(not(target_arch = "wasm32"))] pub fn register_xai_model( registry: &mut ProviderRegistry, model_id: impl Into, ) -> ForgeResult; Source line 253 #[cfg(not(target_arch = "wasm32"))] pub fn register_deepseek_model( registry: &mut ProviderRegistry, model_id: impl Into, ) -> ForgeResult; Source line 268 #[cfg(not(target_arch = "wasm32"))] pub fn register_mistral_model( registry: &mut ProviderRegistry, model_id: impl Into, ) -> ForgeResult; Source line 283 #[cfg(not(target_arch = "wasm32"))] pub fn register_cohere_model( registry: &mut ProviderRegistry, model_id: impl Into, ) -> ForgeResult; Source line 298 #[cfg(not(target_arch = "wasm32"))] pub fn register_groq_model( registry: &mut ProviderRegistry, model_id: impl Into, ) -> ForgeResult; Source line 313 #[cfg(not(target_arch = "wasm32"))] pub fn register_moonshot_model( registry: &mut ProviderRegistry, model_id: impl Into, ) -> ForgeResult; Source line 328 #[cfg(not(target_arch = "wasm32"))] pub fn register_zai_model( registry: &mut ProviderRegistry, model_id: impl Into, ) -> ForgeResult; Source line 343 #[cfg(not(target_arch = "wasm32"))] pub fn register_minimax_model( registry: &mut ProviderRegistry, model_id: impl Into, ) -> ForgeResult; Source line 358 #[cfg(not(target_arch = "wasm32"))] pub fn register_openrouter_model( registry: &mut ProviderRegistry, model_id: impl Into, ) -> ForgeResult; Source line 373 #[cfg(not(target_arch = "wasm32"))] pub fn register_bedrock_model( registry: &mut ProviderRegistry, model_id: impl Into, ) -> ForgeResult; Source line 388 #[cfg(not(target_arch = "wasm32"))] pub fn register_vertex_ai_model( registry: &mut ProviderRegistry, model_id: impl Into, ) -> ForgeResult; Source line 403 #[cfg(not(target_arch = "wasm32"))] pub fn register_microsoft_foundry_model( registry: &mut ProviderRegistry, model_id: impl Into, ) -> ForgeResult; Source line 418 #[cfg(not(target_arch = "wasm32"))] pub fn register_foundry_model( registry: &mut ProviderRegistry, model_id: impl Into, ) -> ForgeResult;