AIProvider |
public class AIProviderConfiguration : RootEditor
The AIProviderConfiguration type exposes the following members.
| Name | Description | |
|---|---|---|
| AIProviderConfiguration | Initializes a new instance of the AIProviderConfiguration class |
| Name | Description | |
|---|---|---|
| ClearProviderKey | Provider API Key in clear text. | |
| EndPoint | The resource endpoint URL. | |
| GUID | Unique identifier for this provider configuration. | |
| InputTokenCost | Cost per 1 million input (prompt) tokens, in the currency you pay the provider in. 0 means no cost tracking. Cached input tokens are counted at the full input rate. | |
| IsEnabled | When false, this provider is excluded from all operations without being deleted. | |
| Model | Model name to use (e.g. gpt-4o, claude-3-5-sonnet-20241022, llama3). | |
| Name | Display name of this provider configuration. | |
| OutputTokenCost | Cost per 1 million output (completion) tokens, in the currency you pay the provider in. 0 means no cost tracking. | |
| ProviderKey | Encrypted API Key. | |
| Type | Type of the AI provider. |
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetCost | Cost of a usage based on the configured token costs, or null when no cost is configured. | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| Init |
Init the editor objects
(Inherited from RootEditor) | |
| InitDefaultValues |
Init the default values
(Inherited from RootEditor) | |
| InitEditor |
Init the editor objects and the default values
(Inherited from RootEditor) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| SetReadOnly |
Set all properties to readonly
(Inherited from RootEditor) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) | |
| UpdateEditor |
Update editor attributes
(Inherited from RootEditor) | |
| UpdateEditorAttributes |
Refresh properties attrivutes
(Inherited from RootEditor) |
| Name | Description | |
|---|---|---|
| _dctd | (Inherited from RootEditor) | |
| AIProviderKeysKeyName | ||
| AIProviderKeysKeyValue | ||
| DefaultProviderGUID | Sentinel value for an agent's ProviderGUID meaning "use the server's Default Provider" (see DefaultProviderGUID). Real providers use Guid values, so this can never collide. | |
| DefaultProviderName | Display name shown in the property-grid dropdown for the default-provider sentinel. | |
| FirstEnabledName | Display name shown in the property-grid dropdown for an empty default provider, meaning the first enabled provider is used. |