@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.
Files changed (601) hide show
  1. package/LICENSE +98 -0
  2. package/README.md +576 -0
  3. package/dist/api/AgentOS.d.ts +451 -0
  4. package/dist/api/AgentOS.d.ts.map +1 -0
  5. package/dist/api/AgentOS.js +1157 -0
  6. package/dist/api/AgentOS.js.map +1 -0
  7. package/dist/api/AgentOSOrchestrator.d.ts +157 -0
  8. package/dist/api/AgentOSOrchestrator.d.ts.map +1 -0
  9. package/dist/api/AgentOSOrchestrator.js +679 -0
  10. package/dist/api/AgentOSOrchestrator.js.map +1 -0
  11. package/dist/api/interfaces/IAgentOS.d.ts +138 -0
  12. package/dist/api/interfaces/IAgentOS.d.ts.map +1 -0
  13. package/dist/api/interfaces/IAgentOS.js +11 -0
  14. package/dist/api/interfaces/IAgentOS.js.map +1 -0
  15. package/dist/api/interfaces/IUnifiedAgent.d.ts +126 -0
  16. package/dist/api/interfaces/IUnifiedAgent.d.ts.map +1 -0
  17. package/dist/api/interfaces/IUnifiedAgent.js +3 -0
  18. package/dist/api/interfaces/IUnifiedAgent.js.map +1 -0
  19. package/dist/api/types/AgentOSInput.d.ts +114 -0
  20. package/dist/api/types/AgentOSInput.d.ts.map +1 -0
  21. package/dist/api/types/AgentOSInput.js +13 -0
  22. package/dist/api/types/AgentOSInput.js.map +1 -0
  23. package/dist/api/types/AgentOSResponse.d.ts +170 -0
  24. package/dist/api/types/AgentOSResponse.d.ts.map +1 -0
  25. package/dist/api/types/AgentOSResponse.js +25 -0
  26. package/dist/api/types/AgentOSResponse.js.map +1 -0
  27. package/dist/cognitive_substrate/GMI.d.ts +148 -0
  28. package/dist/cognitive_substrate/GMI.d.ts.map +1 -0
  29. package/dist/cognitive_substrate/GMI.js +1003 -0
  30. package/dist/cognitive_substrate/GMI.js.map +1 -0
  31. package/dist/cognitive_substrate/GMIManager.d.ts +98 -0
  32. package/dist/cognitive_substrate/GMIManager.d.ts.map +1 -0
  33. package/dist/cognitive_substrate/GMIManager.js +517 -0
  34. package/dist/cognitive_substrate/GMIManager.js.map +1 -0
  35. package/dist/cognitive_substrate/IGMI.d.ts +469 -0
  36. package/dist/cognitive_substrate/IGMI.d.ts.map +1 -0
  37. package/dist/cognitive_substrate/IGMI.js +111 -0
  38. package/dist/cognitive_substrate/IGMI.js.map +1 -0
  39. package/dist/cognitive_substrate/memory/IWorkingMemory.d.ts +139 -0
  40. package/dist/cognitive_substrate/memory/IWorkingMemory.d.ts.map +1 -0
  41. package/dist/cognitive_substrate/memory/IWorkingMemory.js +14 -0
  42. package/dist/cognitive_substrate/memory/IWorkingMemory.js.map +1 -0
  43. package/dist/cognitive_substrate/memory/InMemoryWorkingMemory.d.ts +143 -0
  44. package/dist/cognitive_substrate/memory/InMemoryWorkingMemory.d.ts.map +1 -0
  45. package/dist/cognitive_substrate/memory/InMemoryWorkingMemory.js +186 -0
  46. package/dist/cognitive_substrate/memory/InMemoryWorkingMemory.js.map +1 -0
  47. package/dist/cognitive_substrate/persona_overlays/PersonaOverlayManager.d.ts +33 -0
  48. package/dist/cognitive_substrate/persona_overlays/PersonaOverlayManager.d.ts.map +1 -0
  49. package/dist/cognitive_substrate/persona_overlays/PersonaOverlayManager.js +138 -0
  50. package/dist/cognitive_substrate/persona_overlays/PersonaOverlayManager.js.map +1 -0
  51. package/dist/cognitive_substrate/persona_overlays/PersonaOverlayTypes.d.ts +32 -0
  52. package/dist/cognitive_substrate/persona_overlays/PersonaOverlayTypes.d.ts.map +1 -0
  53. package/dist/cognitive_substrate/persona_overlays/PersonaOverlayTypes.js +2 -0
  54. package/dist/cognitive_substrate/persona_overlays/PersonaOverlayTypes.js.map +1 -0
  55. package/dist/cognitive_substrate/personas/IPersonaDefinition.d.ts +336 -0
  56. package/dist/cognitive_substrate/personas/IPersonaDefinition.d.ts.map +1 -0
  57. package/dist/cognitive_substrate/personas/IPersonaDefinition.js +8 -0
  58. package/dist/cognitive_substrate/personas/IPersonaDefinition.js.map +1 -0
  59. package/dist/cognitive_substrate/personas/IPersonaLoader.d.ts +78 -0
  60. package/dist/cognitive_substrate/personas/IPersonaLoader.d.ts.map +1 -0
  61. package/dist/cognitive_substrate/personas/IPersonaLoader.js +9 -0
  62. package/dist/cognitive_substrate/personas/IPersonaLoader.js.map +1 -0
  63. package/dist/cognitive_substrate/personas/PersonaLoader.d.ts +60 -0
  64. package/dist/cognitive_substrate/personas/PersonaLoader.d.ts.map +1 -0
  65. package/dist/cognitive_substrate/personas/PersonaLoader.js +138 -0
  66. package/dist/cognitive_substrate/personas/PersonaLoader.js.map +1 -0
  67. package/dist/cognitive_substrate/personas/PersonaValidation.d.ts +139 -0
  68. package/dist/cognitive_substrate/personas/PersonaValidation.d.ts.map +1 -0
  69. package/dist/cognitive_substrate/personas/PersonaValidation.js +277 -0
  70. package/dist/cognitive_substrate/personas/PersonaValidation.js.map +1 -0
  71. package/dist/cognitive_substrate/personas/definitions/atlas_systems_architect.json +29 -0
  72. package/dist/cognitive_substrate/personas/definitions/default_assistant_persona.json +346 -0
  73. package/dist/cognitive_substrate/personas/definitions/default_free_assistant.json +13 -0
  74. package/dist/cognitive_substrate/personas/definitions/index.d.ts +14 -0
  75. package/dist/cognitive_substrate/personas/definitions/index.d.ts.map +1 -0
  76. package/dist/cognitive_substrate/personas/definitions/index.js +35 -0
  77. package/dist/cognitive_substrate/personas/definitions/index.js.map +1 -0
  78. package/dist/cognitive_substrate/personas/definitions/nerf_generalist.json +11 -0
  79. package/dist/cognitive_substrate/personas/definitions/v_researcher.json +11 -0
  80. package/dist/config/AgentOSConfig.d.ts +74 -0
  81. package/dist/config/AgentOSConfig.d.ts.map +1 -0
  82. package/dist/config/AgentOSConfig.js +399 -0
  83. package/dist/config/AgentOSConfig.js.map +1 -0
  84. package/dist/config/EmbeddingManagerConfiguration.d.ts +190 -0
  85. package/dist/config/EmbeddingManagerConfiguration.d.ts.map +1 -0
  86. package/dist/config/EmbeddingManagerConfiguration.js +16 -0
  87. package/dist/config/EmbeddingManagerConfiguration.js.map +1 -0
  88. package/dist/config/MemoryLifecycleManagerConfiguration.d.ts +165 -0
  89. package/dist/config/MemoryLifecycleManagerConfiguration.d.ts.map +1 -0
  90. package/dist/config/MemoryLifecycleManagerConfiguration.js +69 -0
  91. package/dist/config/MemoryLifecycleManagerConfiguration.js.map +1 -0
  92. package/dist/config/RetrievalAugmentorConfiguration.d.ts +98 -0
  93. package/dist/config/RetrievalAugmentorConfiguration.d.ts.map +1 -0
  94. package/dist/config/RetrievalAugmentorConfiguration.js +47 -0
  95. package/dist/config/RetrievalAugmentorConfiguration.js.map +1 -0
  96. package/dist/config/ToolOrchestratorConfig.d.ts +69 -0
  97. package/dist/config/ToolOrchestratorConfig.d.ts.map +1 -0
  98. package/dist/config/ToolOrchestratorConfig.js +11 -0
  99. package/dist/config/ToolOrchestratorConfig.js.map +1 -0
  100. package/dist/config/VectorStoreConfiguration.d.ts +223 -0
  101. package/dist/config/VectorStoreConfiguration.d.ts.map +1 -0
  102. package/dist/config/VectorStoreConfiguration.js +59 -0
  103. package/dist/config/VectorStoreConfiguration.js.map +1 -0
  104. package/dist/config/extension-secrets.json +38 -0
  105. package/dist/config/extensionSecrets.d.ts +13 -0
  106. package/dist/config/extensionSecrets.d.ts.map +1 -0
  107. package/dist/config/extensionSecrets.js +24 -0
  108. package/dist/config/extensionSecrets.js.map +1 -0
  109. package/dist/core/agency/AgencyMemoryManager.d.ts +300 -0
  110. package/dist/core/agency/AgencyMemoryManager.d.ts.map +1 -0
  111. package/dist/core/agency/AgencyMemoryManager.js +657 -0
  112. package/dist/core/agency/AgencyMemoryManager.js.map +1 -0
  113. package/dist/core/agency/AgencyRegistry.d.ts +100 -0
  114. package/dist/core/agency/AgencyRegistry.d.ts.map +1 -0
  115. package/dist/core/agency/AgencyRegistry.js +209 -0
  116. package/dist/core/agency/AgencyRegistry.js.map +1 -0
  117. package/dist/core/agency/AgencyTypes.d.ts +200 -0
  118. package/dist/core/agency/AgencyTypes.d.ts.map +1 -0
  119. package/dist/core/agency/AgencyTypes.js +7 -0
  120. package/dist/core/agency/AgencyTypes.js.map +1 -0
  121. package/dist/core/agency/AgentCommunicationBus.d.ts +150 -0
  122. package/dist/core/agency/AgentCommunicationBus.d.ts.map +1 -0
  123. package/dist/core/agency/AgentCommunicationBus.js +568 -0
  124. package/dist/core/agency/AgentCommunicationBus.js.map +1 -0
  125. package/dist/core/agency/IAgentCommunicationBus.d.ts +469 -0
  126. package/dist/core/agency/IAgentCommunicationBus.d.ts.map +1 -0
  127. package/dist/core/agency/IAgentCommunicationBus.js +40 -0
  128. package/dist/core/agency/IAgentCommunicationBus.js.map +1 -0
  129. package/dist/core/agency/index.d.ts +18 -0
  130. package/dist/core/agency/index.d.ts.map +1 -0
  131. package/dist/core/agency/index.js +18 -0
  132. package/dist/core/agency/index.js.map +1 -0
  133. package/dist/core/agents/AgentCore.d.ts +385 -0
  134. package/dist/core/agents/AgentCore.d.ts.map +1 -0
  135. package/dist/core/agents/AgentCore.js +527 -0
  136. package/dist/core/agents/AgentCore.js.map +1 -0
  137. package/dist/core/agents/AgentFactory.d.ts +123 -0
  138. package/dist/core/agents/AgentFactory.d.ts.map +1 -0
  139. package/dist/core/agents/AgentFactory.js +232 -0
  140. package/dist/core/agents/AgentFactory.js.map +1 -0
  141. package/dist/core/agents/AgentPoolAgent.d.ts +244 -0
  142. package/dist/core/agents/AgentPoolAgent.d.ts.map +1 -0
  143. package/dist/core/agents/AgentPoolAgent.js +697 -0
  144. package/dist/core/agents/AgentPoolAgent.js.map +1 -0
  145. package/dist/core/agents/AgentPoolConfig.d.ts +191 -0
  146. package/dist/core/agents/AgentPoolConfig.d.ts.map +1 -0
  147. package/dist/core/agents/AgentPoolConfig.js +58 -0
  148. package/dist/core/agents/AgentPoolConfig.js.map +1 -0
  149. package/dist/core/agents/IAgent.d.ts +226 -0
  150. package/dist/core/agents/IAgent.d.ts.map +1 -0
  151. package/dist/core/agents/IAgent.js +14 -0
  152. package/dist/core/agents/IAgent.js.map +1 -0
  153. package/dist/core/agents/IAgentFactory.d.ts +137 -0
  154. package/dist/core/agents/IAgentFactory.d.ts.map +1 -0
  155. package/dist/core/agents/IAgentFactory.js +13 -0
  156. package/dist/core/agents/IAgentFactory.js.map +1 -0
  157. package/dist/core/agents/tools/Tool.d.ts +17 -0
  158. package/dist/core/agents/tools/Tool.d.ts.map +1 -0
  159. package/dist/core/agents/tools/Tool.js +8 -0
  160. package/dist/core/agents/tools/Tool.js.map +1 -0
  161. package/dist/core/ai_utilities/HybridUtilityAI.d.ts +1 -0
  162. package/dist/core/ai_utilities/HybridUtilityAI.d.ts.map +1 -0
  163. package/dist/core/ai_utilities/HybridUtilityAI.js +2 -0
  164. package/dist/core/ai_utilities/HybridUtilityAI.js.map +1 -0
  165. package/dist/core/ai_utilities/IUtilityAI.d.ts +212 -0
  166. package/dist/core/ai_utilities/IUtilityAI.d.ts.map +1 -0
  167. package/dist/core/ai_utilities/IUtilityAI.js +11 -0
  168. package/dist/core/ai_utilities/IUtilityAI.js.map +1 -0
  169. package/dist/core/ai_utilities/LLMUtilityAI.d.ts +94 -0
  170. package/dist/core/ai_utilities/LLMUtilityAI.d.ts.map +1 -0
  171. package/dist/core/ai_utilities/LLMUtilityAI.js +434 -0
  172. package/dist/core/ai_utilities/LLMUtilityAI.js.map +1 -0
  173. package/dist/core/ai_utilities/StatisticalUtilityAI.d.ts +102 -0
  174. package/dist/core/ai_utilities/StatisticalUtilityAI.d.ts.map +1 -0
  175. package/dist/core/ai_utilities/StatisticalUtilityAI.js +617 -0
  176. package/dist/core/ai_utilities/StatisticalUtilityAI.js.map +1 -0
  177. package/dist/core/conversation/ConversationContext.d.ts +259 -0
  178. package/dist/core/conversation/ConversationContext.d.ts.map +1 -0
  179. package/dist/core/conversation/ConversationContext.js +450 -0
  180. package/dist/core/conversation/ConversationContext.js.map +1 -0
  181. package/dist/core/conversation/ConversationManager.d.ts +223 -0
  182. package/dist/core/conversation/ConversationManager.d.ts.map +1 -0
  183. package/dist/core/conversation/ConversationManager.js +558 -0
  184. package/dist/core/conversation/ConversationManager.js.map +1 -0
  185. package/dist/core/conversation/ConversationMessage.d.ts +184 -0
  186. package/dist/core/conversation/ConversationMessage.d.ts.map +1 -0
  187. package/dist/core/conversation/ConversationMessage.js +66 -0
  188. package/dist/core/conversation/ConversationMessage.js.map +1 -0
  189. package/dist/core/evaluation/Evaluator.d.ts +28 -0
  190. package/dist/core/evaluation/Evaluator.d.ts.map +1 -0
  191. package/dist/core/evaluation/Evaluator.js +490 -0
  192. package/dist/core/evaluation/Evaluator.js.map +1 -0
  193. package/dist/core/evaluation/IEvaluator.d.ts +309 -0
  194. package/dist/core/evaluation/IEvaluator.d.ts.map +1 -0
  195. package/dist/core/evaluation/IEvaluator.js +12 -0
  196. package/dist/core/evaluation/IEvaluator.js.map +1 -0
  197. package/dist/core/evaluation/LLMJudge.d.ts +105 -0
  198. package/dist/core/evaluation/LLMJudge.d.ts.map +1 -0
  199. package/dist/core/evaluation/LLMJudge.js +229 -0
  200. package/dist/core/evaluation/LLMJudge.js.map +1 -0
  201. package/dist/core/evaluation/index.d.ts +9 -0
  202. package/dist/core/evaluation/index.d.ts.map +1 -0
  203. package/dist/core/evaluation/index.js +9 -0
  204. package/dist/core/evaluation/index.js.map +1 -0
  205. package/dist/core/guardrails/IGuardrailService.d.ts +142 -0
  206. package/dist/core/guardrails/IGuardrailService.d.ts.map +1 -0
  207. package/dist/core/guardrails/IGuardrailService.js +24 -0
  208. package/dist/core/guardrails/IGuardrailService.js.map +1 -0
  209. package/dist/core/guardrails/guardrailDispatcher.d.ts +36 -0
  210. package/dist/core/guardrails/guardrailDispatcher.d.ts.map +1 -0
  211. package/dist/core/guardrails/guardrailDispatcher.js +240 -0
  212. package/dist/core/guardrails/guardrailDispatcher.js.map +1 -0
  213. package/dist/core/hitl/HumanInteractionManager.d.ts +146 -0
  214. package/dist/core/hitl/HumanInteractionManager.d.ts.map +1 -0
  215. package/dist/core/hitl/HumanInteractionManager.js +491 -0
  216. package/dist/core/hitl/HumanInteractionManager.js.map +1 -0
  217. package/dist/core/hitl/IHumanInteractionManager.d.ts +521 -0
  218. package/dist/core/hitl/IHumanInteractionManager.d.ts.map +1 -0
  219. package/dist/core/hitl/IHumanInteractionManager.js +33 -0
  220. package/dist/core/hitl/IHumanInteractionManager.js.map +1 -0
  221. package/dist/core/hitl/index.d.ts +17 -0
  222. package/dist/core/hitl/index.d.ts.map +1 -0
  223. package/dist/core/hitl/index.js +17 -0
  224. package/dist/core/hitl/index.js.map +1 -0
  225. package/dist/core/knowledge/IKnowledgeGraph.d.ts +351 -0
  226. package/dist/core/knowledge/IKnowledgeGraph.d.ts.map +1 -0
  227. package/dist/core/knowledge/IKnowledgeGraph.js +10 -0
  228. package/dist/core/knowledge/IKnowledgeGraph.js.map +1 -0
  229. package/dist/core/knowledge/KnowledgeGraph.d.ts +93 -0
  230. package/dist/core/knowledge/KnowledgeGraph.d.ts.map +1 -0
  231. package/dist/core/knowledge/KnowledgeGraph.js +601 -0
  232. package/dist/core/knowledge/KnowledgeGraph.js.map +1 -0
  233. package/dist/core/knowledge/index.d.ts +8 -0
  234. package/dist/core/knowledge/index.d.ts.map +1 -0
  235. package/dist/core/knowledge/index.js +8 -0
  236. package/dist/core/knowledge/index.js.map +1 -0
  237. package/dist/core/language/LanguageService.d.ts +77 -0
  238. package/dist/core/language/LanguageService.d.ts.map +1 -0
  239. package/dist/core/language/LanguageService.js +305 -0
  240. package/dist/core/language/LanguageService.js.map +1 -0
  241. package/dist/core/language/index.d.ts +6 -0
  242. package/dist/core/language/index.d.ts.map +1 -0
  243. package/dist/core/language/index.js +6 -0
  244. package/dist/core/language/index.js.map +1 -0
  245. package/dist/core/language/interfaces.d.ts +168 -0
  246. package/dist/core/language/interfaces.d.ts.map +1 -0
  247. package/dist/core/language/interfaces.js +37 -0
  248. package/dist/core/language/interfaces.js.map +1 -0
  249. package/dist/core/language/providers/DeepLTranslationProvider.d.ts +16 -0
  250. package/dist/core/language/providers/DeepLTranslationProvider.d.ts.map +1 -0
  251. package/dist/core/language/providers/DeepLTranslationProvider.js +28 -0
  252. package/dist/core/language/providers/DeepLTranslationProvider.js.map +1 -0
  253. package/dist/core/language/providers/OpenAITranslationProvider.d.ts +17 -0
  254. package/dist/core/language/providers/OpenAITranslationProvider.d.ts.map +1 -0
  255. package/dist/core/language/providers/OpenAITranslationProvider.js +34 -0
  256. package/dist/core/language/providers/OpenAITranslationProvider.js.map +1 -0
  257. package/dist/core/language/providers/WhisperDetectionProvider.d.ts +16 -0
  258. package/dist/core/language/providers/WhisperDetectionProvider.d.ts.map +1 -0
  259. package/dist/core/language/providers/WhisperDetectionProvider.js +15 -0
  260. package/dist/core/language/providers/WhisperDetectionProvider.js.map +1 -0
  261. package/dist/core/llm/IPromptEngine.d.ts +627 -0
  262. package/dist/core/llm/IPromptEngine.d.ts.map +1 -0
  263. package/dist/core/llm/IPromptEngine.js +81 -0
  264. package/dist/core/llm/IPromptEngine.js.map +1 -0
  265. package/dist/core/llm/PromptEngine.d.ts +108 -0
  266. package/dist/core/llm/PromptEngine.d.ts.map +1 -0
  267. package/dist/core/llm/PromptEngine.js +872 -0
  268. package/dist/core/llm/PromptEngine.js.map +1 -0
  269. package/dist/core/llm/providers/AIModelProviderManager.d.ts +74 -0
  270. package/dist/core/llm/providers/AIModelProviderManager.d.ts.map +1 -0
  271. package/dist/core/llm/providers/AIModelProviderManager.js +263 -0
  272. package/dist/core/llm/providers/AIModelProviderManager.js.map +1 -0
  273. package/dist/core/llm/providers/IProvider.d.ts +327 -0
  274. package/dist/core/llm/providers/IProvider.d.ts.map +1 -0
  275. package/dist/core/llm/providers/IProvider.js +39 -0
  276. package/dist/core/llm/providers/IProvider.js.map +1 -0
  277. package/dist/core/llm/providers/errors/OllamaProviderError.d.ts +36 -0
  278. package/dist/core/llm/providers/errors/OllamaProviderError.d.ts.map +1 -0
  279. package/dist/core/llm/providers/errors/OllamaProviderError.js +40 -0
  280. package/dist/core/llm/providers/errors/OllamaProviderError.js.map +1 -0
  281. package/dist/core/llm/providers/errors/OpenAIProviderError.d.ts +42 -0
  282. package/dist/core/llm/providers/errors/OpenAIProviderError.d.ts.map +1 -0
  283. package/dist/core/llm/providers/errors/OpenAIProviderError.js +44 -0
  284. package/dist/core/llm/providers/errors/OpenAIProviderError.js.map +1 -0
  285. package/dist/core/llm/providers/errors/OpenRouterProviderError.d.ts +39 -0
  286. package/dist/core/llm/providers/errors/OpenRouterProviderError.d.ts.map +1 -0
  287. package/dist/core/llm/providers/errors/OpenRouterProviderError.js +42 -0
  288. package/dist/core/llm/providers/errors/OpenRouterProviderError.js.map +1 -0
  289. package/dist/core/llm/providers/errors/ProviderError.d.ts +37 -0
  290. package/dist/core/llm/providers/errors/ProviderError.d.ts.map +1 -0
  291. package/dist/core/llm/providers/errors/ProviderError.js +36 -0
  292. package/dist/core/llm/providers/errors/ProviderError.js.map +1 -0
  293. package/dist/core/llm/providers/implementations/OllamaProvider.d.ts +80 -0
  294. package/dist/core/llm/providers/implementations/OllamaProvider.d.ts.map +1 -0
  295. package/dist/core/llm/providers/implementations/OllamaProvider.js +473 -0
  296. package/dist/core/llm/providers/implementations/OllamaProvider.js.map +1 -0
  297. package/dist/core/llm/providers/implementations/OpenAIProvider.d.ts +160 -0
  298. package/dist/core/llm/providers/implementations/OpenAIProvider.d.ts.map +1 -0
  299. package/dist/core/llm/providers/implementations/OpenAIProvider.js +672 -0
  300. package/dist/core/llm/providers/implementations/OpenAIProvider.js.map +1 -0
  301. package/dist/core/llm/providers/implementations/OpenRouterProvider.d.ts +51 -0
  302. package/dist/core/llm/providers/implementations/OpenRouterProvider.d.ts.map +1 -0
  303. package/dist/core/llm/providers/implementations/OpenRouterProvider.js +499 -0
  304. package/dist/core/llm/providers/implementations/OpenRouterProvider.js.map +1 -0
  305. package/dist/core/llm/routing/IModelRouter.d.ts +129 -0
  306. package/dist/core/llm/routing/IModelRouter.d.ts.map +1 -0
  307. package/dist/core/llm/routing/IModelRouter.js +14 -0
  308. package/dist/core/llm/routing/IModelRouter.js.map +1 -0
  309. package/dist/core/llm/routing/ModelRouter.d.ts +157 -0
  310. package/dist/core/llm/routing/ModelRouter.d.ts.map +1 -0
  311. package/dist/core/llm/routing/ModelRouter.js +190 -0
  312. package/dist/core/llm/routing/ModelRouter.js.map +1 -0
  313. package/dist/core/llm/streaming/StreamingBatcher.d.ts +54 -0
  314. package/dist/core/llm/streaming/StreamingBatcher.d.ts.map +1 -0
  315. package/dist/core/llm/streaming/StreamingBatcher.js +173 -0
  316. package/dist/core/llm/streaming/StreamingBatcher.js.map +1 -0
  317. package/dist/core/llm/streaming/StreamingReconstructor.d.ts +69 -0
  318. package/dist/core/llm/streaming/StreamingReconstructor.d.ts.map +1 -0
  319. package/dist/core/llm/streaming/StreamingReconstructor.js +102 -0
  320. package/dist/core/llm/streaming/StreamingReconstructor.js.map +1 -0
  321. package/dist/core/marketplace/IMarketplace.d.ts +500 -0
  322. package/dist/core/marketplace/IMarketplace.d.ts.map +1 -0
  323. package/dist/core/marketplace/IMarketplace.js +10 -0
  324. package/dist/core/marketplace/IMarketplace.js.map +1 -0
  325. package/dist/core/marketplace/Marketplace.d.ts +122 -0
  326. package/dist/core/marketplace/Marketplace.d.ts.map +1 -0
  327. package/dist/core/marketplace/Marketplace.js +591 -0
  328. package/dist/core/marketplace/Marketplace.js.map +1 -0
  329. package/dist/core/marketplace/index.d.ts +8 -0
  330. package/dist/core/marketplace/index.d.ts.map +1 -0
  331. package/dist/core/marketplace/index.js +8 -0
  332. package/dist/core/marketplace/index.js.map +1 -0
  333. package/dist/core/observability/ITracer.d.ts +317 -0
  334. package/dist/core/observability/ITracer.d.ts.map +1 -0
  335. package/dist/core/observability/ITracer.js +55 -0
  336. package/dist/core/observability/ITracer.js.map +1 -0
  337. package/dist/core/observability/Tracer.d.ts +76 -0
  338. package/dist/core/observability/Tracer.d.ts.map +1 -0
  339. package/dist/core/observability/Tracer.js +360 -0
  340. package/dist/core/observability/Tracer.js.map +1 -0
  341. package/dist/core/observability/index.d.ts +9 -0
  342. package/dist/core/observability/index.d.ts.map +1 -0
  343. package/dist/core/observability/index.js +8 -0
  344. package/dist/core/observability/index.js.map +1 -0
  345. package/dist/core/orchestration/AgentOrchestrator.d.ts +243 -0
  346. package/dist/core/orchestration/AgentOrchestrator.d.ts.map +1 -0
  347. package/dist/core/orchestration/AgentOrchestrator.js +648 -0
  348. package/dist/core/orchestration/AgentOrchestrator.js.map +1 -0
  349. package/dist/core/orchestration/IAgentOrchestrator.d.ts +44 -0
  350. package/dist/core/orchestration/IAgentOrchestrator.d.ts.map +1 -0
  351. package/dist/core/orchestration/IAgentOrchestrator.js +4 -0
  352. package/dist/core/orchestration/IAgentOrchestrator.js.map +1 -0
  353. package/dist/core/orchestration/helpers.d.ts +12 -0
  354. package/dist/core/orchestration/helpers.d.ts.map +1 -0
  355. package/dist/core/orchestration/helpers.js +36 -0
  356. package/dist/core/orchestration/helpers.js.map +1 -0
  357. package/dist/core/planning/IPlanningEngine.d.ts +524 -0
  358. package/dist/core/planning/IPlanningEngine.d.ts.map +1 -0
  359. package/dist/core/planning/IPlanningEngine.js +32 -0
  360. package/dist/core/planning/IPlanningEngine.js.map +1 -0
  361. package/dist/core/planning/PlanningEngine.d.ts +161 -0
  362. package/dist/core/planning/PlanningEngine.d.ts.map +1 -0
  363. package/dist/core/planning/PlanningEngine.js +783 -0
  364. package/dist/core/planning/PlanningEngine.js.map +1 -0
  365. package/dist/core/planning/index.d.ts +25 -0
  366. package/dist/core/planning/index.d.ts.map +1 -0
  367. package/dist/core/planning/index.js +25 -0
  368. package/dist/core/planning/index.js.map +1 -0
  369. package/dist/core/sandbox/CodeSandbox.d.ts +86 -0
  370. package/dist/core/sandbox/CodeSandbox.d.ts.map +1 -0
  371. package/dist/core/sandbox/CodeSandbox.js +475 -0
  372. package/dist/core/sandbox/CodeSandbox.js.map +1 -0
  373. package/dist/core/sandbox/ICodeSandbox.d.ts +249 -0
  374. package/dist/core/sandbox/ICodeSandbox.d.ts.map +1 -0
  375. package/dist/core/sandbox/ICodeSandbox.js +24 -0
  376. package/dist/core/sandbox/ICodeSandbox.js.map +1 -0
  377. package/dist/core/sandbox/index.d.ts +9 -0
  378. package/dist/core/sandbox/index.d.ts.map +1 -0
  379. package/dist/core/sandbox/index.js +8 -0
  380. package/dist/core/sandbox/index.js.map +1 -0
  381. package/dist/core/storage/IStorageAdapter.d.ts +483 -0
  382. package/dist/core/storage/IStorageAdapter.d.ts.map +1 -0
  383. package/dist/core/storage/IStorageAdapter.js +19 -0
  384. package/dist/core/storage/IStorageAdapter.js.map +1 -0
  385. package/dist/core/storage/InMemoryStorageAdapter.d.ts +192 -0
  386. package/dist/core/storage/InMemoryStorageAdapter.d.ts.map +1 -0
  387. package/dist/core/storage/InMemoryStorageAdapter.js +343 -0
  388. package/dist/core/storage/InMemoryStorageAdapter.js.map +1 -0
  389. package/dist/core/storage/SqlStorageAdapter.d.ts +262 -0
  390. package/dist/core/storage/SqlStorageAdapter.d.ts.map +1 -0
  391. package/dist/core/storage/SqlStorageAdapter.js +485 -0
  392. package/dist/core/storage/SqlStorageAdapter.js.map +1 -0
  393. package/dist/core/storage/index.d.ts +14 -0
  394. package/dist/core/storage/index.d.ts.map +1 -0
  395. package/dist/core/storage/index.js +14 -0
  396. package/dist/core/storage/index.js.map +1 -0
  397. package/dist/core/streaming/IStreamClient.d.ts +72 -0
  398. package/dist/core/streaming/IStreamClient.d.ts.map +1 -0
  399. package/dist/core/streaming/IStreamClient.js +12 -0
  400. package/dist/core/streaming/IStreamClient.js.map +1 -0
  401. package/dist/core/streaming/StreamingManager.d.ts +242 -0
  402. package/dist/core/streaming/StreamingManager.d.ts.map +1 -0
  403. package/dist/core/streaming/StreamingManager.js +282 -0
  404. package/dist/core/streaming/StreamingManager.js.map +1 -0
  405. package/dist/core/structured/IStructuredOutputManager.d.ts +701 -0
  406. package/dist/core/structured/IStructuredOutputManager.d.ts.map +1 -0
  407. package/dist/core/structured/IStructuredOutputManager.js +74 -0
  408. package/dist/core/structured/IStructuredOutputManager.js.map +1 -0
  409. package/dist/core/structured/StructuredOutputManager.d.ts +140 -0
  410. package/dist/core/structured/StructuredOutputManager.d.ts.map +1 -0
  411. package/dist/core/structured/StructuredOutputManager.js +1015 -0
  412. package/dist/core/structured/StructuredOutputManager.js.map +1 -0
  413. package/dist/core/structured/index.d.ts +34 -0
  414. package/dist/core/structured/index.d.ts.map +1 -0
  415. package/dist/core/structured/index.js +34 -0
  416. package/dist/core/structured/index.js.map +1 -0
  417. package/dist/core/tools/ITool.d.ts +228 -0
  418. package/dist/core/tools/ITool.d.ts.map +1 -0
  419. package/dist/core/tools/ITool.js +11 -0
  420. package/dist/core/tools/ITool.js.map +1 -0
  421. package/dist/core/tools/IToolOrchestrator.d.ts +131 -0
  422. package/dist/core/tools/IToolOrchestrator.d.ts.map +1 -0
  423. package/dist/core/tools/IToolOrchestrator.js +14 -0
  424. package/dist/core/tools/IToolOrchestrator.js.map +1 -0
  425. package/dist/core/tools/ToolExecutor.d.ts +143 -0
  426. package/dist/core/tools/ToolExecutor.d.ts.map +1 -0
  427. package/dist/core/tools/ToolExecutor.js +364 -0
  428. package/dist/core/tools/ToolExecutor.js.map +1 -0
  429. package/dist/core/tools/ToolOrchestrator.d.ts +142 -0
  430. package/dist/core/tools/ToolOrchestrator.d.ts.map +1 -0
  431. package/dist/core/tools/ToolOrchestrator.js +373 -0
  432. package/dist/core/tools/ToolOrchestrator.js.map +1 -0
  433. package/dist/core/tools/permissions/IToolPermissionManager.d.ts +195 -0
  434. package/dist/core/tools/permissions/IToolPermissionManager.d.ts.map +1 -0
  435. package/dist/core/tools/permissions/IToolPermissionManager.js +14 -0
  436. package/dist/core/tools/permissions/IToolPermissionManager.js.map +1 -0
  437. package/dist/core/tools/permissions/ToolPermissionManager.d.ts +203 -0
  438. package/dist/core/tools/permissions/ToolPermissionManager.d.ts.map +1 -0
  439. package/dist/core/tools/permissions/ToolPermissionManager.js +298 -0
  440. package/dist/core/tools/permissions/ToolPermissionManager.js.map +1 -0
  441. package/dist/core/ui/IUIComponent.d.ts +11 -0
  442. package/dist/core/ui/IUIComponent.d.ts.map +1 -0
  443. package/dist/core/ui/IUIComponent.js +2 -0
  444. package/dist/core/ui/IUIComponent.js.map +1 -0
  445. package/dist/core/usage/UsageLedger.d.ts +81 -0
  446. package/dist/core/usage/UsageLedger.d.ts.map +1 -0
  447. package/dist/core/usage/UsageLedger.js +135 -0
  448. package/dist/core/usage/UsageLedger.js.map +1 -0
  449. package/dist/core/workflows/IWorkflowEngine.d.ts +42 -0
  450. package/dist/core/workflows/IWorkflowEngine.d.ts.map +1 -0
  451. package/dist/core/workflows/IWorkflowEngine.js +2 -0
  452. package/dist/core/workflows/IWorkflowEngine.js.map +1 -0
  453. package/dist/core/workflows/WorkflowEngine.d.ts +28 -0
  454. package/dist/core/workflows/WorkflowEngine.d.ts.map +1 -0
  455. package/dist/core/workflows/WorkflowEngine.js +309 -0
  456. package/dist/core/workflows/WorkflowEngine.js.map +1 -0
  457. package/dist/core/workflows/WorkflowTypes.d.ts +180 -0
  458. package/dist/core/workflows/WorkflowTypes.d.ts.map +1 -0
  459. package/dist/core/workflows/WorkflowTypes.js +26 -0
  460. package/dist/core/workflows/WorkflowTypes.js.map +1 -0
  461. package/dist/core/workflows/runtime/WorkflowRuntime.d.ts +70 -0
  462. package/dist/core/workflows/runtime/WorkflowRuntime.d.ts.map +1 -0
  463. package/dist/core/workflows/runtime/WorkflowRuntime.js +566 -0
  464. package/dist/core/workflows/runtime/WorkflowRuntime.js.map +1 -0
  465. package/dist/core/workflows/storage/IWorkflowStore.d.ts +75 -0
  466. package/dist/core/workflows/storage/IWorkflowStore.d.ts.map +1 -0
  467. package/dist/core/workflows/storage/IWorkflowStore.js +2 -0
  468. package/dist/core/workflows/storage/IWorkflowStore.js.map +1 -0
  469. package/dist/core/workflows/storage/InMemoryWorkflowStore.d.ts +14 -0
  470. package/dist/core/workflows/storage/InMemoryWorkflowStore.d.ts.map +1 -0
  471. package/dist/core/workflows/storage/InMemoryWorkflowStore.js +130 -0
  472. package/dist/core/workflows/storage/InMemoryWorkflowStore.js.map +1 -0
  473. package/dist/extensions/ExtensionLoader.d.ts +119 -0
  474. package/dist/extensions/ExtensionLoader.d.ts.map +1 -0
  475. package/dist/extensions/ExtensionLoader.js +297 -0
  476. package/dist/extensions/ExtensionLoader.js.map +1 -0
  477. package/dist/extensions/ExtensionManager.d.ts +49 -0
  478. package/dist/extensions/ExtensionManager.d.ts.map +1 -0
  479. package/dist/extensions/ExtensionManager.js +197 -0
  480. package/dist/extensions/ExtensionManager.js.map +1 -0
  481. package/dist/extensions/ExtensionRegistry.d.ts +39 -0
  482. package/dist/extensions/ExtensionRegistry.d.ts.map +1 -0
  483. package/dist/extensions/ExtensionRegistry.js +103 -0
  484. package/dist/extensions/ExtensionRegistry.js.map +1 -0
  485. package/dist/extensions/MultiRegistryLoader.d.ts +61 -0
  486. package/dist/extensions/MultiRegistryLoader.d.ts.map +1 -0
  487. package/dist/extensions/MultiRegistryLoader.js +169 -0
  488. package/dist/extensions/MultiRegistryLoader.js.map +1 -0
  489. package/dist/extensions/RegistryConfig.d.ts +86 -0
  490. package/dist/extensions/RegistryConfig.d.ts.map +1 -0
  491. package/dist/extensions/RegistryConfig.js +99 -0
  492. package/dist/extensions/RegistryConfig.js.map +1 -0
  493. package/dist/extensions/events.d.ts +19 -0
  494. package/dist/extensions/events.d.ts.map +1 -0
  495. package/dist/extensions/events.js +2 -0
  496. package/dist/extensions/events.js.map +1 -0
  497. package/dist/extensions/index.d.ts +9 -0
  498. package/dist/extensions/index.d.ts.map +1 -0
  499. package/dist/extensions/index.js +9 -0
  500. package/dist/extensions/index.js.map +1 -0
  501. package/dist/extensions/manifest.d.ts +52 -0
  502. package/dist/extensions/manifest.d.ts.map +1 -0
  503. package/dist/extensions/manifest.js +2 -0
  504. package/dist/extensions/manifest.js.map +1 -0
  505. package/dist/extensions/types.d.ts +294 -0
  506. package/dist/extensions/types.d.ts.map +1 -0
  507. package/dist/extensions/types.js +12 -0
  508. package/dist/extensions/types.js.map +1 -0
  509. package/dist/index.d.ts +49 -0
  510. package/dist/index.d.ts.map +1 -0
  511. package/dist/index.js +59 -0
  512. package/dist/index.js.map +1 -0
  513. package/dist/logging/ILogger.d.ts +8 -0
  514. package/dist/logging/ILogger.d.ts.map +1 -0
  515. package/dist/logging/ILogger.js +2 -0
  516. package/dist/logging/ILogger.js.map +1 -0
  517. package/dist/logging/PinoLogger.d.ts +12 -0
  518. package/dist/logging/PinoLogger.d.ts.map +1 -0
  519. package/dist/logging/PinoLogger.js +22 -0
  520. package/dist/logging/PinoLogger.js.map +1 -0
  521. package/dist/logging/loggerFactory.d.ts +6 -0
  522. package/dist/logging/loggerFactory.d.ts.map +1 -0
  523. package/dist/logging/loggerFactory.js +14 -0
  524. package/dist/logging/loggerFactory.js.map +1 -0
  525. package/dist/rag/EmbeddingManager.d.ts +81 -0
  526. package/dist/rag/EmbeddingManager.d.ts.map +1 -0
  527. package/dist/rag/EmbeddingManager.js +412 -0
  528. package/dist/rag/EmbeddingManager.js.map +1 -0
  529. package/dist/rag/IEmbeddingManager.d.ts +277 -0
  530. package/dist/rag/IEmbeddingManager.d.ts.map +1 -0
  531. package/dist/rag/IEmbeddingManager.js +19 -0
  532. package/dist/rag/IEmbeddingManager.js.map +1 -0
  533. package/dist/rag/IRetrievalAugmentor.d.ts +208 -0
  534. package/dist/rag/IRetrievalAugmentor.d.ts.map +1 -0
  535. package/dist/rag/IRetrievalAugmentor.js +21 -0
  536. package/dist/rag/IRetrievalAugmentor.js.map +1 -0
  537. package/dist/rag/IVectorStore.d.ts +351 -0
  538. package/dist/rag/IVectorStore.d.ts.map +1 -0
  539. package/dist/rag/IVectorStore.js +15 -0
  540. package/dist/rag/IVectorStore.js.map +1 -0
  541. package/dist/rag/IVectorStoreManager.d.ts +121 -0
  542. package/dist/rag/IVectorStoreManager.d.ts.map +1 -0
  543. package/dist/rag/IVectorStoreManager.js +13 -0
  544. package/dist/rag/IVectorStoreManager.js.map +1 -0
  545. package/dist/rag/RetrievalAugmentor.d.ts +99 -0
  546. package/dist/rag/RetrievalAugmentor.d.ts.map +1 -0
  547. package/dist/rag/RetrievalAugmentor.js +674 -0
  548. package/dist/rag/RetrievalAugmentor.js.map +1 -0
  549. package/dist/rag/VectorStoreManager.d.ts +90 -0
  550. package/dist/rag/VectorStoreManager.d.ts.map +1 -0
  551. package/dist/rag/VectorStoreManager.js +283 -0
  552. package/dist/rag/VectorStoreManager.js.map +1 -0
  553. package/dist/rag/implementations/index.d.ts +9 -0
  554. package/dist/rag/implementations/index.d.ts.map +1 -0
  555. package/dist/rag/implementations/index.js +9 -0
  556. package/dist/rag/implementations/index.js.map +1 -0
  557. package/dist/rag/implementations/vector_stores/InMemoryVectorStore.d.ts +132 -0
  558. package/dist/rag/implementations/vector_stores/InMemoryVectorStore.d.ts.map +1 -0
  559. package/dist/rag/implementations/vector_stores/InMemoryVectorStore.js +539 -0
  560. package/dist/rag/implementations/vector_stores/InMemoryVectorStore.js.map +1 -0
  561. package/dist/rag/implementations/vector_stores/SqlVectorStore.d.ts +265 -0
  562. package/dist/rag/implementations/vector_stores/SqlVectorStore.d.ts.map +1 -0
  563. package/dist/rag/implementations/vector_stores/SqlVectorStore.js +755 -0
  564. package/dist/rag/implementations/vector_stores/SqlVectorStore.js.map +1 -0
  565. package/dist/rag/implementations/vector_stores/index.d.ts +10 -0
  566. package/dist/rag/implementations/vector_stores/index.d.ts.map +1 -0
  567. package/dist/rag/implementations/vector_stores/index.js +12 -0
  568. package/dist/rag/implementations/vector_stores/index.js.map +1 -0
  569. package/dist/rag/index.d.ts +95 -0
  570. package/dist/rag/index.d.ts.map +1 -0
  571. package/dist/rag/index.js +97 -0
  572. package/dist/rag/index.js.map +1 -0
  573. package/dist/services/user_auth/AuthService.d.ts +13 -0
  574. package/dist/services/user_auth/AuthService.d.ts.map +1 -0
  575. package/dist/services/user_auth/AuthService.js +24 -0
  576. package/dist/services/user_auth/AuthService.js.map +1 -0
  577. package/dist/services/user_auth/SubscriptionService.d.ts +14 -0
  578. package/dist/services/user_auth/SubscriptionService.d.ts.map +1 -0
  579. package/dist/services/user_auth/SubscriptionService.js +34 -0
  580. package/dist/services/user_auth/SubscriptionService.js.map +1 -0
  581. package/dist/services/user_auth/types.d.ts +30 -0
  582. package/dist/services/user_auth/types.d.ts.map +1 -0
  583. package/dist/services/user_auth/types.js +2 -0
  584. package/dist/services/user_auth/types.js.map +1 -0
  585. package/dist/stubs/prismaClient.d.ts +35 -0
  586. package/dist/stubs/prismaClient.d.ts.map +1 -0
  587. package/dist/stubs/prismaClient.js +47 -0
  588. package/dist/stubs/prismaClient.js.map +1 -0
  589. package/dist/types/rateLimitTypes.d.ts +70 -0
  590. package/dist/types/rateLimitTypes.d.ts.map +1 -0
  591. package/dist/types/rateLimitTypes.js +55 -0
  592. package/dist/types/rateLimitTypes.js.map +1 -0
  593. package/dist/utils/errors.d.ts +80 -0
  594. package/dist/utils/errors.d.ts.map +1 -0
  595. package/dist/utils/errors.js +201 -0
  596. package/dist/utils/errors.js.map +1 -0
  597. package/dist/utils/uuid.d.ts +11 -0
  598. package/dist/utils/uuid.d.ts.map +1 -0
  599. package/dist/utils/uuid.js +64 -0
  600. package/dist/utils/uuid.js.map +1 -0
  601. 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"}