@framers/agentos 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +98 -0
- package/README.md +576 -0
- package/dist/api/AgentOS.d.ts +451 -0
- package/dist/api/AgentOS.d.ts.map +1 -0
- package/dist/api/AgentOS.js +1157 -0
- package/dist/api/AgentOS.js.map +1 -0
- package/dist/api/AgentOSOrchestrator.d.ts +157 -0
- package/dist/api/AgentOSOrchestrator.d.ts.map +1 -0
- package/dist/api/AgentOSOrchestrator.js +679 -0
- package/dist/api/AgentOSOrchestrator.js.map +1 -0
- package/dist/api/interfaces/IAgentOS.d.ts +138 -0
- package/dist/api/interfaces/IAgentOS.d.ts.map +1 -0
- package/dist/api/interfaces/IAgentOS.js +11 -0
- package/dist/api/interfaces/IAgentOS.js.map +1 -0
- package/dist/api/interfaces/IUnifiedAgent.d.ts +126 -0
- package/dist/api/interfaces/IUnifiedAgent.d.ts.map +1 -0
- package/dist/api/interfaces/IUnifiedAgent.js +3 -0
- package/dist/api/interfaces/IUnifiedAgent.js.map +1 -0
- package/dist/api/types/AgentOSInput.d.ts +114 -0
- package/dist/api/types/AgentOSInput.d.ts.map +1 -0
- package/dist/api/types/AgentOSInput.js +13 -0
- package/dist/api/types/AgentOSInput.js.map +1 -0
- package/dist/api/types/AgentOSResponse.d.ts +170 -0
- package/dist/api/types/AgentOSResponse.d.ts.map +1 -0
- package/dist/api/types/AgentOSResponse.js +25 -0
- package/dist/api/types/AgentOSResponse.js.map +1 -0
- package/dist/cognitive_substrate/GMI.d.ts +148 -0
- package/dist/cognitive_substrate/GMI.d.ts.map +1 -0
- package/dist/cognitive_substrate/GMI.js +1003 -0
- package/dist/cognitive_substrate/GMI.js.map +1 -0
- package/dist/cognitive_substrate/GMIManager.d.ts +98 -0
- package/dist/cognitive_substrate/GMIManager.d.ts.map +1 -0
- package/dist/cognitive_substrate/GMIManager.js +517 -0
- package/dist/cognitive_substrate/GMIManager.js.map +1 -0
- package/dist/cognitive_substrate/IGMI.d.ts +469 -0
- package/dist/cognitive_substrate/IGMI.d.ts.map +1 -0
- package/dist/cognitive_substrate/IGMI.js +111 -0
- package/dist/cognitive_substrate/IGMI.js.map +1 -0
- package/dist/cognitive_substrate/memory/IWorkingMemory.d.ts +139 -0
- package/dist/cognitive_substrate/memory/IWorkingMemory.d.ts.map +1 -0
- package/dist/cognitive_substrate/memory/IWorkingMemory.js +14 -0
- package/dist/cognitive_substrate/memory/IWorkingMemory.js.map +1 -0
- package/dist/cognitive_substrate/memory/InMemoryWorkingMemory.d.ts +143 -0
- package/dist/cognitive_substrate/memory/InMemoryWorkingMemory.d.ts.map +1 -0
- package/dist/cognitive_substrate/memory/InMemoryWorkingMemory.js +186 -0
- package/dist/cognitive_substrate/memory/InMemoryWorkingMemory.js.map +1 -0
- package/dist/cognitive_substrate/persona_overlays/PersonaOverlayManager.d.ts +33 -0
- package/dist/cognitive_substrate/persona_overlays/PersonaOverlayManager.d.ts.map +1 -0
- package/dist/cognitive_substrate/persona_overlays/PersonaOverlayManager.js +138 -0
- package/dist/cognitive_substrate/persona_overlays/PersonaOverlayManager.js.map +1 -0
- package/dist/cognitive_substrate/persona_overlays/PersonaOverlayTypes.d.ts +32 -0
- package/dist/cognitive_substrate/persona_overlays/PersonaOverlayTypes.d.ts.map +1 -0
- package/dist/cognitive_substrate/persona_overlays/PersonaOverlayTypes.js +2 -0
- package/dist/cognitive_substrate/persona_overlays/PersonaOverlayTypes.js.map +1 -0
- package/dist/cognitive_substrate/personas/IPersonaDefinition.d.ts +336 -0
- package/dist/cognitive_substrate/personas/IPersonaDefinition.d.ts.map +1 -0
- package/dist/cognitive_substrate/personas/IPersonaDefinition.js +8 -0
- package/dist/cognitive_substrate/personas/IPersonaDefinition.js.map +1 -0
- package/dist/cognitive_substrate/personas/IPersonaLoader.d.ts +78 -0
- package/dist/cognitive_substrate/personas/IPersonaLoader.d.ts.map +1 -0
- package/dist/cognitive_substrate/personas/IPersonaLoader.js +9 -0
- package/dist/cognitive_substrate/personas/IPersonaLoader.js.map +1 -0
- package/dist/cognitive_substrate/personas/PersonaLoader.d.ts +60 -0
- package/dist/cognitive_substrate/personas/PersonaLoader.d.ts.map +1 -0
- package/dist/cognitive_substrate/personas/PersonaLoader.js +138 -0
- package/dist/cognitive_substrate/personas/PersonaLoader.js.map +1 -0
- package/dist/cognitive_substrate/personas/PersonaValidation.d.ts +139 -0
- package/dist/cognitive_substrate/personas/PersonaValidation.d.ts.map +1 -0
- package/dist/cognitive_substrate/personas/PersonaValidation.js +277 -0
- package/dist/cognitive_substrate/personas/PersonaValidation.js.map +1 -0
- package/dist/cognitive_substrate/personas/definitions/atlas_systems_architect.json +29 -0
- package/dist/cognitive_substrate/personas/definitions/default_assistant_persona.json +346 -0
- package/dist/cognitive_substrate/personas/definitions/default_free_assistant.json +13 -0
- package/dist/cognitive_substrate/personas/definitions/index.d.ts +14 -0
- package/dist/cognitive_substrate/personas/definitions/index.d.ts.map +1 -0
- package/dist/cognitive_substrate/personas/definitions/index.js +35 -0
- package/dist/cognitive_substrate/personas/definitions/index.js.map +1 -0
- package/dist/cognitive_substrate/personas/definitions/nerf_generalist.json +11 -0
- package/dist/cognitive_substrate/personas/definitions/v_researcher.json +11 -0
- package/dist/config/AgentOSConfig.d.ts +74 -0
- package/dist/config/AgentOSConfig.d.ts.map +1 -0
- package/dist/config/AgentOSConfig.js +399 -0
- package/dist/config/AgentOSConfig.js.map +1 -0
- package/dist/config/EmbeddingManagerConfiguration.d.ts +190 -0
- package/dist/config/EmbeddingManagerConfiguration.d.ts.map +1 -0
- package/dist/config/EmbeddingManagerConfiguration.js +16 -0
- package/dist/config/EmbeddingManagerConfiguration.js.map +1 -0
- package/dist/config/MemoryLifecycleManagerConfiguration.d.ts +165 -0
- package/dist/config/MemoryLifecycleManagerConfiguration.d.ts.map +1 -0
- package/dist/config/MemoryLifecycleManagerConfiguration.js +69 -0
- package/dist/config/MemoryLifecycleManagerConfiguration.js.map +1 -0
- package/dist/config/RetrievalAugmentorConfiguration.d.ts +98 -0
- package/dist/config/RetrievalAugmentorConfiguration.d.ts.map +1 -0
- package/dist/config/RetrievalAugmentorConfiguration.js +47 -0
- package/dist/config/RetrievalAugmentorConfiguration.js.map +1 -0
- package/dist/config/ToolOrchestratorConfig.d.ts +69 -0
- package/dist/config/ToolOrchestratorConfig.d.ts.map +1 -0
- package/dist/config/ToolOrchestratorConfig.js +11 -0
- package/dist/config/ToolOrchestratorConfig.js.map +1 -0
- package/dist/config/VectorStoreConfiguration.d.ts +223 -0
- package/dist/config/VectorStoreConfiguration.d.ts.map +1 -0
- package/dist/config/VectorStoreConfiguration.js +59 -0
- package/dist/config/VectorStoreConfiguration.js.map +1 -0
- package/dist/config/extension-secrets.json +38 -0
- package/dist/config/extensionSecrets.d.ts +13 -0
- package/dist/config/extensionSecrets.d.ts.map +1 -0
- package/dist/config/extensionSecrets.js +24 -0
- package/dist/config/extensionSecrets.js.map +1 -0
- package/dist/core/agency/AgencyMemoryManager.d.ts +300 -0
- package/dist/core/agency/AgencyMemoryManager.d.ts.map +1 -0
- package/dist/core/agency/AgencyMemoryManager.js +657 -0
- package/dist/core/agency/AgencyMemoryManager.js.map +1 -0
- package/dist/core/agency/AgencyRegistry.d.ts +100 -0
- package/dist/core/agency/AgencyRegistry.d.ts.map +1 -0
- package/dist/core/agency/AgencyRegistry.js +209 -0
- package/dist/core/agency/AgencyRegistry.js.map +1 -0
- package/dist/core/agency/AgencyTypes.d.ts +200 -0
- package/dist/core/agency/AgencyTypes.d.ts.map +1 -0
- package/dist/core/agency/AgencyTypes.js +7 -0
- package/dist/core/agency/AgencyTypes.js.map +1 -0
- package/dist/core/agency/AgentCommunicationBus.d.ts +150 -0
- package/dist/core/agency/AgentCommunicationBus.d.ts.map +1 -0
- package/dist/core/agency/AgentCommunicationBus.js +568 -0
- package/dist/core/agency/AgentCommunicationBus.js.map +1 -0
- package/dist/core/agency/IAgentCommunicationBus.d.ts +469 -0
- package/dist/core/agency/IAgentCommunicationBus.d.ts.map +1 -0
- package/dist/core/agency/IAgentCommunicationBus.js +40 -0
- package/dist/core/agency/IAgentCommunicationBus.js.map +1 -0
- package/dist/core/agency/index.d.ts +18 -0
- package/dist/core/agency/index.d.ts.map +1 -0
- package/dist/core/agency/index.js +18 -0
- package/dist/core/agency/index.js.map +1 -0
- package/dist/core/agents/AgentCore.d.ts +385 -0
- package/dist/core/agents/AgentCore.d.ts.map +1 -0
- package/dist/core/agents/AgentCore.js +527 -0
- package/dist/core/agents/AgentCore.js.map +1 -0
- package/dist/core/agents/AgentFactory.d.ts +123 -0
- package/dist/core/agents/AgentFactory.d.ts.map +1 -0
- package/dist/core/agents/AgentFactory.js +232 -0
- package/dist/core/agents/AgentFactory.js.map +1 -0
- package/dist/core/agents/AgentPoolAgent.d.ts +244 -0
- package/dist/core/agents/AgentPoolAgent.d.ts.map +1 -0
- package/dist/core/agents/AgentPoolAgent.js +697 -0
- package/dist/core/agents/AgentPoolAgent.js.map +1 -0
- package/dist/core/agents/AgentPoolConfig.d.ts +191 -0
- package/dist/core/agents/AgentPoolConfig.d.ts.map +1 -0
- package/dist/core/agents/AgentPoolConfig.js +58 -0
- package/dist/core/agents/AgentPoolConfig.js.map +1 -0
- package/dist/core/agents/IAgent.d.ts +226 -0
- package/dist/core/agents/IAgent.d.ts.map +1 -0
- package/dist/core/agents/IAgent.js +14 -0
- package/dist/core/agents/IAgent.js.map +1 -0
- package/dist/core/agents/IAgentFactory.d.ts +137 -0
- package/dist/core/agents/IAgentFactory.d.ts.map +1 -0
- package/dist/core/agents/IAgentFactory.js +13 -0
- package/dist/core/agents/IAgentFactory.js.map +1 -0
- package/dist/core/agents/tools/Tool.d.ts +17 -0
- package/dist/core/agents/tools/Tool.d.ts.map +1 -0
- package/dist/core/agents/tools/Tool.js +8 -0
- package/dist/core/agents/tools/Tool.js.map +1 -0
- package/dist/core/ai_utilities/HybridUtilityAI.d.ts +1 -0
- package/dist/core/ai_utilities/HybridUtilityAI.d.ts.map +1 -0
- package/dist/core/ai_utilities/HybridUtilityAI.js +2 -0
- package/dist/core/ai_utilities/HybridUtilityAI.js.map +1 -0
- package/dist/core/ai_utilities/IUtilityAI.d.ts +212 -0
- package/dist/core/ai_utilities/IUtilityAI.d.ts.map +1 -0
- package/dist/core/ai_utilities/IUtilityAI.js +11 -0
- package/dist/core/ai_utilities/IUtilityAI.js.map +1 -0
- package/dist/core/ai_utilities/LLMUtilityAI.d.ts +94 -0
- package/dist/core/ai_utilities/LLMUtilityAI.d.ts.map +1 -0
- package/dist/core/ai_utilities/LLMUtilityAI.js +434 -0
- package/dist/core/ai_utilities/LLMUtilityAI.js.map +1 -0
- package/dist/core/ai_utilities/StatisticalUtilityAI.d.ts +102 -0
- package/dist/core/ai_utilities/StatisticalUtilityAI.d.ts.map +1 -0
- package/dist/core/ai_utilities/StatisticalUtilityAI.js +617 -0
- package/dist/core/ai_utilities/StatisticalUtilityAI.js.map +1 -0
- package/dist/core/conversation/ConversationContext.d.ts +259 -0
- package/dist/core/conversation/ConversationContext.d.ts.map +1 -0
- package/dist/core/conversation/ConversationContext.js +450 -0
- package/dist/core/conversation/ConversationContext.js.map +1 -0
- package/dist/core/conversation/ConversationManager.d.ts +223 -0
- package/dist/core/conversation/ConversationManager.d.ts.map +1 -0
- package/dist/core/conversation/ConversationManager.js +558 -0
- package/dist/core/conversation/ConversationManager.js.map +1 -0
- package/dist/core/conversation/ConversationMessage.d.ts +184 -0
- package/dist/core/conversation/ConversationMessage.d.ts.map +1 -0
- package/dist/core/conversation/ConversationMessage.js +66 -0
- package/dist/core/conversation/ConversationMessage.js.map +1 -0
- package/dist/core/evaluation/Evaluator.d.ts +28 -0
- package/dist/core/evaluation/Evaluator.d.ts.map +1 -0
- package/dist/core/evaluation/Evaluator.js +490 -0
- package/dist/core/evaluation/Evaluator.js.map +1 -0
- package/dist/core/evaluation/IEvaluator.d.ts +309 -0
- package/dist/core/evaluation/IEvaluator.d.ts.map +1 -0
- package/dist/core/evaluation/IEvaluator.js +12 -0
- package/dist/core/evaluation/IEvaluator.js.map +1 -0
- package/dist/core/evaluation/LLMJudge.d.ts +105 -0
- package/dist/core/evaluation/LLMJudge.d.ts.map +1 -0
- package/dist/core/evaluation/LLMJudge.js +229 -0
- package/dist/core/evaluation/LLMJudge.js.map +1 -0
- package/dist/core/evaluation/index.d.ts +9 -0
- package/dist/core/evaluation/index.d.ts.map +1 -0
- package/dist/core/evaluation/index.js +9 -0
- package/dist/core/evaluation/index.js.map +1 -0
- package/dist/core/guardrails/IGuardrailService.d.ts +142 -0
- package/dist/core/guardrails/IGuardrailService.d.ts.map +1 -0
- package/dist/core/guardrails/IGuardrailService.js +24 -0
- package/dist/core/guardrails/IGuardrailService.js.map +1 -0
- package/dist/core/guardrails/guardrailDispatcher.d.ts +36 -0
- package/dist/core/guardrails/guardrailDispatcher.d.ts.map +1 -0
- package/dist/core/guardrails/guardrailDispatcher.js +240 -0
- package/dist/core/guardrails/guardrailDispatcher.js.map +1 -0
- package/dist/core/hitl/HumanInteractionManager.d.ts +146 -0
- package/dist/core/hitl/HumanInteractionManager.d.ts.map +1 -0
- package/dist/core/hitl/HumanInteractionManager.js +491 -0
- package/dist/core/hitl/HumanInteractionManager.js.map +1 -0
- package/dist/core/hitl/IHumanInteractionManager.d.ts +521 -0
- package/dist/core/hitl/IHumanInteractionManager.d.ts.map +1 -0
- package/dist/core/hitl/IHumanInteractionManager.js +33 -0
- package/dist/core/hitl/IHumanInteractionManager.js.map +1 -0
- package/dist/core/hitl/index.d.ts +17 -0
- package/dist/core/hitl/index.d.ts.map +1 -0
- package/dist/core/hitl/index.js +17 -0
- package/dist/core/hitl/index.js.map +1 -0
- package/dist/core/knowledge/IKnowledgeGraph.d.ts +351 -0
- package/dist/core/knowledge/IKnowledgeGraph.d.ts.map +1 -0
- package/dist/core/knowledge/IKnowledgeGraph.js +10 -0
- package/dist/core/knowledge/IKnowledgeGraph.js.map +1 -0
- package/dist/core/knowledge/KnowledgeGraph.d.ts +93 -0
- package/dist/core/knowledge/KnowledgeGraph.d.ts.map +1 -0
- package/dist/core/knowledge/KnowledgeGraph.js +601 -0
- package/dist/core/knowledge/KnowledgeGraph.js.map +1 -0
- package/dist/core/knowledge/index.d.ts +8 -0
- package/dist/core/knowledge/index.d.ts.map +1 -0
- package/dist/core/knowledge/index.js +8 -0
- package/dist/core/knowledge/index.js.map +1 -0
- package/dist/core/language/LanguageService.d.ts +77 -0
- package/dist/core/language/LanguageService.d.ts.map +1 -0
- package/dist/core/language/LanguageService.js +305 -0
- package/dist/core/language/LanguageService.js.map +1 -0
- package/dist/core/language/index.d.ts +6 -0
- package/dist/core/language/index.d.ts.map +1 -0
- package/dist/core/language/index.js +6 -0
- package/dist/core/language/index.js.map +1 -0
- package/dist/core/language/interfaces.d.ts +168 -0
- package/dist/core/language/interfaces.d.ts.map +1 -0
- package/dist/core/language/interfaces.js +37 -0
- package/dist/core/language/interfaces.js.map +1 -0
- package/dist/core/language/providers/DeepLTranslationProvider.d.ts +16 -0
- package/dist/core/language/providers/DeepLTranslationProvider.d.ts.map +1 -0
- package/dist/core/language/providers/DeepLTranslationProvider.js +28 -0
- package/dist/core/language/providers/DeepLTranslationProvider.js.map +1 -0
- package/dist/core/language/providers/OpenAITranslationProvider.d.ts +17 -0
- package/dist/core/language/providers/OpenAITranslationProvider.d.ts.map +1 -0
- package/dist/core/language/providers/OpenAITranslationProvider.js +34 -0
- package/dist/core/language/providers/OpenAITranslationProvider.js.map +1 -0
- package/dist/core/language/providers/WhisperDetectionProvider.d.ts +16 -0
- package/dist/core/language/providers/WhisperDetectionProvider.d.ts.map +1 -0
- package/dist/core/language/providers/WhisperDetectionProvider.js +15 -0
- package/dist/core/language/providers/WhisperDetectionProvider.js.map +1 -0
- package/dist/core/llm/IPromptEngine.d.ts +627 -0
- package/dist/core/llm/IPromptEngine.d.ts.map +1 -0
- package/dist/core/llm/IPromptEngine.js +81 -0
- package/dist/core/llm/IPromptEngine.js.map +1 -0
- package/dist/core/llm/PromptEngine.d.ts +108 -0
- package/dist/core/llm/PromptEngine.d.ts.map +1 -0
- package/dist/core/llm/PromptEngine.js +872 -0
- package/dist/core/llm/PromptEngine.js.map +1 -0
- package/dist/core/llm/providers/AIModelProviderManager.d.ts +74 -0
- package/dist/core/llm/providers/AIModelProviderManager.d.ts.map +1 -0
- package/dist/core/llm/providers/AIModelProviderManager.js +263 -0
- package/dist/core/llm/providers/AIModelProviderManager.js.map +1 -0
- package/dist/core/llm/providers/IProvider.d.ts +327 -0
- package/dist/core/llm/providers/IProvider.d.ts.map +1 -0
- package/dist/core/llm/providers/IProvider.js +39 -0
- package/dist/core/llm/providers/IProvider.js.map +1 -0
- package/dist/core/llm/providers/errors/OllamaProviderError.d.ts +36 -0
- package/dist/core/llm/providers/errors/OllamaProviderError.d.ts.map +1 -0
- package/dist/core/llm/providers/errors/OllamaProviderError.js +40 -0
- package/dist/core/llm/providers/errors/OllamaProviderError.js.map +1 -0
- package/dist/core/llm/providers/errors/OpenAIProviderError.d.ts +42 -0
- package/dist/core/llm/providers/errors/OpenAIProviderError.d.ts.map +1 -0
- package/dist/core/llm/providers/errors/OpenAIProviderError.js +44 -0
- package/dist/core/llm/providers/errors/OpenAIProviderError.js.map +1 -0
- package/dist/core/llm/providers/errors/OpenRouterProviderError.d.ts +39 -0
- package/dist/core/llm/providers/errors/OpenRouterProviderError.d.ts.map +1 -0
- package/dist/core/llm/providers/errors/OpenRouterProviderError.js +42 -0
- package/dist/core/llm/providers/errors/OpenRouterProviderError.js.map +1 -0
- package/dist/core/llm/providers/errors/ProviderError.d.ts +37 -0
- package/dist/core/llm/providers/errors/ProviderError.d.ts.map +1 -0
- package/dist/core/llm/providers/errors/ProviderError.js +36 -0
- package/dist/core/llm/providers/errors/ProviderError.js.map +1 -0
- package/dist/core/llm/providers/implementations/OllamaProvider.d.ts +80 -0
- package/dist/core/llm/providers/implementations/OllamaProvider.d.ts.map +1 -0
- package/dist/core/llm/providers/implementations/OllamaProvider.js +473 -0
- package/dist/core/llm/providers/implementations/OllamaProvider.js.map +1 -0
- package/dist/core/llm/providers/implementations/OpenAIProvider.d.ts +160 -0
- package/dist/core/llm/providers/implementations/OpenAIProvider.d.ts.map +1 -0
- package/dist/core/llm/providers/implementations/OpenAIProvider.js +672 -0
- package/dist/core/llm/providers/implementations/OpenAIProvider.js.map +1 -0
- package/dist/core/llm/providers/implementations/OpenRouterProvider.d.ts +51 -0
- package/dist/core/llm/providers/implementations/OpenRouterProvider.d.ts.map +1 -0
- package/dist/core/llm/providers/implementations/OpenRouterProvider.js +499 -0
- package/dist/core/llm/providers/implementations/OpenRouterProvider.js.map +1 -0
- package/dist/core/llm/routing/IModelRouter.d.ts +129 -0
- package/dist/core/llm/routing/IModelRouter.d.ts.map +1 -0
- package/dist/core/llm/routing/IModelRouter.js +14 -0
- package/dist/core/llm/routing/IModelRouter.js.map +1 -0
- package/dist/core/llm/routing/ModelRouter.d.ts +157 -0
- package/dist/core/llm/routing/ModelRouter.d.ts.map +1 -0
- package/dist/core/llm/routing/ModelRouter.js +190 -0
- package/dist/core/llm/routing/ModelRouter.js.map +1 -0
- package/dist/core/llm/streaming/StreamingBatcher.d.ts +54 -0
- package/dist/core/llm/streaming/StreamingBatcher.d.ts.map +1 -0
- package/dist/core/llm/streaming/StreamingBatcher.js +173 -0
- package/dist/core/llm/streaming/StreamingBatcher.js.map +1 -0
- package/dist/core/llm/streaming/StreamingReconstructor.d.ts +69 -0
- package/dist/core/llm/streaming/StreamingReconstructor.d.ts.map +1 -0
- package/dist/core/llm/streaming/StreamingReconstructor.js +102 -0
- package/dist/core/llm/streaming/StreamingReconstructor.js.map +1 -0
- package/dist/core/marketplace/IMarketplace.d.ts +500 -0
- package/dist/core/marketplace/IMarketplace.d.ts.map +1 -0
- package/dist/core/marketplace/IMarketplace.js +10 -0
- package/dist/core/marketplace/IMarketplace.js.map +1 -0
- package/dist/core/marketplace/Marketplace.d.ts +122 -0
- package/dist/core/marketplace/Marketplace.d.ts.map +1 -0
- package/dist/core/marketplace/Marketplace.js +591 -0
- package/dist/core/marketplace/Marketplace.js.map +1 -0
- package/dist/core/marketplace/index.d.ts +8 -0
- package/dist/core/marketplace/index.d.ts.map +1 -0
- package/dist/core/marketplace/index.js +8 -0
- package/dist/core/marketplace/index.js.map +1 -0
- package/dist/core/observability/ITracer.d.ts +317 -0
- package/dist/core/observability/ITracer.d.ts.map +1 -0
- package/dist/core/observability/ITracer.js +55 -0
- package/dist/core/observability/ITracer.js.map +1 -0
- package/dist/core/observability/Tracer.d.ts +76 -0
- package/dist/core/observability/Tracer.d.ts.map +1 -0
- package/dist/core/observability/Tracer.js +360 -0
- package/dist/core/observability/Tracer.js.map +1 -0
- package/dist/core/observability/index.d.ts +9 -0
- package/dist/core/observability/index.d.ts.map +1 -0
- package/dist/core/observability/index.js +8 -0
- package/dist/core/observability/index.js.map +1 -0
- package/dist/core/orchestration/AgentOrchestrator.d.ts +243 -0
- package/dist/core/orchestration/AgentOrchestrator.d.ts.map +1 -0
- package/dist/core/orchestration/AgentOrchestrator.js +648 -0
- package/dist/core/orchestration/AgentOrchestrator.js.map +1 -0
- package/dist/core/orchestration/IAgentOrchestrator.d.ts +44 -0
- package/dist/core/orchestration/IAgentOrchestrator.d.ts.map +1 -0
- package/dist/core/orchestration/IAgentOrchestrator.js +4 -0
- package/dist/core/orchestration/IAgentOrchestrator.js.map +1 -0
- package/dist/core/orchestration/helpers.d.ts +12 -0
- package/dist/core/orchestration/helpers.d.ts.map +1 -0
- package/dist/core/orchestration/helpers.js +36 -0
- package/dist/core/orchestration/helpers.js.map +1 -0
- package/dist/core/planning/IPlanningEngine.d.ts +524 -0
- package/dist/core/planning/IPlanningEngine.d.ts.map +1 -0
- package/dist/core/planning/IPlanningEngine.js +32 -0
- package/dist/core/planning/IPlanningEngine.js.map +1 -0
- package/dist/core/planning/PlanningEngine.d.ts +161 -0
- package/dist/core/planning/PlanningEngine.d.ts.map +1 -0
- package/dist/core/planning/PlanningEngine.js +783 -0
- package/dist/core/planning/PlanningEngine.js.map +1 -0
- package/dist/core/planning/index.d.ts +25 -0
- package/dist/core/planning/index.d.ts.map +1 -0
- package/dist/core/planning/index.js +25 -0
- package/dist/core/planning/index.js.map +1 -0
- package/dist/core/sandbox/CodeSandbox.d.ts +86 -0
- package/dist/core/sandbox/CodeSandbox.d.ts.map +1 -0
- package/dist/core/sandbox/CodeSandbox.js +475 -0
- package/dist/core/sandbox/CodeSandbox.js.map +1 -0
- package/dist/core/sandbox/ICodeSandbox.d.ts +249 -0
- package/dist/core/sandbox/ICodeSandbox.d.ts.map +1 -0
- package/dist/core/sandbox/ICodeSandbox.js +24 -0
- package/dist/core/sandbox/ICodeSandbox.js.map +1 -0
- package/dist/core/sandbox/index.d.ts +9 -0
- package/dist/core/sandbox/index.d.ts.map +1 -0
- package/dist/core/sandbox/index.js +8 -0
- package/dist/core/sandbox/index.js.map +1 -0
- package/dist/core/storage/IStorageAdapter.d.ts +483 -0
- package/dist/core/storage/IStorageAdapter.d.ts.map +1 -0
- package/dist/core/storage/IStorageAdapter.js +19 -0
- package/dist/core/storage/IStorageAdapter.js.map +1 -0
- package/dist/core/storage/InMemoryStorageAdapter.d.ts +192 -0
- package/dist/core/storage/InMemoryStorageAdapter.d.ts.map +1 -0
- package/dist/core/storage/InMemoryStorageAdapter.js +343 -0
- package/dist/core/storage/InMemoryStorageAdapter.js.map +1 -0
- package/dist/core/storage/SqlStorageAdapter.d.ts +262 -0
- package/dist/core/storage/SqlStorageAdapter.d.ts.map +1 -0
- package/dist/core/storage/SqlStorageAdapter.js +485 -0
- package/dist/core/storage/SqlStorageAdapter.js.map +1 -0
- package/dist/core/storage/index.d.ts +14 -0
- package/dist/core/storage/index.d.ts.map +1 -0
- package/dist/core/storage/index.js +14 -0
- package/dist/core/storage/index.js.map +1 -0
- package/dist/core/streaming/IStreamClient.d.ts +72 -0
- package/dist/core/streaming/IStreamClient.d.ts.map +1 -0
- package/dist/core/streaming/IStreamClient.js +12 -0
- package/dist/core/streaming/IStreamClient.js.map +1 -0
- package/dist/core/streaming/StreamingManager.d.ts +242 -0
- package/dist/core/streaming/StreamingManager.d.ts.map +1 -0
- package/dist/core/streaming/StreamingManager.js +282 -0
- package/dist/core/streaming/StreamingManager.js.map +1 -0
- package/dist/core/structured/IStructuredOutputManager.d.ts +701 -0
- package/dist/core/structured/IStructuredOutputManager.d.ts.map +1 -0
- package/dist/core/structured/IStructuredOutputManager.js +74 -0
- package/dist/core/structured/IStructuredOutputManager.js.map +1 -0
- package/dist/core/structured/StructuredOutputManager.d.ts +140 -0
- package/dist/core/structured/StructuredOutputManager.d.ts.map +1 -0
- package/dist/core/structured/StructuredOutputManager.js +1015 -0
- package/dist/core/structured/StructuredOutputManager.js.map +1 -0
- package/dist/core/structured/index.d.ts +34 -0
- package/dist/core/structured/index.d.ts.map +1 -0
- package/dist/core/structured/index.js +34 -0
- package/dist/core/structured/index.js.map +1 -0
- package/dist/core/tools/ITool.d.ts +228 -0
- package/dist/core/tools/ITool.d.ts.map +1 -0
- package/dist/core/tools/ITool.js +11 -0
- package/dist/core/tools/ITool.js.map +1 -0
- package/dist/core/tools/IToolOrchestrator.d.ts +131 -0
- package/dist/core/tools/IToolOrchestrator.d.ts.map +1 -0
- package/dist/core/tools/IToolOrchestrator.js +14 -0
- package/dist/core/tools/IToolOrchestrator.js.map +1 -0
- package/dist/core/tools/ToolExecutor.d.ts +143 -0
- package/dist/core/tools/ToolExecutor.d.ts.map +1 -0
- package/dist/core/tools/ToolExecutor.js +364 -0
- package/dist/core/tools/ToolExecutor.js.map +1 -0
- package/dist/core/tools/ToolOrchestrator.d.ts +142 -0
- package/dist/core/tools/ToolOrchestrator.d.ts.map +1 -0
- package/dist/core/tools/ToolOrchestrator.js +373 -0
- package/dist/core/tools/ToolOrchestrator.js.map +1 -0
- package/dist/core/tools/permissions/IToolPermissionManager.d.ts +195 -0
- package/dist/core/tools/permissions/IToolPermissionManager.d.ts.map +1 -0
- package/dist/core/tools/permissions/IToolPermissionManager.js +14 -0
- package/dist/core/tools/permissions/IToolPermissionManager.js.map +1 -0
- package/dist/core/tools/permissions/ToolPermissionManager.d.ts +203 -0
- package/dist/core/tools/permissions/ToolPermissionManager.d.ts.map +1 -0
- package/dist/core/tools/permissions/ToolPermissionManager.js +298 -0
- package/dist/core/tools/permissions/ToolPermissionManager.js.map +1 -0
- package/dist/core/ui/IUIComponent.d.ts +11 -0
- package/dist/core/ui/IUIComponent.d.ts.map +1 -0
- package/dist/core/ui/IUIComponent.js +2 -0
- package/dist/core/ui/IUIComponent.js.map +1 -0
- package/dist/core/usage/UsageLedger.d.ts +81 -0
- package/dist/core/usage/UsageLedger.d.ts.map +1 -0
- package/dist/core/usage/UsageLedger.js +135 -0
- package/dist/core/usage/UsageLedger.js.map +1 -0
- package/dist/core/workflows/IWorkflowEngine.d.ts +42 -0
- package/dist/core/workflows/IWorkflowEngine.d.ts.map +1 -0
- package/dist/core/workflows/IWorkflowEngine.js +2 -0
- package/dist/core/workflows/IWorkflowEngine.js.map +1 -0
- package/dist/core/workflows/WorkflowEngine.d.ts +28 -0
- package/dist/core/workflows/WorkflowEngine.d.ts.map +1 -0
- package/dist/core/workflows/WorkflowEngine.js +309 -0
- package/dist/core/workflows/WorkflowEngine.js.map +1 -0
- package/dist/core/workflows/WorkflowTypes.d.ts +180 -0
- package/dist/core/workflows/WorkflowTypes.d.ts.map +1 -0
- package/dist/core/workflows/WorkflowTypes.js +26 -0
- package/dist/core/workflows/WorkflowTypes.js.map +1 -0
- package/dist/core/workflows/runtime/WorkflowRuntime.d.ts +70 -0
- package/dist/core/workflows/runtime/WorkflowRuntime.d.ts.map +1 -0
- package/dist/core/workflows/runtime/WorkflowRuntime.js +566 -0
- package/dist/core/workflows/runtime/WorkflowRuntime.js.map +1 -0
- package/dist/core/workflows/storage/IWorkflowStore.d.ts +75 -0
- package/dist/core/workflows/storage/IWorkflowStore.d.ts.map +1 -0
- package/dist/core/workflows/storage/IWorkflowStore.js +2 -0
- package/dist/core/workflows/storage/IWorkflowStore.js.map +1 -0
- package/dist/core/workflows/storage/InMemoryWorkflowStore.d.ts +14 -0
- package/dist/core/workflows/storage/InMemoryWorkflowStore.d.ts.map +1 -0
- package/dist/core/workflows/storage/InMemoryWorkflowStore.js +130 -0
- package/dist/core/workflows/storage/InMemoryWorkflowStore.js.map +1 -0
- package/dist/extensions/ExtensionLoader.d.ts +119 -0
- package/dist/extensions/ExtensionLoader.d.ts.map +1 -0
- package/dist/extensions/ExtensionLoader.js +297 -0
- package/dist/extensions/ExtensionLoader.js.map +1 -0
- package/dist/extensions/ExtensionManager.d.ts +49 -0
- package/dist/extensions/ExtensionManager.d.ts.map +1 -0
- package/dist/extensions/ExtensionManager.js +197 -0
- package/dist/extensions/ExtensionManager.js.map +1 -0
- package/dist/extensions/ExtensionRegistry.d.ts +39 -0
- package/dist/extensions/ExtensionRegistry.d.ts.map +1 -0
- package/dist/extensions/ExtensionRegistry.js +103 -0
- package/dist/extensions/ExtensionRegistry.js.map +1 -0
- package/dist/extensions/MultiRegistryLoader.d.ts +61 -0
- package/dist/extensions/MultiRegistryLoader.d.ts.map +1 -0
- package/dist/extensions/MultiRegistryLoader.js +169 -0
- package/dist/extensions/MultiRegistryLoader.js.map +1 -0
- package/dist/extensions/RegistryConfig.d.ts +86 -0
- package/dist/extensions/RegistryConfig.d.ts.map +1 -0
- package/dist/extensions/RegistryConfig.js +99 -0
- package/dist/extensions/RegistryConfig.js.map +1 -0
- package/dist/extensions/events.d.ts +19 -0
- package/dist/extensions/events.d.ts.map +1 -0
- package/dist/extensions/events.js +2 -0
- package/dist/extensions/events.js.map +1 -0
- package/dist/extensions/index.d.ts +9 -0
- package/dist/extensions/index.d.ts.map +1 -0
- package/dist/extensions/index.js +9 -0
- package/dist/extensions/index.js.map +1 -0
- package/dist/extensions/manifest.d.ts +52 -0
- package/dist/extensions/manifest.d.ts.map +1 -0
- package/dist/extensions/manifest.js +2 -0
- package/dist/extensions/manifest.js.map +1 -0
- package/dist/extensions/types.d.ts +294 -0
- package/dist/extensions/types.d.ts.map +1 -0
- package/dist/extensions/types.js +12 -0
- package/dist/extensions/types.js.map +1 -0
- package/dist/index.d.ts +49 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +59 -0
- package/dist/index.js.map +1 -0
- package/dist/logging/ILogger.d.ts +8 -0
- package/dist/logging/ILogger.d.ts.map +1 -0
- package/dist/logging/ILogger.js +2 -0
- package/dist/logging/ILogger.js.map +1 -0
- package/dist/logging/PinoLogger.d.ts +12 -0
- package/dist/logging/PinoLogger.d.ts.map +1 -0
- package/dist/logging/PinoLogger.js +22 -0
- package/dist/logging/PinoLogger.js.map +1 -0
- package/dist/logging/loggerFactory.d.ts +6 -0
- package/dist/logging/loggerFactory.d.ts.map +1 -0
- package/dist/logging/loggerFactory.js +14 -0
- package/dist/logging/loggerFactory.js.map +1 -0
- package/dist/rag/EmbeddingManager.d.ts +81 -0
- package/dist/rag/EmbeddingManager.d.ts.map +1 -0
- package/dist/rag/EmbeddingManager.js +412 -0
- package/dist/rag/EmbeddingManager.js.map +1 -0
- package/dist/rag/IEmbeddingManager.d.ts +277 -0
- package/dist/rag/IEmbeddingManager.d.ts.map +1 -0
- package/dist/rag/IEmbeddingManager.js +19 -0
- package/dist/rag/IEmbeddingManager.js.map +1 -0
- package/dist/rag/IRetrievalAugmentor.d.ts +208 -0
- package/dist/rag/IRetrievalAugmentor.d.ts.map +1 -0
- package/dist/rag/IRetrievalAugmentor.js +21 -0
- package/dist/rag/IRetrievalAugmentor.js.map +1 -0
- package/dist/rag/IVectorStore.d.ts +351 -0
- package/dist/rag/IVectorStore.d.ts.map +1 -0
- package/dist/rag/IVectorStore.js +15 -0
- package/dist/rag/IVectorStore.js.map +1 -0
- package/dist/rag/IVectorStoreManager.d.ts +121 -0
- package/dist/rag/IVectorStoreManager.d.ts.map +1 -0
- package/dist/rag/IVectorStoreManager.js +13 -0
- package/dist/rag/IVectorStoreManager.js.map +1 -0
- package/dist/rag/RetrievalAugmentor.d.ts +99 -0
- package/dist/rag/RetrievalAugmentor.d.ts.map +1 -0
- package/dist/rag/RetrievalAugmentor.js +674 -0
- package/dist/rag/RetrievalAugmentor.js.map +1 -0
- package/dist/rag/VectorStoreManager.d.ts +90 -0
- package/dist/rag/VectorStoreManager.d.ts.map +1 -0
- package/dist/rag/VectorStoreManager.js +283 -0
- package/dist/rag/VectorStoreManager.js.map +1 -0
- package/dist/rag/implementations/index.d.ts +9 -0
- package/dist/rag/implementations/index.d.ts.map +1 -0
- package/dist/rag/implementations/index.js +9 -0
- package/dist/rag/implementations/index.js.map +1 -0
- package/dist/rag/implementations/vector_stores/InMemoryVectorStore.d.ts +132 -0
- package/dist/rag/implementations/vector_stores/InMemoryVectorStore.d.ts.map +1 -0
- package/dist/rag/implementations/vector_stores/InMemoryVectorStore.js +539 -0
- package/dist/rag/implementations/vector_stores/InMemoryVectorStore.js.map +1 -0
- package/dist/rag/implementations/vector_stores/SqlVectorStore.d.ts +265 -0
- package/dist/rag/implementations/vector_stores/SqlVectorStore.d.ts.map +1 -0
- package/dist/rag/implementations/vector_stores/SqlVectorStore.js +755 -0
- package/dist/rag/implementations/vector_stores/SqlVectorStore.js.map +1 -0
- package/dist/rag/implementations/vector_stores/index.d.ts +10 -0
- package/dist/rag/implementations/vector_stores/index.d.ts.map +1 -0
- package/dist/rag/implementations/vector_stores/index.js +12 -0
- package/dist/rag/implementations/vector_stores/index.js.map +1 -0
- package/dist/rag/index.d.ts +95 -0
- package/dist/rag/index.d.ts.map +1 -0
- package/dist/rag/index.js +97 -0
- package/dist/rag/index.js.map +1 -0
- package/dist/services/user_auth/AuthService.d.ts +13 -0
- package/dist/services/user_auth/AuthService.d.ts.map +1 -0
- package/dist/services/user_auth/AuthService.js +24 -0
- package/dist/services/user_auth/AuthService.js.map +1 -0
- package/dist/services/user_auth/SubscriptionService.d.ts +14 -0
- package/dist/services/user_auth/SubscriptionService.d.ts.map +1 -0
- package/dist/services/user_auth/SubscriptionService.js +34 -0
- package/dist/services/user_auth/SubscriptionService.js.map +1 -0
- package/dist/services/user_auth/types.d.ts +30 -0
- package/dist/services/user_auth/types.d.ts.map +1 -0
- package/dist/services/user_auth/types.js +2 -0
- package/dist/services/user_auth/types.js.map +1 -0
- package/dist/stubs/prismaClient.d.ts +35 -0
- package/dist/stubs/prismaClient.d.ts.map +1 -0
- package/dist/stubs/prismaClient.js +47 -0
- package/dist/stubs/prismaClient.js.map +1 -0
- package/dist/types/rateLimitTypes.d.ts +70 -0
- package/dist/types/rateLimitTypes.d.ts.map +1 -0
- package/dist/types/rateLimitTypes.js +55 -0
- package/dist/types/rateLimitTypes.js.map +1 -0
- package/dist/utils/errors.d.ts +80 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/errors.js +201 -0
- package/dist/utils/errors.js.map +1 -0
- package/dist/utils/uuid.d.ts +11 -0
- package/dist/utils/uuid.d.ts.map +1 -0
- package/dist/utils/uuid.js +64 -0
- package/dist/utils/uuid.js.map +1 -0
- package/package.json +84 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Defines configuration structures for the MemoryLifecycleManager.
|
|
3
|
+
* This includes defining individual lifecycle policies, their triggers, actions,
|
|
4
|
+
* and how they apply to different categories or data sources within the RAG system.
|
|
5
|
+
*
|
|
6
|
+
* These configurations guide the MemoryLifecycleManager in automatically managing
|
|
7
|
+
* the retention, eviction, or archival of stored information, potentially involving
|
|
8
|
+
* negotiation with GMI instances for critical data.
|
|
9
|
+
*
|
|
10
|
+
* @module backend/agentos/config/MemoryLifecycleManagerConfiguration
|
|
11
|
+
* @see ../memory_lifecycle/IMemoryLifecycleManager.ts
|
|
12
|
+
* @see ../rag/IRetrievalAugmentor.ts for RagMemoryCategory
|
|
13
|
+
* @see ../rag/IVectorStore.ts for MetadataFilter
|
|
14
|
+
*/
|
|
15
|
+
import { RagMemoryCategory } from '../rag/IRetrievalAugmentor';
|
|
16
|
+
import { MetadataFilter } from '../rag/IVectorStore';
|
|
17
|
+
import { LifecycleAction } from '../cognitive_substrate/IGMI';
|
|
18
|
+
/**
|
|
19
|
+
* Specifies the conditions under which a MemoryLifecyclePolicy is triggered.
|
|
20
|
+
*
|
|
21
|
+
* @interface PolicyTriggerCondition
|
|
22
|
+
* @property {'periodic' | 'on_storage_threshold' | 'on_item_age'} type - The type of trigger.
|
|
23
|
+
* - `periodic`: The policy check runs at regular intervals.
|
|
24
|
+
* - `on_storage_threshold`: Triggered when a data source or category exceeds a size/item count. (Requires monitoring)
|
|
25
|
+
* - `on_item_age`: Policy applies based on individual item age (implicitly handled by retentionDays).
|
|
26
|
+
* @property {string} [checkInterval] - For `periodic` trigger, the interval (e.g., "1h", "30m", "7d").
|
|
27
|
+
* This will be parsed into seconds or milliseconds by the manager.
|
|
28
|
+
* @property {number} [itemCountThreshold] - For `on_storage_threshold`, max number of items.
|
|
29
|
+
* @property {number} [sizeBytesThreshold] - For `on_storage_threshold`, max size in bytes.
|
|
30
|
+
*/
|
|
31
|
+
export interface PolicyTriggerCondition {
|
|
32
|
+
type: 'periodic' | 'on_storage_threshold' | 'on_item_age';
|
|
33
|
+
checkInterval?: string;
|
|
34
|
+
itemCountThreshold?: number;
|
|
35
|
+
sizeBytesThreshold?: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Defines the action to be taken when a policy's conditions are met.
|
|
39
|
+
*
|
|
40
|
+
* @interface PolicyAction
|
|
41
|
+
* @property {'delete' | 'archive' | 'summarize_and_delete' | 'summarize_and_archive' | 'notify_gmi_owner'} type - The lifecycle action.
|
|
42
|
+
* - `delete`: Permanently remove the item.
|
|
43
|
+
* - `archive`: Move the item to a designated archive location/store.
|
|
44
|
+
* - `summarize_and_delete`: Generate a summary (requires UtilityAI), store summary (optional), then delete original.
|
|
45
|
+
* - `summarize_and_archive`: Generate summary, store summary, then archive original.
|
|
46
|
+
* - `notify_gmi_owner`: Only notify the owning GMI about the item meeting criteria, letting GMI decide via other means.
|
|
47
|
+
* @property {string} [archiveTargetId] - Identifier for the archive storage (e.g., a different vector store collection ID or a cold storage path).
|
|
48
|
+
* @property {string} [summaryDataSourceId] - If summarizing, the data source ID where the summary should be stored.
|
|
49
|
+
* @property {boolean} [deleteOriginalAfterSummary=true] - If summarizing, whether to delete the original item.
|
|
50
|
+
*/
|
|
51
|
+
export interface PolicyAction {
|
|
52
|
+
type: 'delete' | 'archive' | 'summarize_and_delete' | 'summarize_and_archive' | 'notify_gmi_owner';
|
|
53
|
+
archiveTargetId?: string;
|
|
54
|
+
summaryDataSourceId?: string;
|
|
55
|
+
deleteOriginalAfterSummary?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Optional model override for summarisation flows. Falls back to
|
|
58
|
+
* `MemoryLifecycleManagerConfig.defaultSummarizationModelId` when omitted.
|
|
59
|
+
*/
|
|
60
|
+
llmModelForSummary?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Configuration for GMI negotiation during lifecycle events.
|
|
64
|
+
*
|
|
65
|
+
* @interface GMINegotiationConfig
|
|
66
|
+
* @property {boolean} enabled - Whether GMI negotiation is enabled for items matching this policy.
|
|
67
|
+
* If true, the owning GMI will be consulted before taking the lifecycle action.
|
|
68
|
+
* @property {number} [timeoutMs=30000] - Timeout in milliseconds for waiting for a GMI's response
|
|
69
|
+
* during negotiation.
|
|
70
|
+
* @property {LifecycleAction} [defaultActionOnTimeout='ALLOW_ACTION'] - The action to take if the GMI negotiation times out
|
|
71
|
+
* or if the GMI instance cannot be resolved or fails to respond.
|
|
72
|
+
* @property {string[]} [criticalMetadataFields] - List of metadata fields that, if present and matching certain criteria
|
|
73
|
+
* (not defined here, but could be used by GMI), might make an item critical.
|
|
74
|
+
*/
|
|
75
|
+
export interface GMINegotiationConfig {
|
|
76
|
+
enabled: boolean;
|
|
77
|
+
timeoutMs?: number;
|
|
78
|
+
defaultActionOnTimeout?: LifecycleAction;
|
|
79
|
+
criticalMetadataFields?: string[];
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Defines a single memory lifecycle policy.
|
|
83
|
+
*
|
|
84
|
+
* @interface MemoryLifecyclePolicy
|
|
85
|
+
* @property {string} policyId - A unique identifier for this policy (e.g., "user-notes-retention-90d").
|
|
86
|
+
* @property {string} [description] - A human-readable description of the policy's purpose.
|
|
87
|
+
* @property {boolean} [isEnabled=true] - Whether this policy is currently active.
|
|
88
|
+
* @property {object} appliesTo - Criteria defining which data items this policy applies to.
|
|
89
|
+
* @property {RagMemoryCategory[]} [appliesTo.categories] - Logical RAG memory categories.
|
|
90
|
+
* @property {string[]} [appliesTo.dataSourceIds] - Specific RAG Data Source IDs.
|
|
91
|
+
* @property {MetadataFilter} [appliesTo.metadataFilter] - Filter based on document metadata.
|
|
92
|
+
* Policy applies if an item matches ANY of the categories, dataSourceIds, OR the metadataFilter if specified.
|
|
93
|
+
* If multiple are specified, it's typically an OR unless an explicit AND structure is introduced.
|
|
94
|
+
* For simplicity, let's assume if multiple fields in `appliesTo` are set, an item must satisfy conditions from each set field (implicit AND).
|
|
95
|
+
* E.g., category 'X' AND dataSourceId 'Y'. Or, this needs a more complex structure like an array of condition groups.
|
|
96
|
+
* Let's refine: an item matches if it belongs to *any* of the specified categories (if categories are present)
|
|
97
|
+
* AND belongs to *any* of the specified dataSourceIds (if dataSourceIds are present)
|
|
98
|
+
* AND matches the metadataFilter (if metadataFilter is present).
|
|
99
|
+
* If a field (categories, dataSourceIds, metadataFilter) is omitted, it's not considered for matching for that field.
|
|
100
|
+
* @property {PolicyTriggerCondition} [trigger] - Conditions that trigger the policy check.
|
|
101
|
+
* If not provided, `retentionDays` might be the primary trigger.
|
|
102
|
+
* @property {PolicyAction} action - The action to take when the policy applies and conditions are met.
|
|
103
|
+
* @property {number} [retentionDays] - If positive, items older than this many days are subject to the policy's action.
|
|
104
|
+
* This is a primary condition for many policies. `0` or undefined might mean no age-based retention by this policy.
|
|
105
|
+
* @property {'lru' | 'lfu' | 'oldest_first' | 'lowest_importance' | 'custom'} [evictionStrategy] - Strategy for selecting items
|
|
106
|
+
* when a storage threshold is met. `custom` would require a pluggable component.
|
|
107
|
+
* `lowest_importance` implies items have an `importance` score in their metadata.
|
|
108
|
+
* @property {GMINegotiationConfig} [gmiNegotiation] - Configuration for how to negotiate with an owning GMI
|
|
109
|
+
* before applying the action.
|
|
110
|
+
* @property {number} [priority=0] - Execution priority of this policy (lower numbers run first if policies conflict or overlap).
|
|
111
|
+
*/
|
|
112
|
+
export interface MemoryLifecyclePolicy {
|
|
113
|
+
policyId: string;
|
|
114
|
+
description?: string;
|
|
115
|
+
isEnabled?: boolean;
|
|
116
|
+
appliesTo: {
|
|
117
|
+
categories?: RagMemoryCategory[];
|
|
118
|
+
dataSourceIds?: string[];
|
|
119
|
+
metadataFilter?: MetadataFilter;
|
|
120
|
+
gmiOwnerId?: string;
|
|
121
|
+
personaOwnerId?: string;
|
|
122
|
+
};
|
|
123
|
+
trigger?: PolicyTriggerCondition;
|
|
124
|
+
action: PolicyAction;
|
|
125
|
+
retentionDays?: number;
|
|
126
|
+
evictionStrategy?: 'lru' | 'lfu' | 'oldest_first' | 'lowest_importance' | 'custom';
|
|
127
|
+
gmiNegotiation?: GMINegotiationConfig;
|
|
128
|
+
priority?: number;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Top-level configuration for the MemoryLifecycleManager.
|
|
132
|
+
*
|
|
133
|
+
* @interface MemoryLifecycleManagerConfig
|
|
134
|
+
* @property {string} managerId - A unique identifier for this manager instance.
|
|
135
|
+
* @property {MemoryLifecyclePolicy[]} policies - An array of lifecycle policies to be enforced.
|
|
136
|
+
* @property {string} [defaultCheckInterval="PT6H"] - Default interval (ISO 8601 duration format, e.g., "PT6H" for 6 hours)
|
|
137
|
+
* for periodic policy checks if a policy itself doesn't define one.
|
|
138
|
+
* @property {number} [defaultGMINegotiationTimeoutMs=30000] - Global default timeout for GMI negotiations.
|
|
139
|
+
* @property {string} [defaultArchiveStoreId] - Default target ID for 'archive' actions if not specified in the policy.
|
|
140
|
+
* This could be a specific RAG data source ID configured for archival.
|
|
141
|
+
* @property {boolean} [dryRunMode=false] - If true, the manager will log actions it would take but not actually
|
|
142
|
+
* execute them (e.g., no actual deletions or archival). Useful for testing policies.
|
|
143
|
+
* @property {number} [maxConcurrentOperations=5] - Maximum number of concurrent lifecycle operations (e.g., item deletions).
|
|
144
|
+
* @property {string} [gmiOwnerIdMetadataField="gmiOwnerId"] - The metadata field name in vector documents
|
|
145
|
+
* that stores the ID of the owning GMI.
|
|
146
|
+
* @property {string} [personaOwnerIdMetadataField="personaOwnerId"] - The metadata field name for the owning Persona.
|
|
147
|
+
* @property {string} [itemTimestampMetadataField="creationTimestamp"] - The metadata field used to determine item age for retention.
|
|
148
|
+
* Should store an ISO 8601 date string.
|
|
149
|
+
*/
|
|
150
|
+
export interface MemoryLifecycleManagerConfig {
|
|
151
|
+
managerId: string;
|
|
152
|
+
policies: MemoryLifecyclePolicy[];
|
|
153
|
+
defaultCheckInterval?: string;
|
|
154
|
+
defaultGMINegotiationTimeoutMs?: number;
|
|
155
|
+
defaultArchiveStoreId?: string;
|
|
156
|
+
defaultSummarizationModelId?: string;
|
|
157
|
+
dryRunMode?: boolean;
|
|
158
|
+
maxConcurrentOperations?: number;
|
|
159
|
+
gmiOwnerIdMetadataField?: string;
|
|
160
|
+
personaOwnerIdMetadataField?: string;
|
|
161
|
+
itemTimestampMetadataField?: string;
|
|
162
|
+
/** Default retention days when no specific policy applies */
|
|
163
|
+
defaultRetentionDays?: number;
|
|
164
|
+
}
|
|
165
|
+
//# sourceMappingURL=MemoryLifecycleManagerConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MemoryLifecycleManagerConfiguration.d.ts","sourceRoot":"","sources":["../../src/config/MemoryLifecycleManagerConfiguration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,UAAU,GAAG,sBAAsB,GAAG,aAAa,CAAC;IAC1D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,sBAAsB,GAAG,uBAAuB,GAAG,kBAAkB,CAAC;IACnG,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sBAAsB,CAAC,EAAE,eAAe,CAAC;IACzC,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;CACnC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE;QACT,UAAU,CAAC,EAAE,iBAAiB,EAAE,CAAC;QACjC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;QACzB,cAAc,CAAC,EAAE,cAAc,CAAC;QAChC,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,MAAM,EAAE,YAAY,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,cAAc,GAAG,mBAAmB,GAAG,QAAQ,CAAC;IACnF,cAAc,CAAC,EAAE,oBAAoB,CAAC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,4BAA4B;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,qBAAqB,EAAE,CAAC;IAClC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,8BAA8B,CAAC,EAAE,MAAM,CAAC;IACxC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,6DAA6D;IAC7D,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Defines configuration structures for the MemoryLifecycleManager.
|
|
3
|
+
* This includes defining individual lifecycle policies, their triggers, actions,
|
|
4
|
+
* and how they apply to different categories or data sources within the RAG system.
|
|
5
|
+
*
|
|
6
|
+
* These configurations guide the MemoryLifecycleManager in automatically managing
|
|
7
|
+
* the retention, eviction, or archival of stored information, potentially involving
|
|
8
|
+
* negotiation with GMI instances for critical data.
|
|
9
|
+
*
|
|
10
|
+
* @module backend/agentos/config/MemoryLifecycleManagerConfiguration
|
|
11
|
+
* @see ../memory_lifecycle/IMemoryLifecycleManager.ts
|
|
12
|
+
* @see ../rag/IRetrievalAugmentor.ts for RagMemoryCategory
|
|
13
|
+
* @see ../rag/IVectorStore.ts for MetadataFilter
|
|
14
|
+
*/
|
|
15
|
+
export {};
|
|
16
|
+
// Example Configuration:
|
|
17
|
+
/*
|
|
18
|
+
const exampleMLMConfig: MemoryLifecycleManagerConfig = {
|
|
19
|
+
managerId: "mlm-main-01",
|
|
20
|
+
defaultCheckInterval: "PT1H", // Check hourly by default
|
|
21
|
+
defaultGMINegotiationTimeoutMs: 20000,
|
|
22
|
+
dryRunMode: false,
|
|
23
|
+
gmiOwnerIdMetadataField: "gmiInstanceId", // Field in RAG metadata
|
|
24
|
+
itemTimestampMetadataField: "doc_creation_date", // Field in RAG metadata
|
|
25
|
+
policies: [
|
|
26
|
+
{
|
|
27
|
+
policyId: "delete-old-episodic-logs",
|
|
28
|
+
description: "Delete episodic context logs older than 7 days.",
|
|
29
|
+
isEnabled: true,
|
|
30
|
+
appliesTo: {
|
|
31
|
+
categories: [RagMemoryCategory.EPISODIC_CONTEXT],
|
|
32
|
+
},
|
|
33
|
+
retentionDays: 7,
|
|
34
|
+
action: { type: 'delete' },
|
|
35
|
+
gmiNegotiation: { enabled: false }, // No negotiation for simple logs
|
|
36
|
+
priority: 10,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
policyId: "archive-user-memory-over-1yr",
|
|
40
|
+
description: "Archive user explicit memory older than 1 year, with GMI negotiation.",
|
|
41
|
+
isEnabled: true,
|
|
42
|
+
appliesTo: {
|
|
43
|
+
categories: [RagMemoryCategory.USER_EXPLICIT_MEMORY],
|
|
44
|
+
},
|
|
45
|
+
retentionDays: 365,
|
|
46
|
+
action: { type: 'archive', archiveTargetId: 'cold-storage-user-memory' },
|
|
47
|
+
gmiNegotiation: { enabled: true, timeoutMs: 60000, defaultActionOnTimeout: 'ARCHIVE' },
|
|
48
|
+
priority: 50,
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
policyId: "summarize-gmi-experience",
|
|
52
|
+
description: "Summarize and delete very old GMI personal experiences (older than 180 days).",
|
|
53
|
+
isEnabled: true,
|
|
54
|
+
appliesTo: {
|
|
55
|
+
categories: [RagMemoryCategory.PERSONAL_LLM_EXPERIENCE],
|
|
56
|
+
},
|
|
57
|
+
retentionDays: 180,
|
|
58
|
+
action: {
|
|
59
|
+
type: 'summarize_and_delete',
|
|
60
|
+
summaryDataSourceId: 'gmi_experience_summaries', // Store summary in a different RAG source
|
|
61
|
+
deleteOriginalAfterSummary: true,
|
|
62
|
+
},
|
|
63
|
+
gmiNegotiation: { enabled: true, defaultActionOnTimeout: 'SUMMARIZE_AND_DELETE' },
|
|
64
|
+
priority: 30,
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
};
|
|
68
|
+
*/
|
|
69
|
+
//# sourceMappingURL=MemoryLifecycleManagerConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MemoryLifecycleManagerConfiguration.js","sourceRoot":"","sources":["../../src/config/MemoryLifecycleManagerConfiguration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;;AA8JH,yBAAyB;AACzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDE"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Defines configuration structures for the RetrievalAugmentor.
|
|
3
|
+
* This includes how different RAG memory categories are handled, default
|
|
4
|
+
* behaviors for ingestion and retrieval, and other operational parameters for
|
|
5
|
+
* the core RAG orchestration service.
|
|
6
|
+
*
|
|
7
|
+
* The configurations here rely on data contract types (like options and results
|
|
8
|
+
* for retrieval/ingestion) defined in `../rag/IRetrievalAugmentor.ts`.
|
|
9
|
+
*
|
|
10
|
+
* @module backend/agentos/config/RetrievalAugmentorConfiguration
|
|
11
|
+
* @see ../rag/IRetrievalAugmentor.ts for operational data contracts.
|
|
12
|
+
* @see ../rag/RetrievalAugmentor.ts for the concrete implementation using this config.
|
|
13
|
+
*/
|
|
14
|
+
import { RagMemoryCategory, RagRetrievalOptions, // Assuming this is defined in IRetrievalAugmentor.ts
|
|
15
|
+
RagIngestionOptions } from '../rag/IRetrievalAugmentor';
|
|
16
|
+
/**
|
|
17
|
+
* Defines default behaviors and mappings for different RAG memory categories.
|
|
18
|
+
* Each memory category can be configured to use specific data collections,
|
|
19
|
+
* default operational parameters, and retention policies.
|
|
20
|
+
*
|
|
21
|
+
* @interface RagCategoryBehavior
|
|
22
|
+
* @property {RagMemoryCategory} category - The logical memory category (e.g., 'user_explicit_memory').
|
|
23
|
+
* @property {string[]} targetDataSourceIds - The actual data source ID(s) (collections/indexes
|
|
24
|
+
* in a vector store) that this logical category maps to. A category can map to multiple physical data sources.
|
|
25
|
+
* @property {Partial<RagRetrievalOptions>} [defaultRetrievalOptions] - Default retrieval options specific to this category,
|
|
26
|
+
* overriding global defaults. These are partial because they only override specified fields.
|
|
27
|
+
* @property {Partial<RagIngestionOptions>} [defaultIngestionOptions] - Default ingestion options specific to this category,
|
|
28
|
+
* overriding global defaults.
|
|
29
|
+
* @property {string} [defaultEmbeddingModelId] - Default embedding model ID for this category, overriding
|
|
30
|
+
* the EmbeddingManager's default or the RetrievalAugmentor's default query model.
|
|
31
|
+
* @property {number} [retentionDays] - Optional: How long to retain items in this category in days.
|
|
32
|
+
* A value of 0 or undefined might imply indefinite retention or reliance on underlying store policies.
|
|
33
|
+
* @property {boolean} [isUserSpecific] - True if data in this category is typically tied to a `userId` and
|
|
34
|
+
* should be filtered accordingly during retrieval by default.
|
|
35
|
+
* @property {boolean} [isPersonaSpecific] - True if data in this category is typically tied to a specific
|
|
36
|
+
* `personaId` and might require persona-based access or filtering.
|
|
37
|
+
* @property {number} [queryPriority=0] - Priority for querying this category when multiple categories are searched.
|
|
38
|
+
* Higher values indicate higher priority. This can influence result merging or ordering.
|
|
39
|
+
* @property {Record<string, any>} [customMetadata] - Any other custom metadata or flags associated with this category's behavior.
|
|
40
|
+
*/
|
|
41
|
+
export interface RagCategoryBehavior {
|
|
42
|
+
category: RagMemoryCategory;
|
|
43
|
+
targetDataSourceIds: string[];
|
|
44
|
+
defaultRetrievalOptions?: Partial<RagRetrievalOptions>;
|
|
45
|
+
defaultIngestionOptions?: Partial<RagIngestionOptions>;
|
|
46
|
+
defaultEmbeddingModelId?: string;
|
|
47
|
+
retentionDays?: number;
|
|
48
|
+
isUserSpecific?: boolean;
|
|
49
|
+
isPersonaSpecific?: boolean;
|
|
50
|
+
queryPriority?: number;
|
|
51
|
+
customMetadata?: Record<string, any>;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Configuration for the RetrievalAugmentor service itself.
|
|
55
|
+
* This structure is typically loaded at application startup to initialize the
|
|
56
|
+
* RetrievalAugmentor instance.
|
|
57
|
+
*
|
|
58
|
+
* @interface RetrievalAugmentorServiceConfig
|
|
59
|
+
* @property {string} [defaultQueryEmbeddingModelId] - Optional: An embedding model ID that overrides the
|
|
60
|
+
* EmbeddingManager's default, specifically for generating query embeddings within the RetrievalAugmentor.
|
|
61
|
+
* If not set, the EmbeddingManager's default will be used.
|
|
62
|
+
* @property {string} [defaultEmbeddingModelId] - Optional: default embedding model for document ingestion when
|
|
63
|
+
* individual requests or categories do not override it.
|
|
64
|
+
* @property {string} [defaultDataSourceId] - Optional: fallback data source / collection for ingestion + retrieval.
|
|
65
|
+
* @property {RagIngestionOptions['chunkingStrategy']} [defaultChunkingStrategy] - Optional fallback chunking strategy.
|
|
66
|
+
* @property {Partial<RagRetrievalOptions>} [globalDefaultRetrievalOptions] - Global default retrieval options that apply if
|
|
67
|
+
* no category-specific or request-specific options are provided.
|
|
68
|
+
* @property {Partial<RagIngestionOptions>} [globalDefaultIngestionOptions] - Global default ingestion options.
|
|
69
|
+
* @property {RagCategoryBehavior[]} categoryBehaviors - An array defining the behavior and mapping for each
|
|
70
|
+
* supported RAG memory category. This is a core part of the configuration, dictating how different
|
|
71
|
+
* types of information are handled.
|
|
72
|
+
* @property {number} [maxCharsForAugmentedPrompt=4000] - The maximum number of characters to include in the
|
|
73
|
+
* `augmentedPromptText` generated by `retrieveContext`. This helps in managing token limits for LLMs.
|
|
74
|
+
* @property {string} [contextJoinSeparator="\n\n---\n\n"] - The separator string used when joining multiple
|
|
75
|
+
* retrieved context snippets into the single `augmentedPromptText`.
|
|
76
|
+
* @property {boolean} [enableExperimentalFeatures=false] - A flag to enable or disable experimental RAG features,
|
|
77
|
+
* allowing for controlled rollout and testing.
|
|
78
|
+
* @property {object} [performanceTuning] - Optional advanced settings for performance tuning.
|
|
79
|
+
* @property {number} [performanceTuning.maxConcurrentQueries] - Max concurrent queries to vector stores.
|
|
80
|
+
* @property {number} [performanceTuning.queryTimeoutMs] - Default timeout for RAG queries.
|
|
81
|
+
*/
|
|
82
|
+
export interface RetrievalAugmentorServiceConfig {
|
|
83
|
+
defaultQueryEmbeddingModelId?: string;
|
|
84
|
+
defaultEmbeddingModelId?: string;
|
|
85
|
+
defaultDataSourceId?: string;
|
|
86
|
+
defaultChunkingStrategy?: RagIngestionOptions['chunkingStrategy'];
|
|
87
|
+
globalDefaultRetrievalOptions?: Partial<RagRetrievalOptions>;
|
|
88
|
+
globalDefaultIngestionOptions?: Partial<RagIngestionOptions>;
|
|
89
|
+
categoryBehaviors: RagCategoryBehavior[];
|
|
90
|
+
maxCharsForAugmentedPrompt?: number;
|
|
91
|
+
contextJoinSeparator?: string;
|
|
92
|
+
enableExperimentalFeatures?: boolean;
|
|
93
|
+
performanceTuning?: {
|
|
94
|
+
maxConcurrentQueries?: number;
|
|
95
|
+
queryTimeoutMs?: number;
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=RetrievalAugmentorConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RetrievalAugmentorConfiguration.d.ts","sourceRoot":"","sources":["../../src/config/RetrievalAugmentorConfiguration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EAAE,qDAAqD;AAC1E,mBAAmB,EACpB,MAAM,4BAA4B,CAAC;AAEpC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,uBAAuB,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACvD,uBAAuB,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACvD,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACtC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,WAAW,+BAA+B;IAC9C,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,uBAAuB,CAAC,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;IAClE,6BAA6B,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC7D,6BAA6B,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC7D,iBAAiB,EAAE,mBAAmB,EAAE,CAAC;IACzC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,iBAAiB,CAAC,EAAE;QAClB,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;CACH"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Defines configuration structures for the RetrievalAugmentor.
|
|
3
|
+
* This includes how different RAG memory categories are handled, default
|
|
4
|
+
* behaviors for ingestion and retrieval, and other operational parameters for
|
|
5
|
+
* the core RAG orchestration service.
|
|
6
|
+
*
|
|
7
|
+
* The configurations here rely on data contract types (like options and results
|
|
8
|
+
* for retrieval/ingestion) defined in `../rag/IRetrievalAugmentor.ts`.
|
|
9
|
+
*
|
|
10
|
+
* @module backend/agentos/config/RetrievalAugmentorConfiguration
|
|
11
|
+
* @see ../rag/IRetrievalAugmentor.ts for operational data contracts.
|
|
12
|
+
* @see ../rag/RetrievalAugmentor.ts for the concrete implementation using this config.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
15
|
+
// Example of how categoryBehaviors might be configured:
|
|
16
|
+
/*
|
|
17
|
+
const exampleRetrievalAugmentorServiceConfig: RetrievalAugmentorServiceConfig = {
|
|
18
|
+
categoryBehaviors: [
|
|
19
|
+
{
|
|
20
|
+
category: RagMemoryCategory.SHARED_KNOWLEDGE_BASE,
|
|
21
|
+
targetDataSourceIds: ['global_wiki_main', 'global_faq_secondary'],
|
|
22
|
+
defaultRetrievalOptions: { topK: 5, strategyParams: { mmrLambda: 0.7 } },
|
|
23
|
+
defaultIngestionOptions: { chunkingStrategy: { type: 'recursive_character', chunkSize: 1000, chunkOverlap: 100 } },
|
|
24
|
+
queryPriority: 10,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
category: RagMemoryCategory.USER_EXPLICIT_MEMORY,
|
|
28
|
+
targetDataSourceIds: ['user_private_notes_vector_store'],
|
|
29
|
+
isUserSpecific: true,
|
|
30
|
+
defaultRetrievalOptions: { topK: 3 },
|
|
31
|
+
queryPriority: 100, // High priority for personal user memory
|
|
32
|
+
retentionDays: 365, // User notes kept for a year by default
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
category: RagMemoryCategory.PERSONAL_LLM_EXPERIENCE,
|
|
36
|
+
targetDataSourceIds: ['gmi_self_learnings_collection'],
|
|
37
|
+
isPersonaSpecific: true, // Or combination of user & persona
|
|
38
|
+
defaultRetrievalOptions: { topK: 2, strategyParams: { mmrLambda: 0.5 } },
|
|
39
|
+
queryPriority: 50,
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
globalDefaultRetrievalOptions: { topK: 3, strategy: 'similarity' },
|
|
43
|
+
maxCharsForAugmentedPrompt: 3000,
|
|
44
|
+
contextJoinSeparator: "\n\n[SOURCE]\n",
|
|
45
|
+
};
|
|
46
|
+
*/
|
|
47
|
+
//# sourceMappingURL=RetrievalAugmentorConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RetrievalAugmentorConfiguration.js","sourceRoot":"","sources":["../../src/config/RetrievalAugmentorConfiguration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;;AA4FH,wDAAwD;AACxD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BE"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Defines the configuration interface for the ToolOrchestrator.
|
|
3
|
+
* This configuration allows customization of various aspects of tool management,
|
|
4
|
+
* execution, and registry behavior within AgentOS, providing flexibility and control
|
|
5
|
+
* over the tool ecosystem.
|
|
6
|
+
*
|
|
7
|
+
* @module backend/agentos/config/ToolOrchestratorConfig
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @interface ToolRegistrySettings
|
|
11
|
+
* @description Defines settings specific to the tool registry behavior within the ToolOrchestrator.
|
|
12
|
+
* These settings control how tools are managed, whether they can be added dynamically,
|
|
13
|
+
* and conceptual aspects of persistence.
|
|
14
|
+
*
|
|
15
|
+
* @property {boolean} [allowDynamicRegistration=true] - If true (default), tools can be registered or
|
|
16
|
+
* unregistered with the orchestrator after its initial initialization. If false, the set of
|
|
17
|
+
* available tools is fixed once the orchestrator is initialized.
|
|
18
|
+
* @property {boolean} [persistRegistry=false] - If true (default: false), this conceptually indicates that the tool
|
|
19
|
+
* registry's state (e.g., list of dynamically registered tools, their versions) should be persisted
|
|
20
|
+
* to a durable store (e.g., database, configuration file). The actual persistence mechanism
|
|
21
|
+
* would be implemented within the ToolOrchestrator or a dedicated registry service.
|
|
22
|
+
* (Note: The current ToolOrchestrator uses an in-memory map).
|
|
23
|
+
* @property {string} [persistencePath] - Optional. If `persistRegistry` is true, this string could specify
|
|
24
|
+
* the path, URI, or identifier for the persisted storage location or configuration. (Conceptual).
|
|
25
|
+
*/
|
|
26
|
+
export interface ToolRegistrySettings {
|
|
27
|
+
allowDynamicRegistration?: boolean;
|
|
28
|
+
persistRegistry?: boolean;
|
|
29
|
+
persistencePath?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @interface ToolOrchestratorConfig
|
|
33
|
+
* @description Configuration options for the ToolOrchestrator.
|
|
34
|
+
* This interface allows for fine-tuning its operational parameters, default behaviors,
|
|
35
|
+
* logging levels, and integration points with other system components.
|
|
36
|
+
*
|
|
37
|
+
* @property {string} [orchestratorId] - An optional unique identifier for this ToolOrchestrator instance.
|
|
38
|
+
* If not provided, one may be generated automatically (e.g., by the orchestrator's constructor).
|
|
39
|
+
* This ID is useful for logging, debugging, and potentially for managing multiple orchestrator instances
|
|
40
|
+
* in more complex or distributed setups.
|
|
41
|
+
* @property {number} [defaultToolCallTimeoutMs=30000] - Default timeout in milliseconds (default: 30 seconds)
|
|
42
|
+
* for a tool execution if the tool itself does not specify a more granular timeout or if the `ToolExecutor`
|
|
43
|
+
* needs a fallback. (Note: Actual timeout enforcement is typically handled by the `ToolExecutor` or the tool implementation).
|
|
44
|
+
* @property {number} [maxConcurrentToolCalls=10] - Maximum number of tool calls that the orchestrator, or more likely
|
|
45
|
+
* the underlying `ToolExecutor`, will attempt to process concurrently. This helps in managing system resources
|
|
46
|
+
* and preventing overload from too many simultaneous tool executions. (Conceptual for orchestrator, executor enforces).
|
|
47
|
+
* @property {boolean} [logToolCalls=true] - If true (default), detailed information about tool calls (including requests,
|
|
48
|
+
* arguments, results, and any errors) will be logged by the orchestrator. This is highly beneficial for
|
|
49
|
+
* debugging, auditing tool usage, and monitoring system behavior.
|
|
50
|
+
* @property {string[]} [globalDisabledTools] - An array of tool names (`ITool.name`) or tool IDs (`ITool.id`)
|
|
51
|
+
* that are globally disabled. These tools will not be registered or, if already present, will not be
|
|
52
|
+
* executed, irrespective of other permission settings. This provides a system-wide mechanism to quickly
|
|
53
|
+
* disable problematic or deprecated tools.
|
|
54
|
+
* @property {ToolRegistrySettings} [toolRegistrySettings] - Configuration settings that specifically govern
|
|
55
|
+
* the behavior of the internal tool registry, such as dynamic registration allowance.
|
|
56
|
+
* @property {Record<string, any>} [customParameters] - A flexible object to accommodate any other custom
|
|
57
|
+
* parameters or settings that specific `ToolOrchestrator` implementations or extensions might require.
|
|
58
|
+
* This allows for extensibility without modifying the core interface.
|
|
59
|
+
*/
|
|
60
|
+
export interface ToolOrchestratorConfig {
|
|
61
|
+
orchestratorId?: string;
|
|
62
|
+
defaultToolCallTimeoutMs?: number;
|
|
63
|
+
maxConcurrentToolCalls?: number;
|
|
64
|
+
logToolCalls?: boolean;
|
|
65
|
+
globalDisabledTools?: string[];
|
|
66
|
+
toolRegistrySettings?: ToolRegistrySettings;
|
|
67
|
+
customParameters?: Record<string, any>;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=ToolOrchestratorConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolOrchestratorConfig.d.ts","sourceRoot":"","sources":["../../src/config/ToolOrchestratorConfig.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,oBAAoB;IACnC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,WAAW,sBAAsB;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACxC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// File: backend/agentos/config/ToolOrchestratorConfig.ts
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview Defines the configuration interface for the ToolOrchestrator.
|
|
4
|
+
* This configuration allows customization of various aspects of tool management,
|
|
5
|
+
* execution, and registry behavior within AgentOS, providing flexibility and control
|
|
6
|
+
* over the tool ecosystem.
|
|
7
|
+
*
|
|
8
|
+
* @module backend/agentos/config/ToolOrchestratorConfig
|
|
9
|
+
*/
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=ToolOrchestratorConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolOrchestratorConfig.js","sourceRoot":"","sources":["../../src/config/ToolOrchestratorConfig.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD;;;;;;;GAOG"}
|