Click or drag to resize

AIAgentConfiguration Class

Configuration for an AI agent: ties together one provider, an optional subset of tools, and a default system prompt. Stored in AIAgents.
Inheritance Hierarchy
SystemObject
  Seal.ModelRootEditor
    Seal.AIAIAgentConfiguration

Namespace: Seal.AI
Assembly: SealLibrary (in SealLibrary.dll) Version: 10.0.0.0+c1250b26c169a4ba4d702dc7579506e87ba2cd3a
Syntax
C#
public class AIAgentConfiguration : RootEditor

The AIAgentConfiguration type exposes the following members.

Constructors
 NameDescription
Public methodAIAgentConfigurationInitializes a new instance of the AIAgentConfiguration class
Top
Properties
 NameDescription
Public propertyDefaultSystemPrompt Inline system prompt injected at the start of every conversation. Ignored when SystemPromptFile is set. Leave empty to use no system prompt.
Public propertyDescription Short description of what this agent can do.
Public propertyEffectiveSystemPrompt Returns the effective system prompt at runtime. Reads SystemPromptFile from Settings\AI\Prompts when set; otherwise returns DefaultSystemPrompt.
Public propertyGUID Unique identifier for this agent configuration.
Public propertyIsEnabled When false, this agent is excluded from all operations without being deleted.
Public propertyMaxTokens Maximum number of tokens to generate in a single reply. Set to 0 to use the provider's default (parameter is not sent).
Public propertyName Display name of this agent configuration.
Public propertyProviderGUID GUID of the AIProviderConfiguration to use.
Public propertySamplePromptsFile File name of a text file containing sample user prompts, relative to Settings\AI\Prompts\Samples. One prompt per line; blank lines and lines starting with # are ignored.
Public propertySkillGUIDs GUIDs of the AISkillConfiguration instances available to this agent. An empty list means no skills are available.
Public propertySystemPromptFile File name of a text file containing the system prompt, relative to Settings\AI\Prompts. When set, takes precedence over DefaultSystemPrompt.
Public propertyTemperature Sampling temperature (0.0 = deterministic, 1.0 = creative).
Public propertyToolGUIDs GUIDs of the AIToolConfiguration instances available to this agent. An empty list means no tools are available.
Public propertyTopP Nucleus sampling threshold (0.0–1.0). Use instead of Temperature.
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 methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetProvider Creates and returns the IAIProvider for this agent's provider configuration. Returns null when no matching provider configuration is found.
Public methodGetProviderConfiguration Resolves and returns the AIProviderConfiguration identified by ProviderGUID. Returns null when ProviderGUID is empty or no matching configuration is found.
Public methodGetSamplePrompts Reads and returns the list of sample user prompts from SamplePromptsFile. Returns an empty list when the file is not set or does not exist. Blank lines and lines starting with # are skipped.
Public methodGetSkillConfigurations Returns the list of enabled AISkillConfiguration instances available to this agent. When SkillGUIDs is empty, no skills are returned.
Public methodGetToolConfigurations Returns the list of enabled AIToolConfiguration instances available to this agent. When ToolGUIDs is empty, no tools are returned.
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
(Inherited from RootEditor)
Public fieldStatic memberFirstEnabledName Display name shown in the property-grid dropdown for an empty default agent, meaning the first enabled agent is used.
Top
See Also