Click or drag to resize

Seal.AI Namespace

 
Classes
 ClassDescription
Public classAIAgent Stateful AI agent that owns a conversation history and delegates to an IAIProvider for all model calls. Initialise once per session or per conversation; call Chat(String, ICancelOperation, ReportExecutionLog, ReportExecutionLog, Int32, ActionString) for each user turn.
Public classAIAgentConfiguration Configuration for an AI agent: ties together one provider, an optional subset of tools, and a default system prompt. Stored in AIAgents.
Public classAIProvider Base class for AI chat providers: holds the common connection and generation parameters and the factory methods to create a provider from a configuration.
Public classAIProviderConfiguration Configuration of an AI provider (type, model, endpoint, API key, token costs) defined in the server AI Configuration.
Public classAIServerConfiguration Dedicated configuration for AI Providers, Tools and Agents. Serialized to Settings\AI\AIConfiguration.xml in the repository.
Public classAISkillConfiguration Configuration for a single AI skill: a packaged set of instructions (loaded on demand) plus an optional set of tools that become available once the skill is loaded. Stored in AISkills and edited through the Server Manager.
Public classAITool Describes a tool (function) that an AI provider can invoke.
Public classAIToolCall Represents a single tool-call request returned by the AI.
Public classAIToolConfiguration Configuration for a single AI tool (function) available to AI providers. Stored in AITools and edited through the Server Manager.
Public classAIUsage Token and call usage of AI model invocations. Providers publish the usage of their last API call (LastUsage, one call); AIAgent accumulates it per chat exchange (LastChatUsage) and for the whole conversation (TotalUsage).
Public classAnthropicProvider AI provider implementation for the Anthropic Messages REST API (Claude models), with automatic retry on rate limit (429) and overload (529) responses.
Public classAzureProvider AI provider implementation for Azure OpenAI, using the Azure OpenAI SDK client with the model name as the deployment.
Public classOllamaProvider AI provider implementation for an Ollama server (local models) using its /api/chat REST API.
Public classOpenAIProvider AI provider implementation for the OpenAI Chat Completions REST API.
Interfaces
 InterfaceDescription
Public interfaceIAIProvider Interface implemented by all AI chat providers (OpenAI, Azure OpenAI, Anthropic, Ollama) used by the AI Agents feature.
Public interfaceICancelOperation Provides a simple cancellation flag that can be checked during long-running operations such as an AI agent chat loop.
Enumerations
 EnumerationDescription
Public enumerationProviderType Types of AI providers supported.