Configuration for the GMIManager.
Configuration for the AgentOSOrchestrator.
Configuration for the PromptEngine.
Configuration for the ToolOrchestrator.
Configuration for the ToolPermissionManager.
Configuration for the ConversationManager.
Configuration for the StreamingManager.
Configuration for the AIModelProviderManager.
The default Persona ID to use if none is specified in an interaction.
An instance of the Prisma client for database interactions.
Optional when storageAdapter is provided:
storageAdapter is provided, Prisma is only used for server-side features (auth, subscriptions).storageAdapter is omitted, Prisma is required for all database operations.Client-side usage:
const storage = await createAgentOSStorage({ platform: 'web' });
await agentos.initialize({
storageAdapter: storage.getAdapter(),
prisma: mockPrisma, // Stub for compatibility (can be minimal mock)
// ...
});
An instance of the authentication service, conforming to IAuthService.
An instance of the subscription service, conforming to ISubscriptionService.
Optional guardrailOptional guardrail service implementation used for policy enforcement.
Optional extensionOptional map of secretId -> value for extension/tool credentials.
Optional utilityAIServiceOptional. An instance of a utility AI service. This service should conform to IUtilityAI for general utility tasks. If the PromptEngine is used and requires specific utility functions (like advanced summarization for prompt construction), this service must also fulfill the contract of IPromptEngineUtilityAI. It's recommended that the concrete class for this service implements both interfaces if needed.
Optional extensionOptional extension manifest describing packs to load.
Optional extensionDeclarative overrides applied after packs are loaded.
Optional registryOptional registry configuration for loading extensions and personas from custom sources. Allows self-hosted registries and custom git repositories.
registryConfig: {
registries: {
'extensions': {
type: 'github',
location: 'your-org/your-extensions',
branch: 'main',
},
'personas': {
type: 'github',
location: 'your-org/your-personas',
branch: 'main',
}
},
defaultRegistries: {
tool: 'extensions',
persona: 'personas',
}
}
Optional workflowOptional workflow engine configuration.
Optional workflowOptional workflow store implementation. Defaults to the in-memory store if omitted.
Optional languageOptional multilingual configuration enabling detection, negotiation, translation.
Optional personaOptional custom persona loader (useful for browser/local runtimes).
Optional storageOptional cross-platform storage adapter for client-side persistence. Enables fully offline AgentOS in browsers (IndexedDB), desktop (SQLite), mobile (Capacitor).
Platform Support:
Usage:
import { createAgentOSStorage } from '@framers/sql-storage-adapter/agentos';
const storage = await createAgentOSStorage({ platform: 'auto' });
await agentos.initialize({
storageAdapter: storage.getAdapter(),
// ... other config
});
Graceful Degradation:
AgentOSConfig
Description
Defines the comprehensive configuration structure required to initialize and operate the
AgentOSservice. This configuration object aggregates settings for all major sub-components and dependencies of the AgentOS platform.