agents / Exports / AIProviderManagerInterface
Interface: AIProviderManagerInterface
AI Provider Manager interface for provider registration and selection
Table of contents
Methods
- addProvider
- removeProvider
- getProvider
- getProviders
- setCurrentProvider
- getCurrentProvider
- isConfigured
- getAvailableModels
Methods
addProvider
▸ addProvider(name, provider): void
Register an AI provider
Parameters
| Name | Type |
|---|---|
name | string |
provider | AIProvider |
Returns
void
Defined in
packages/agents/src/interfaces/manager.ts:38
removeProvider
▸ removeProvider(name): void
Remove an AI provider
Parameters
| Name | Type |
|---|---|
name | string |
Returns
void
Defined in
packages/agents/src/interfaces/manager.ts:43
getProvider
▸ getProvider(name): undefined | AIProvider
Get registered provider by name
Parameters
| Name | Type |
|---|---|
name | string |
Returns
undefined | AIProvider
Defined in
packages/agents/src/interfaces/manager.ts:48
getProviders
▸ getProviders(): Record<string, AIProvider>
Get all registered providers
Returns
Record<string, AIProvider>
Defined in
packages/agents/src/interfaces/manager.ts:53
setCurrentProvider
▸ setCurrentProvider(name, model): void
Set current provider and model
Parameters
| Name | Type |
|---|---|
name | string |
model | string |
Returns
void
Defined in
packages/agents/src/interfaces/manager.ts:58
getCurrentProvider
▸ getCurrentProvider(): undefined | { provider: string ; model: string }
Get current provider and model
Returns
undefined | { provider: string ; model: string }
Defined in
packages/agents/src/interfaces/manager.ts:63
isConfigured
▸ isConfigured(): boolean
Check if provider is configured
Returns
boolean
Defined in
packages/agents/src/interfaces/manager.ts:68
getAvailableModels
▸ getAvailableModels(providerName): string[]
Get available models for a provider
Parameters
| Name | Type |
|---|---|
providerName | string |
Returns
string[]