Public declaration syntax from forge-ts/packages/forge-core/src/provider-families.ts Original source SHA-256: 342c0dfc4a8cb07359424f9c0837d32e337b71a11e29d678e57725e41270d13e Function bodies and constant values are omitted. This is not the complete implementation. Source line 50 export const ProviderFamily /* type inferred in source */; Source line 56 export type ProviderFamily = (typeof ProviderFamily)[keyof typeof ProviderFamily]; Source line 58 export const AuthStrategy /* type inferred in source */; Source line 65 export type AuthStrategy = (typeof AuthStrategy)[keyof typeof AuthStrategy]; Source line 67 export interface ProviderPreset { readonly namespace: string; readonly family: ProviderFamily; readonly authStrategy: AuthStrategy; } Source line 73 export type ProviderEnvironment = Readonly>; Source line 75 export interface ProviderExecutionRequest { readonly providerRef: string; readonly namespace: string; readonly modelId: string; readonly family: ProviderFamily; readonly authStrategy: AuthStrategy; readonly credential: string; readonly baseUrl?: string; readonly messages: readonly ModelMessage[]; readonly tools: readonly ToolDefinition[]; readonly options: GenerateOptions; } Source line 88 export interface ProviderInstallOptions { readonly env?: ProviderEnvironment; readonly generate?: ( request: ProviderExecutionRequest ) => Promise; readonly stream?: ( request: ProviderExecutionRequest ) => AsyncGenerator; } Source line 115 export function approvedCodingProviderPresets(): ProviderPreset[]; Source line 145 export function approvedDirectProviderPresets(): ProviderPreset[]; Source line 165 export function approvedGatewayProviderPresets(): ProviderPreset[]; Source line 195 export function registerOfficialCodingProviders( registry: ProviderRegistry, options: ProviderInstallOptions = {} ): void; Source line 322 export function registerDefaultCoreDirectProviders( registry: ProviderRegistry, options: ProviderInstallOptions = {} ): string[]; Source line 333 export function registerOpenAiModel( registry: ProviderRegistry, modelId: string, options: ProviderInstallOptions = {} ): string; Source line 350 export function registerAnthropicModel( registry: ProviderRegistry, modelId: string, options: ProviderInstallOptions = {} ): string; Source line 371 export function registerGoogleModel( registry: ProviderRegistry, modelId: string, options: ProviderInstallOptions = {} ): string; Source line 392 export function registerXaiModel( registry: ProviderRegistry, modelId: string, options: ProviderInstallOptions = {} ): string; Source line 409 export function registerDeepSeekModel( registry: ProviderRegistry, modelId: string, options: ProviderInstallOptions = {} ): string; Source line 426 export function registerMistralModel( registry: ProviderRegistry, modelId: string, options: ProviderInstallOptions = {} ): string; Source line 443 export function registerCohereModel( registry: ProviderRegistry, modelId: string, options: ProviderInstallOptions = {} ): string; Source line 460 export function registerGroqModel( registry: ProviderRegistry, modelId: string, options: ProviderInstallOptions = {} ): string; Source line 477 export function registerMoonshotModel( registry: ProviderRegistry, modelId: string, options: ProviderInstallOptions = {} ): string; Source line 494 export function registerZaiModel( registry: ProviderRegistry, modelId: string, options: ProviderInstallOptions = {} ): string; Source line 511 export function registerMiniMaxModel( registry: ProviderRegistry, modelId: string, options: ProviderInstallOptions = {} ): string; Source line 528 export function registerOpenRouterModel( registry: ProviderRegistry, modelId: string, options: ProviderInstallOptions = {} ): string; Source line 545 export function registerBedrockModel( registry: ProviderRegistry, modelId: string, options: ProviderInstallOptions = {} ): string; Source line 566 export function registerVertexAiModel( registry: ProviderRegistry, modelId: string, options: ProviderInstallOptions = {} ): string; Source line 587 export function registerMicrosoftFoundryModel( registry: ProviderRegistry, modelId: string, options: ProviderInstallOptions = {} ): string; Source line 608 export function registerFoundryModel( registry: ProviderRegistry, modelId: string, options: ProviderInstallOptions = {} ): string; Source line 1116 export function unavailableProviderResult(providerRef: string): GenerateResult;