@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 @@
1
+ {"version":3,"file":"AgentPoolAgent.js","sourceRoot":"","sources":["../../../src/core/agents/AgentPoolAgent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,SAAS,EAAe,SAAS,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEhF,OAAO,EAAmB,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAOvE,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC,CAAC,0DAA0D;AAwB7H;;;;;;;;;GASG;AACH,MAAM,O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AQ,GAAG,mBAAmB,IAAI,CAAC,IAAI,gDAAgD,QAAQ,gBAAgB,QAAQ,CAAC,OAAO,EAAE,CAAC;YACxI,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;YAClC,OAAO,IAAI,CAAC,wBAAwB,CAAC,IAAI,cAAc,CAAC,QAAQ,EAAE,iCAAiC,EAAE,QAAQ,CAAC,EAAE,mBAAmB,EAAE,IAAI,CAAC,CAAC;QAC7I,CAAC;IACH,CAAC;CACF"}
@@ -0,0 +1,191 @@
1
+ /**
2
+ * @fileoverview Defines the configuration structure (`AgentPoolConfig`) for an agent
3
+ * that functions as an "Agent Pool". An Agent Pool manages a collection of sub-agents
4
+ * and employs various strategies to coordinate their activities, synthesize their outputs,
5
+ * or route tasks to them. This configuration is typically used within an `AgentConfig`
6
+ * when the agent's type is `AgentType.POOL`.
7
+ *
8
+ * This module also defines the `AgentPoolStrategy` enum, which specifies the
9
+ * operational mode of the pool.
10
+ * @module backend/agentos/core/agents/AgentPoolConfig
11
+ */
12
+ import { ModelTargetInfo } from '../llm/IPromptEngine';
13
+ import { ModelCompletionOptions } from '../llm/providers/IProvider';
14
+ /**
15
+ * Defines the strategy an Agent Pool uses to interact with its sub-agents
16
+ * and present a unified front or achieve a collective goal.
17
+ * Each strategy dictates how the pool agent selects, delegates to,
18
+ * and processes outputs from its managed sub-agents.
19
+ * @enum {string}
20
+ */
21
+ export declare enum AgentPoolStrategy {
22
+ /**
23
+ * **Unified Persona Routing**: The pool agent maintains a singular, consistent persona
24
+ * to the user. It intelligently routes incoming requests or tasks to the most
25
+ * appropriate sub-agent based on the query content, conversation context, or internal
26
+ * routing logic (which may involve an LLM call). Outputs from the chosen sub-agent
27
+ * are then processed (e.g., rephrased, validated) by the pool agent to ensure
28
+ * they align with the unified persona and overall coherence before being presented to the user.
29
+ */
30
+ UNIFIED_PERSONA_ROUTING = "unified_persona_routing",
31
+ /**
32
+ * **Mixture of Experts Synthesis**: The pool agent functions as a coordinator for a
33
+ * "mixture of experts." It may consult multiple sub-agents, either simultaneously
34
+ * or sequentially, for a given task. The pool agent then aggregates and synthesizes
35
+ * their individual contributions (which could be text, data, or tool calls) into a
36
+ * single, comprehensive response. The expertise of individual sub-agents might be
37
+ * explicitly acknowledged or subtly integrated into the final output.
38
+ */
39
+ MIXTURE_OF_EXPERTS_SYNTHESIS = "mixture_of_experts_synthesis",
40
+ /**
41
+ * **Direct Delegation**: The pool agent acts primarily as a simple router or dispatcher.
42
+ * It selects a single sub-agent deemed most suitable for the task and directly
43
+ * forwards that sub-agent's response to the user, potentially with minimal
44
+ * or no post-processing by the pool agent itself. This strategy is useful for
45
+ * clear handoffs to highly specialized sub-agents where the sub-agent's distinct
46
+ * persona or output style is acceptable or desired.
47
+ */
48
+ DIRECT_DELEGATION = "direct_delegation",
49
+ /**
50
+ * **Exploratory Generation**: The pool agent uses its sub-agents as parallel workers
51
+ * to explore different approaches, generate diverse outputs, or brainstorm solutions
52
+ * for a complex problem. Each sub-agent might tackle the problem from a unique angle
53
+ * or with different constraints. The pool agent then evaluates these varied internal
54
+ * outputs and either selects the "best" one, synthesizes them into a novel solution,
55
+ * or presents a summary of the explorations to the user.
56
+ */
57
+ EXPLORATORY_GENERATION = "exploratory_generation"
58
+ }
59
+ /**
60
+ * Configuration options specific to an agent operating as an Agent Pool.
61
+ * This structure is nested within the main `AgentConfig` if the agent type is `POOL`.
62
+ * @interface AgentPoolConfig
63
+ */
64
+ export interface AgentPoolConfig {
65
+ /**
66
+ * An array of unique string identifiers for the sub-agents that belong to this pool.
67
+ * These IDs are used by the `AgentFactory` to load and instantiate the actual
68
+ * sub-agent instances managed by this `AgentPoolAgent`.
69
+ * @type {string[]}
70
+ * @example ["coding_expert_agent", "documentation_search_agent"]
71
+ */
72
+ subAgentIds: string[];
73
+ /**
74
+ * The primary strategy this Agent Pool employs for managing its sub-agents
75
+ * and generating its output. The chosen strategy dictates the pool's core logic.
76
+ * @type {AgentPoolStrategy}
77
+ * @see AgentPoolStrategy for detailed explanations of each strategy.
78
+ */
79
+ strategy: AgentPoolStrategy;
80
+ /**
81
+ * Optional. The ID of a globally defined persona configuration (`IPersonaDefinition`)
82
+ * that the entire pool should adopt as its "unified persona". If provided, the pool agent
83
+ * will strive to ensure all its communications align with this persona. This might involve
84
+ * rephrasing sub-agent outputs or providing overarching context. If not provided,
85
+ * sub-agents may retain their individual personas, and the pool agent will focus more
86
+ * on orchestration and synthesis without strict persona enforcement at the pool level.
87
+ * @type {string}
88
+ * @optional
89
+ * @example "chief_ai_officer_persona"
90
+ */
91
+ unifiedPersonaId?: string;
92
+ /**
93
+ * Optional. A system prompt specifically for the Agent Pool's meta-role in orchestrating
94
+ * its sub-agents. This prompt guides the pool agent's internal decision-making processes
95
+ * (e.g., how to route tasks, when to synthesize, how to manage sub-agent interactions).
96
+ * This is distinct from the `unifiedPersonaId` (which defines user-facing persona)
97
+ * and the `systemPrompt` of the `AgentPoolAgent` itself (which might be more general).
98
+ * @type {string}
99
+ * @optional
100
+ * @example "You are a lead architect managing a team of specialist AI engineers. Your goal is to select the best engineer for each task and ensure their responses are concise, accurate, and actionable."
101
+ */
102
+ poolSystemPrompt?: string;
103
+ /**
104
+ * Optional. Configuration for how the pool agent performs internal routing or
105
+ * selection of sub-agents, particularly relevant for `UNIFIED_PERSONA_ROUTING`
106
+ * or `DIRECT_DELEGATION` strategies if complex selection logic is needed beyond simple rules.
107
+ * @type {object}
108
+ * @optional
109
+ */
110
+ routingConfig?: {
111
+ /**
112
+ * ID of a specific `IModelRouter` instance (if multiple are available) to be used
113
+ * by the pool agent for its internal sub-agent selection LLM calls.
114
+ * @type {string}
115
+ * @optional
116
+ */
117
+ modelRouterId?: string;
118
+ /**
119
+ * ID of an `IUtilityAI` service instance that might be used for classifying user
120
+ * intent to aid in sub-agent selection, or for scoring sub-agent relevance.
121
+ * @type {string}
122
+ * @optional
123
+ */
124
+ utilityAIForSelectionId?: string;
125
+ /**
126
+ * A high-level strategy for how sub-agents are selected if not explicitly routed by an LLM.
127
+ * 'auto': Default, typically relies on LLM-based routing if `poolSystemPrompt` is defined.
128
+ * 'round_robin': Cycle through sub-agents (simple load distribution).
129
+ * 'relevance_scoring': A more complex method perhaps using embeddings or keyword matching against sub-agent descriptions (requires further implementation).
130
+ * @type {'auto' | 'round_robin' | 'relevance_scoring' | string}
131
+ * @optional
132
+ */
133
+ selectionLogic?: 'auto' | 'round_robin' | 'relevance_scoring' | string;
134
+ /**
135
+ * `ModelTargetInfo` to guide the selection of an LLM specifically for the pool agent's
136
+ * internal routing decisions (if it uses an LLM for this purpose).
137
+ * @type {ModelTargetInfo}
138
+ * @optional
139
+ */
140
+ selectionModelTargetInfo?: ModelTargetInfo;
141
+ /**
142
+ * Optional overrides for routing-specific LLM completion options (temperature, maxTokens, etc.).
143
+ * @type {Partial<ModelCompletionOptions>}
144
+ * @optional
145
+ */
146
+ selectionCompletionOptions?: Partial<ModelCompletionOptions>;
147
+ };
148
+ /**
149
+ * Optional. Configuration for how the pool agent synthesizes outputs from multiple sub-agents.
150
+ * This is particularly applicable to strategies like `MIXTURE_OF_EXPERTS_SYNTHESIS`
151
+ * and `EXPLORATORY_GENERATION`.
152
+ * @type {object}
153
+ * @optional
154
+ */
155
+ synthesisConfig?: {
156
+ /**
157
+ * The method used for synthesizing multiple sub-agent outputs.
158
+ * 'summarize_and_integrate': Concatenate outputs and ask an LLM to summarize/integrate.
159
+ * 'rank_and_select': Use an LLM or heuristic to rank outputs and select the best one(s).
160
+ * 'hybrid_llm_synthesis': A more complex LLM-driven synthesis process with specific instructions.
161
+ * @type {'summarize_and_integrate' | 'rank_and_select' | 'hybrid_llm_synthesis' | string}
162
+ */
163
+ method: 'summarize_and_integrate' | 'rank_and_select' | 'hybrid_llm_synthesis' | string;
164
+ /**
165
+ * `ModelTargetInfo` to guide the selection of an LLM specifically for the pool agent's
166
+ * synthesis tasks (if it uses an LLM for this purpose).
167
+ * @type {ModelTargetInfo}
168
+ * @optional
169
+ */
170
+ synthesisModelTargetInfo?: ModelTargetInfo;
171
+ /**
172
+ * Optional prompt template name or direct prompt content to guide the synthesis LLM.
173
+ * @type {string}
174
+ * @optional
175
+ */
176
+ synthesisPrompt?: string;
177
+ /**
178
+ * Optional overrides for synthesis-specific LLM completion options.
179
+ * @type {Partial<ModelCompletionOptions>}
180
+ * @optional
181
+ */
182
+ synthesisCompletionOptions?: Partial<ModelCompletionOptions>;
183
+ };
184
+ /**
185
+ * Any other pool-specific custom settings.
186
+ * @type {{ [key: string]: any }}
187
+ * @optional
188
+ */
189
+ [key: string]: any;
190
+ }
191
+ //# sourceMappingURL=AgentPoolConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentPoolConfig.d.ts","sourceRoot":"","sources":["../../../src/core/agents/AgentPoolConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE;;;;;;GAMG;AACH,oBAAY,iBAAiB;IAC3B;;;;;;;OAOG;IACH,uBAAuB,4BAA4B;IAEnD;;;;;;;OAOG;IACH,4BAA4B,iCAAiC;IAE7D;;;;;;;OAOG;IACH,iBAAiB,sBAAsB;IAEvC;;;;;;;OAOG;IACH,sBAAsB,2BAA2B;CAClD;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,WAAW,EAAE,MAAM,EAAE,CAAC;IAEtB;;;;;OAKG;IACH,QAAQ,EAAE,iBAAiB,CAAC;IAE5B;;;;;;;;;;OAUG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;;;OAMG;IACH,aAAa,CAAC,EAAE;QACd;;;;;WAKG;QACH,aAAa,CAAC,EAAE,MAAM,CAAC;QAEvB;;;;;WAKG;QACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;QAEjC;;;;;;;WAOG;QACH,cAAc,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,mBAAmB,GAAG,MAAM,CAAC;QAEvE;;;;;WAKG;QACH,wBAAwB,CAAC,EAAE,eAAe,CAAC;QAE3C;;;;WAIG;QACH,0BAA0B,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC;KAC9D,CAAC;IAEF;;;;;;OAMG;IACH,eAAe,CAAC,EAAE;QAChB;;;;;;WAMG;QACH,MAAM,EAAE,yBAAyB,GAAG,iBAAiB,GAAG,sBAAsB,GAAG,MAAM,CAAC;QAExF;;;;;WAKG;QACH,wBAAwB,CAAC,EAAE,eAAe,CAAC;QAE3C;;;;WAIG;QACH,eAAe,CAAC,EAAE,MAAM,CAAC;QAEzB;;;;WAIG;QACH,0BAA0B,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC;KAC9D,CAAC;IAEF;;;;OAIG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB"}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * @fileoverview Defines the configuration structure (`AgentPoolConfig`) for an agent
3
+ * that functions as an "Agent Pool". An Agent Pool manages a collection of sub-agents
4
+ * and employs various strategies to coordinate their activities, synthesize their outputs,
5
+ * or route tasks to them. This configuration is typically used within an `AgentConfig`
6
+ * when the agent's type is `AgentType.POOL`.
7
+ *
8
+ * This module also defines the `AgentPoolStrategy` enum, which specifies the
9
+ * operational mode of the pool.
10
+ * @module backend/agentos/core/agents/AgentPoolConfig
11
+ */
12
+ /**
13
+ * Defines the strategy an Agent Pool uses to interact with its sub-agents
14
+ * and present a unified front or achieve a collective goal.
15
+ * Each strategy dictates how the pool agent selects, delegates to,
16
+ * and processes outputs from its managed sub-agents.
17
+ * @enum {string}
18
+ */
19
+ export var AgentPoolStrategy;
20
+ (function (AgentPoolStrategy) {
21
+ /**
22
+ * **Unified Persona Routing**: The pool agent maintains a singular, consistent persona
23
+ * to the user. It intelligently routes incoming requests or tasks to the most
24
+ * appropriate sub-agent based on the query content, conversation context, or internal
25
+ * routing logic (which may involve an LLM call). Outputs from the chosen sub-agent
26
+ * are then processed (e.g., rephrased, validated) by the pool agent to ensure
27
+ * they align with the unified persona and overall coherence before being presented to the user.
28
+ */
29
+ AgentPoolStrategy["UNIFIED_PERSONA_ROUTING"] = "unified_persona_routing";
30
+ /**
31
+ * **Mixture of Experts Synthesis**: The pool agent functions as a coordinator for a
32
+ * "mixture of experts." It may consult multiple sub-agents, either simultaneously
33
+ * or sequentially, for a given task. The pool agent then aggregates and synthesizes
34
+ * their individual contributions (which could be text, data, or tool calls) into a
35
+ * single, comprehensive response. The expertise of individual sub-agents might be
36
+ * explicitly acknowledged or subtly integrated into the final output.
37
+ */
38
+ AgentPoolStrategy["MIXTURE_OF_EXPERTS_SYNTHESIS"] = "mixture_of_experts_synthesis";
39
+ /**
40
+ * **Direct Delegation**: The pool agent acts primarily as a simple router or dispatcher.
41
+ * It selects a single sub-agent deemed most suitable for the task and directly
42
+ * forwards that sub-agent's response to the user, potentially with minimal
43
+ * or no post-processing by the pool agent itself. This strategy is useful for
44
+ * clear handoffs to highly specialized sub-agents where the sub-agent's distinct
45
+ * persona or output style is acceptable or desired.
46
+ */
47
+ AgentPoolStrategy["DIRECT_DELEGATION"] = "direct_delegation";
48
+ /**
49
+ * **Exploratory Generation**: The pool agent uses its sub-agents as parallel workers
50
+ * to explore different approaches, generate diverse outputs, or brainstorm solutions
51
+ * for a complex problem. Each sub-agent might tackle the problem from a unique angle
52
+ * or with different constraints. The pool agent then evaluates these varied internal
53
+ * outputs and either selects the "best" one, synthesizes them into a novel solution,
54
+ * or presents a summary of the explorations to the user.
55
+ */
56
+ AgentPoolStrategy["EXPLORATORY_GENERATION"] = "exploratory_generation";
57
+ })(AgentPoolStrategy || (AgentPoolStrategy = {}));
58
+ //# sourceMappingURL=AgentPoolConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentPoolConfig.js","sourceRoot":"","sources":["../../../src/core/agents/AgentPoolConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,iBAwCX;AAxCD,WAAY,iBAAiB;IAC3B;;;;;;;OAOG;IACH,wEAAmD,CAAA;IAEnD;;;;;;;OAOG;IACH,kFAA6D,CAAA;IAE7D;;;;;;;OAOG;IACH,4DAAuC,CAAA;IAEvC;;;;;;;OAOG;IACH,sEAAiD,CAAA;AACnD,CAAC,EAxCW,iBAAiB,KAAjB,iBAAiB,QAwC5B"}
@@ -0,0 +1,226 @@
1
+ /**
2
+ * @fileoverview Defines the IAgent interface, representing the core contract for any
3
+ * intelligent agent within the AgentOS ecosystem. Agents are the primary actors
4
+ * responsible for processing user inputs (or other stimuli), interacting with AI models
5
+ * (LLMs), utilizing tools to perform actions, managing conversation context, and
6
+ * generating coherent and actionable outputs.
7
+ *
8
+ * This interface is designed to be flexible enough to accommodate various types of agents,
9
+ * from simple task-oriented bots to complex, persona-driven entities like GMIs, or
10
+ * specialized agents within an Agent Pool.
11
+ * @module backend/agentos/core/agents/IAgent
12
+ */
13
+ import { ConversationContext } from '../conversation/ConversationContext';
14
+ import { Tool } from './tools/Tool';
15
+ import { UIComponentSpecification } from '../ui/IUIComponent';
16
+ import { AgentConfig } from './AgentCore';
17
+ /**
18
+ * Represents a request from an agent to execute a specific tool.
19
+ * This structure provides all necessary information for the ToolExecutor to dispatch the call.
20
+ * @interface AgentToolCall
21
+ */
22
+ export interface AgentToolCall {
23
+ /**
24
+ * A unique identifier for this specific tool call instance, typically generated by the LLM or agent.
25
+ * This ID is crucial for correlating the call with its subsequent result, especially in asynchronous operations.
26
+ * @type {string}
27
+ * @example "tool_call_12345abc"
28
+ */
29
+ callId: string;
30
+ /**
31
+ * The unique identifier of the tool to be executed. This ID must match a tool
32
+ * registered and available to the agent via the ToolExecutor.
33
+ * @type {string}
34
+ * @example "web_search_tool", "code_interpreter_tool"
35
+ */
36
+ toolId: string;
37
+ /**
38
+ * The arguments to be passed to the tool's execution method.
39
+ * This should be a JavaScript object where keys are argument names and values are their corresponding values,
40
+ * matching the tool's defined parameter schema.
41
+ * @type {Record<string, any>}
42
+ * @example { "query": "latest TypeScript features", "num_results": 5 }
43
+ */
44
+ arguments: Record<string, any>;
45
+ }
46
+ /**
47
+ * Represents the output produced by an agent after processing a turn or handling a tool result.
48
+ * This is a comprehensive structure that can convey various types of information back to the orchestrator or user.
49
+ * @interface AgentOutput
50
+ */
51
+ export interface AgentOutput {
52
+ /**
53
+ * The primary textual response generated by the agent.
54
+ * This could be a direct answer, an explanation, a question, or any other conversational text.
55
+ * @type {string}
56
+ * @optional
57
+ */
58
+ responseText?: string;
59
+ /**
60
+ * Optional structured data that the agent wishes to output, beyond plain text.
61
+ * This could be JSON, XML, or any other format, useful for programmatic consumption.
62
+ * The key could indicate the type or purpose of the data.
63
+ * @type {Record<string, any>}
64
+ * @optional
65
+ * @example { "codeBlock": { "language": "python", "code": "print('Hello')" }, "analysisSummary": { ... } }
66
+ */
67
+ formattedData?: Record<string, any>;
68
+ /**
69
+ * An array of specifications for UI components that the agent requests to be rendered
70
+ * on the client-side. This enables agents to drive dynamic user interfaces.
71
+ * @type {UIComponentSpecification[]}
72
+ * @optional
73
+ */
74
+ uiComponents?: UIComponentSpecification[];
75
+ /**
76
+ * An array of tool calls that the agent has decided to make to accomplish its current goal.
77
+ * If present, the orchestrator will typically execute these tools and then feed their results
78
+ * back to the agent via the `handleToolResult` method.
79
+ * @type {AgentToolCall[]}
80
+ * @optional
81
+ */
82
+ toolCalls?: AgentToolCall[];
83
+ /**
84
+ * The raw, unaltered response from the underlying AI model (e.g., LLM), if applicable.
85
+ * This is primarily for debugging, logging, or advanced use cases where direct access to the model's
86
+ * output (including metadata, logprobs, etc.) is needed.
87
+ * @type {any}
88
+ * @optional
89
+ */
90
+ rawModelResponse?: any;
91
+ /**
92
+ * If an error occurred during the agent's processing for this turn, this field will contain
93
+ * a human-readable error message or a structured error object.
94
+ * @type {string | Error | object}
95
+ * @optional
96
+ */
97
+ error?: string | Error | object;
98
+ /**
99
+ * Arbitrary metadata that the agent can attach to its output.
100
+ * This can be used for logging, tracing, passing session-specific information, or other custom purposes.
101
+ * @type {Record<string, any>}
102
+ * @optional
103
+ * @example { "confidenceScore": 0.85, "alternativeResponsesConsidered": 3 }
104
+ */
105
+ metadata?: Record<string, any>;
106
+ /**
107
+ * A boolean flag indicating whether the agent considers its current task or interaction turn
108
+ * to be complete.
109
+ * - If `true`, the orchestrator may consider the agent's turn finished.
110
+ * - If `false` (e.g., after requesting tool calls), the orchestrator expects to interact further
111
+ * with the agent in the current turn (e.g., by providing tool results).
112
+ * @type {boolean}
113
+ */
114
+ isComplete: boolean;
115
+ }
116
+ /**
117
+ * Defines the core contract for an Agent within the AgentOS framework.
118
+ * Implementations of this interface will encapsulate the logic, state, and
119
+ * capabilities of a specific type of intelligent agent.
120
+ * @interface IAgent
121
+ */
122
+ export interface IAgent {
123
+ /**
124
+ * A unique identifier for this specific agent instance or type.
125
+ * @readonly
126
+ * @type {string}
127
+ */
128
+ readonly id: string;
129
+ /**
130
+ * A human-readable name for the agent.
131
+ * @readonly
132
+ * @type {string}
133
+ * @example "CustomerSupportAgent", "CodeGenerationAssistant"
134
+ */
135
+ readonly name: string;
136
+ /**
137
+ * A brief description of the agent's purpose, capabilities, and intended use cases.
138
+ * @readonly
139
+ * @type {string}
140
+ */
141
+ readonly description: string;
142
+ /**
143
+ * The full configuration object that defines this agent's properties,
144
+ * including its type, system prompt, model preferences, and any pool options if applicable.
145
+ * This provides transparency into how the agent is configured.
146
+ * @readonly
147
+ * @type {AgentConfig}
148
+ */
149
+ readonly agentConfig: AgentConfig;
150
+ /**
151
+ * Processes a single turn of interaction. This is the primary method called by an
152
+ * orchestrator (like AgentOrchestrator or GMIManager) to make the agent "act".
153
+ * The agent will use the user input and conversation context to decide on its
154
+ * next actions, which may include generating text, calling tools, or updating its state.
155
+ *
156
+ * @async
157
+ * @param {string | null} userInput - The latest textual input from the user for this turn.
158
+ * Can be `null` if the agent is acting autonomously (e.g., based on a previous tool result or internal trigger)
159
+ * or if the input is purely non-textual and handled through other mechanisms.
160
+ * @param {ConversationContext} conversationContext - The current state of the conversation,
161
+ * including message history, metadata, and potentially summaries. The agent should use this
162
+ * to maintain context and coherence.
163
+ * @param {Tool[]} [availableTools] - An optional array of `Tool` instances that are
164
+ * available to the agent for execution during this turn. The agent should only request
165
+ * tools from this list or tools it intrinsically knows it can use.
166
+ * @returns {Promise<AgentOutput>} A promise that resolves to an `AgentOutput` object,
167
+ * representing the agent's response and any requested actions for this turn.
168
+ * @throws {Error} If a critical, unrecoverable error occurs during processing.
169
+ */
170
+ processTurn(userInput: string | null, conversationContext: ConversationContext, availableTools?: Tool[]): Promise<AgentOutput>;
171
+ /**
172
+ * Handles the result of a tool call that this agent previously requested in an `AgentOutput`.
173
+ * After a tool is executed by the ToolExecutor, its result is passed back to the agent
174
+ * through this method. The agent can then process this result, update its state or context,
175
+ * and decide on its next actions (which might involve further LLM calls or generating a final response).
176
+ *
177
+ * @async
178
+ * @param {string} toolCallId - The unique ID of the original `AgentToolCall` this result pertains to.
179
+ * This allows the agent to correlate the result with its earlier request.
180
+ * @param {any} toolOutput - The output data from the tool execution. The type of this data
181
+ * is specific to the tool that was called. It could be a simple value, a complex object, or an error.
182
+ * @param {string} toolName - The name/ID of the tool that was executed. This provides context
183
+ * to the agent about which tool's result it is handling.
184
+ * @param {ConversationContext} conversationContext - The current conversation context, which
185
+ * should ideally include the original tool call request and will be updated with the tool result message.
186
+ * @returns {Promise<AgentOutput>} A promise that resolves to the agent's subsequent output after
187
+ * processing the tool result. This could be a final response or another set of actions (e.g., more tool calls).
188
+ * @throws {Error} If a critical, unrecoverable error occurs while handling the tool result.
189
+ */
190
+ handleToolResult(toolCallId: string, toolOutput: any, toolName: string, conversationContext: ConversationContext): Promise<AgentOutput>;
191
+ /**
192
+ * Allows the agent to perform any necessary setup or initialization logic when it is
193
+ * first created or loaded. This can include loading resources, setting up internal state,
194
+ * or validating its configuration.
195
+ *
196
+ * @async
197
+ * @param {Record<string, any>} [config] - Optional agent-specific configuration parameters
198
+ * that might override or supplement its primary `AgentConfig`. This allows for dynamic
199
+ * adjustments at instantiation time.
200
+ * @returns {Promise<void>} A promise that resolves when initialization is complete.
201
+ * @throws {Error} If initialization fails.
202
+ */
203
+ initialize?(config?: Record<string, any>): Promise<void>;
204
+ /**
205
+ * Resets the agent's internal state to its initial condition. This is typically called
206
+ * at the beginning of a new conversation or session, or if the agent needs to be "cleared"
207
+ * for any reason. The exact behavior of reset (e.g., clearing memory, resetting parameters)
208
+ * is specific to the agent's implementation.
209
+ *
210
+ * @returns {void}
211
+ */
212
+ reset?(): void;
213
+ /**
214
+ * Optional method for an agent to gracefully handle internal, unexpected errors.
215
+ * If implemented, this allows the agent to attempt to generate a user-friendly
216
+ * explanation or apology instead of just letting a raw exception propagate.
217
+ *
218
+ * @async
219
+ * @param {string | Error} internalErrorDescription - A description or instance of the internal error.
220
+ * @param {ConversationContext} conversationContext - The conversation context at the time of the error.
221
+ * @param {boolean} [isFatalForTurn=true] - If true, implies the current turn cannot proceed meaningfully.
222
+ * @returns {Promise<AgentOutput>} An `AgentOutput` typically containing a user-facing error message.
223
+ */
224
+ handleInternalAgentError?(internalErrorDescription: string | Error, conversationContext: ConversationContext, isFatalForTurn?: boolean): Promise<AgentOutput>;
225
+ }
226
+ //# sourceMappingURL=IAgent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAgent.d.ts","sourceRoot":"","sources":["../../../src/core/agents/IAgent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAC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AAC,EAAE,IAAI,EAAE,GACtB,OAAO,CAAC,WAAW,CAAC,CAAC;IAExB;;;;;;;;;;;;;;;;;;OAkBG;IACH,gBAAgB,CACd,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,GAAG,EACf,QAAQ,EAAE,MAAM,EAChB,mBAAmB,EAAE,mBAAmB,GACvC,OAAO,CAAC,WAAW,CAAC,CAAC;IAExB;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzD;;;;;;;OAOG;IACH,KAAK,CAAC,IAAI,IAAI,CAAC;IAEf;;;;;;;;;;OAUG;IACH,wBAAwB,CAAC,CACvB,wBAAwB,EAAE,MAAM,GAAG,KAAK,EACxC,mBAAmB,EAAE,mBAAmB,EACxC,cAAc,CAAC,EAAE,OAAO,GACvB,OAAO,CAAC,WAAW,CAAC,CAAC;CACzB"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @fileoverview Defines the IAgent interface, representing the core contract for any
3
+ * intelligent agent within the AgentOS ecosystem. Agents are the primary actors
4
+ * responsible for processing user inputs (or other stimuli), interacting with AI models
5
+ * (LLMs), utilizing tools to perform actions, managing conversation context, and
6
+ * generating coherent and actionable outputs.
7
+ *
8
+ * This interface is designed to be flexible enough to accommodate various types of agents,
9
+ * from simple task-oriented bots to complex, persona-driven entities like GMIs, or
10
+ * specialized agents within an Agent Pool.
11
+ * @module backend/agentos/core/agents/IAgent
12
+ */
13
+ export {};
14
+ //# sourceMappingURL=IAgent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAgent.js","sourceRoot":"","sources":["../../../src/core/agents/IAgent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG"}