Click or drag to resize

AIProviderConfiguration Class

Configuration of an AI provider (type, model, endpoint, API key, token costs) defined in the server AI Configuration.
Inheritance Hierarchy
SystemObject
  Seal.ModelRootEditor
    Seal.AIAIProviderConfiguration

Namespace: Seal.AI
Assembly: SealLibrary (in SealLibrary.dll) Version: 10.0.1.0+a44cd3a7f03c2bf3cdbd971a878c679e40bed08a
Syntax
C#
public class AIProviderConfiguration : RootEditor

The AIProviderConfiguration type exposes the following members.

Constructors
 NameDescription
Public methodAIProviderConfigurationInitializes a new instance of the AIProviderConfiguration class
Top
Properties
 NameDescription
Public propertyClearProviderKey Provider API Key in clear text.
Public propertyEndPoint The resource endpoint URL.
Public propertyGUID Unique identifier for this provider configuration.
Public propertyInputTokenCost 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.
Public propertyIsEnabled When false, this provider is excluded from all operations without being deleted.
Public propertyModel Model name to use (e.g. gpt-4o, claude-3-5-sonnet-20241022, llama3).
Public propertyName Display name of this provider configuration.
Public propertyOutputTokenCost Cost per 1 million output (completion) tokens, in the currency you pay the provider in. 0 means no cost tracking.
Public propertyProviderKey Encrypted API Key.
Public propertyType Type of the AI provider.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetCost Cost of a usage based on the configured token costs, or null when no cost is configured.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInit Init the editor objects
(Inherited from RootEditor)
Public methodInitDefaultValues Init the default values
(Inherited from RootEditor)
Public methodInitEditor Init the editor objects and the default values
(Inherited from RootEditor)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodSetReadOnly Set all properties to readonly
(Inherited from RootEditor)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodUpdateEditor Update editor attributes
(Inherited from RootEditor)
Protected methodUpdateEditorAttributes Refresh properties attrivutes
(Inherited from RootEditor)
Top
Fields
 NameDescription
Protected field_dctd Type descriptor used to edit the properties in the PropertyGrid, null if the editor is not initialized
(Inherited from RootEditor)
Public fieldStatic memberAIProviderKeysKeyName Name of the server configuration encryption key used to encrypt provider API keys.
Public fieldStatic memberAIProviderKeysKeyValue Default value of the encryption key used to encrypt provider API keys.
Public fieldStatic memberDefaultProviderGUID 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.
Public fieldStatic memberDefaultProviderName Display name shown in the property-grid dropdown for the default-provider sentinel.
Public fieldStatic memberFirstEnabledName Display name shown in the property-grid dropdown for an empty default provider, meaning the first enabled provider is used.
Top
See Also