@framers/agentos 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +98 -0
- package/README.md +576 -0
- package/dist/api/AgentOS.d.ts +451 -0
- package/dist/api/AgentOS.d.ts.map +1 -0
- package/dist/api/AgentOS.js +1157 -0
- package/dist/api/AgentOS.js.map +1 -0
- package/dist/api/AgentOSOrchestrator.d.ts +157 -0
- package/dist/api/AgentOSOrchestrator.d.ts.map +1 -0
- package/dist/api/AgentOSOrchestrator.js +679 -0
- package/dist/api/AgentOSOrchestrator.js.map +1 -0
- package/dist/api/interfaces/IAgentOS.d.ts +138 -0
- package/dist/api/interfaces/IAgentOS.d.ts.map +1 -0
- package/dist/api/interfaces/IAgentOS.js +11 -0
- package/dist/api/interfaces/IAgentOS.js.map +1 -0
- package/dist/api/interfaces/IUnifiedAgent.d.ts +126 -0
- package/dist/api/interfaces/IUnifiedAgent.d.ts.map +1 -0
- package/dist/api/interfaces/IUnifiedAgent.js +3 -0
- package/dist/api/interfaces/IUnifiedAgent.js.map +1 -0
- package/dist/api/types/AgentOSInput.d.ts +114 -0
- package/dist/api/types/AgentOSInput.d.ts.map +1 -0
- package/dist/api/types/AgentOSInput.js +13 -0
- package/dist/api/types/AgentOSInput.js.map +1 -0
- package/dist/api/types/AgentOSResponse.d.ts +170 -0
- package/dist/api/types/AgentOSResponse.d.ts.map +1 -0
- package/dist/api/types/AgentOSResponse.js +25 -0
- package/dist/api/types/AgentOSResponse.js.map +1 -0
- package/dist/cognitive_substrate/GMI.d.ts +148 -0
- package/dist/cognitive_substrate/GMI.d.ts.map +1 -0
- package/dist/cognitive_substrate/GMI.js +1003 -0
- package/dist/cognitive_substrate/GMI.js.map +1 -0
- package/dist/cognitive_substrate/GMIManager.d.ts +98 -0
- package/dist/cognitive_substrate/GMIManager.d.ts.map +1 -0
- package/dist/cognitive_substrate/GMIManager.js +517 -0
- package/dist/cognitive_substrate/GMIManager.js.map +1 -0
- package/dist/cognitive_substrate/IGMI.d.ts +469 -0
- package/dist/cognitive_substrate/IGMI.d.ts.map +1 -0
- package/dist/cognitive_substrate/IGMI.js +111 -0
- package/dist/cognitive_substrate/IGMI.js.map +1 -0
- package/dist/cognitive_substrate/memory/IWorkingMemory.d.ts +139 -0
- package/dist/cognitive_substrate/memory/IWorkingMemory.d.ts.map +1 -0
- package/dist/cognitive_substrate/memory/IWorkingMemory.js +14 -0
- package/dist/cognitive_substrate/memory/IWorkingMemory.js.map +1 -0
- package/dist/cognitive_substrate/memory/InMemoryWorkingMemory.d.ts +143 -0
- package/dist/cognitive_substrate/memory/InMemoryWorkingMemory.d.ts.map +1 -0
- package/dist/cognitive_substrate/memory/InMemoryWorkingMemory.js +186 -0
- package/dist/cognitive_substrate/memory/InMemoryWorkingMemory.js.map +1 -0
- package/dist/cognitive_substrate/persona_overlays/PersonaOverlayManager.d.ts +33 -0
- package/dist/cognitive_substrate/persona_overlays/PersonaOverlayManager.d.ts.map +1 -0
- package/dist/cognitive_substrate/persona_overlays/PersonaOverlayManager.js +138 -0
- package/dist/cognitive_substrate/persona_overlays/PersonaOverlayManager.js.map +1 -0
- package/dist/cognitive_substrate/persona_overlays/PersonaOverlayTypes.d.ts +32 -0
- package/dist/cognitive_substrate/persona_overlays/PersonaOverlayTypes.d.ts.map +1 -0
- package/dist/cognitive_substrate/persona_overlays/PersonaOverlayTypes.js +2 -0
- package/dist/cognitive_substrate/persona_overlays/PersonaOverlayTypes.js.map +1 -0
- package/dist/cognitive_substrate/personas/IPersonaDefinition.d.ts +336 -0
- package/dist/cognitive_substrate/personas/IPersonaDefinition.d.ts.map +1 -0
- package/dist/cognitive_substrate/personas/IPersonaDefinition.js +8 -0
- package/dist/cognitive_substrate/personas/IPersonaDefinition.js.map +1 -0
- package/dist/cognitive_substrate/personas/IPersonaLoader.d.ts +78 -0
- package/dist/cognitive_substrate/personas/IPersonaLoader.d.ts.map +1 -0
- package/dist/cognitive_substrate/personas/IPersonaLoader.js +9 -0
- package/dist/cognitive_substrate/personas/IPersonaLoader.js.map +1 -0
- package/dist/cognitive_substrate/personas/PersonaLoader.d.ts +60 -0
- package/dist/cognitive_substrate/personas/PersonaLoader.d.ts.map +1 -0
- package/dist/cognitive_substrate/personas/PersonaLoader.js +138 -0
- package/dist/cognitive_substrate/personas/PersonaLoader.js.map +1 -0
- package/dist/cognitive_substrate/personas/PersonaValidation.d.ts +139 -0
- package/dist/cognitive_substrate/personas/PersonaValidation.d.ts.map +1 -0
- package/dist/cognitive_substrate/personas/PersonaValidation.js +277 -0
- package/dist/cognitive_substrate/personas/PersonaValidation.js.map +1 -0
- package/dist/cognitive_substrate/personas/definitions/atlas_systems_architect.json +29 -0
- package/dist/cognitive_substrate/personas/definitions/default_assistant_persona.json +346 -0
- package/dist/cognitive_substrate/personas/definitions/default_free_assistant.json +13 -0
- package/dist/cognitive_substrate/personas/definitions/index.d.ts +14 -0
- package/dist/cognitive_substrate/personas/definitions/index.d.ts.map +1 -0
- package/dist/cognitive_substrate/personas/definitions/index.js +35 -0
- package/dist/cognitive_substrate/personas/definitions/index.js.map +1 -0
- package/dist/cognitive_substrate/personas/definitions/nerf_generalist.json +11 -0
- package/dist/cognitive_substrate/personas/definitions/v_researcher.json +11 -0
- package/dist/config/AgentOSConfig.d.ts +74 -0
- package/dist/config/AgentOSConfig.d.ts.map +1 -0
- package/dist/config/AgentOSConfig.js +399 -0
- package/dist/config/AgentOSConfig.js.map +1 -0
- package/dist/config/EmbeddingManagerConfiguration.d.ts +190 -0
- package/dist/config/EmbeddingManagerConfiguration.d.ts.map +1 -0
- package/dist/config/EmbeddingManagerConfiguration.js +16 -0
- package/dist/config/EmbeddingManagerConfiguration.js.map +1 -0
- package/dist/config/MemoryLifecycleManagerConfiguration.d.ts +165 -0
- package/dist/config/MemoryLifecycleManagerConfiguration.d.ts.map +1 -0
- package/dist/config/MemoryLifecycleManagerConfiguration.js +69 -0
- package/dist/config/MemoryLifecycleManagerConfiguration.js.map +1 -0
- package/dist/config/RetrievalAugmentorConfiguration.d.ts +98 -0
- package/dist/config/RetrievalAugmentorConfiguration.d.ts.map +1 -0
- package/dist/config/RetrievalAugmentorConfiguration.js +47 -0
- package/dist/config/RetrievalAugmentorConfiguration.js.map +1 -0
- package/dist/config/ToolOrchestratorConfig.d.ts +69 -0
- package/dist/config/ToolOrchestratorConfig.d.ts.map +1 -0
- package/dist/config/ToolOrchestratorConfig.js +11 -0
- package/dist/config/ToolOrchestratorConfig.js.map +1 -0
- package/dist/config/VectorStoreConfiguration.d.ts +223 -0
- package/dist/config/VectorStoreConfiguration.d.ts.map +1 -0
- package/dist/config/VectorStoreConfiguration.js +59 -0
- package/dist/config/VectorStoreConfiguration.js.map +1 -0
- package/dist/config/extension-secrets.json +38 -0
- package/dist/config/extensionSecrets.d.ts +13 -0
- package/dist/config/extensionSecrets.d.ts.map +1 -0
- package/dist/config/extensionSecrets.js +24 -0
- package/dist/config/extensionSecrets.js.map +1 -0
- package/dist/core/agency/AgencyMemoryManager.d.ts +300 -0
- package/dist/core/agency/AgencyMemoryManager.d.ts.map +1 -0
- package/dist/core/agency/AgencyMemoryManager.js +657 -0
- package/dist/core/agency/AgencyMemoryManager.js.map +1 -0
- package/dist/core/agency/AgencyRegistry.d.ts +100 -0
- package/dist/core/agency/AgencyRegistry.d.ts.map +1 -0
- package/dist/core/agency/AgencyRegistry.js +209 -0
- package/dist/core/agency/AgencyRegistry.js.map +1 -0
- package/dist/core/agency/AgencyTypes.d.ts +200 -0
- package/dist/core/agency/AgencyTypes.d.ts.map +1 -0
- package/dist/core/agency/AgencyTypes.js +7 -0
- package/dist/core/agency/AgencyTypes.js.map +1 -0
- package/dist/core/agency/AgentCommunicationBus.d.ts +150 -0
- package/dist/core/agency/AgentCommunicationBus.d.ts.map +1 -0
- package/dist/core/agency/AgentCommunicationBus.js +568 -0
- package/dist/core/agency/AgentCommunicationBus.js.map +1 -0
- package/dist/core/agency/IAgentCommunicationBus.d.ts +469 -0
- package/dist/core/agency/IAgentCommunicationBus.d.ts.map +1 -0
- package/dist/core/agency/IAgentCommunicationBus.js +40 -0
- package/dist/core/agency/IAgentCommunicationBus.js.map +1 -0
- package/dist/core/agency/index.d.ts +18 -0
- package/dist/core/agency/index.d.ts.map +1 -0
- package/dist/core/agency/index.js +18 -0
- package/dist/core/agency/index.js.map +1 -0
- package/dist/core/agents/AgentCore.d.ts +385 -0
- package/dist/core/agents/AgentCore.d.ts.map +1 -0
- package/dist/core/agents/AgentCore.js +527 -0
- package/dist/core/agents/AgentCore.js.map +1 -0
- package/dist/core/agents/AgentFactory.d.ts +123 -0
- package/dist/core/agents/AgentFactory.d.ts.map +1 -0
- package/dist/core/agents/AgentFactory.js +232 -0
- package/dist/core/agents/AgentFactory.js.map +1 -0
- package/dist/core/agents/AgentPoolAgent.d.ts +244 -0
- package/dist/core/agents/AgentPoolAgent.d.ts.map +1 -0
- package/dist/core/agents/AgentPoolAgent.js +697 -0
- package/dist/core/agents/AgentPoolAgent.js.map +1 -0
- package/dist/core/agents/AgentPoolConfig.d.ts +191 -0
- package/dist/core/agents/AgentPoolConfig.d.ts.map +1 -0
- package/dist/core/agents/AgentPoolConfig.js +58 -0
- package/dist/core/agents/AgentPoolConfig.js.map +1 -0
- package/dist/core/agents/IAgent.d.ts +226 -0
- package/dist/core/agents/IAgent.d.ts.map +1 -0
- package/dist/core/agents/IAgent.js +14 -0
- package/dist/core/agents/IAgent.js.map +1 -0
- package/dist/core/agents/IAgentFactory.d.ts +137 -0
- package/dist/core/agents/IAgentFactory.d.ts.map +1 -0
- package/dist/core/agents/IAgentFactory.js +13 -0
- package/dist/core/agents/IAgentFactory.js.map +1 -0
- package/dist/core/agents/tools/Tool.d.ts +17 -0
- package/dist/core/agents/tools/Tool.d.ts.map +1 -0
- package/dist/core/agents/tools/Tool.js +8 -0
- package/dist/core/agents/tools/Tool.js.map +1 -0
- package/dist/core/ai_utilities/HybridUtilityAI.d.ts +1 -0
- package/dist/core/ai_utilities/HybridUtilityAI.d.ts.map +1 -0
- package/dist/core/ai_utilities/HybridUtilityAI.js +2 -0
- package/dist/core/ai_utilities/HybridUtilityAI.js.map +1 -0
- package/dist/core/ai_utilities/IUtilityAI.d.ts +212 -0
- package/dist/core/ai_utilities/IUtilityAI.d.ts.map +1 -0
- package/dist/core/ai_utilities/IUtilityAI.js +11 -0
- package/dist/core/ai_utilities/IUtilityAI.js.map +1 -0
- package/dist/core/ai_utilities/LLMUtilityAI.d.ts +94 -0
- package/dist/core/ai_utilities/LLMUtilityAI.d.ts.map +1 -0
- package/dist/core/ai_utilities/LLMUtilityAI.js +434 -0
- package/dist/core/ai_utilities/LLMUtilityAI.js.map +1 -0
- package/dist/core/ai_utilities/StatisticalUtilityAI.d.ts +102 -0
- package/dist/core/ai_utilities/StatisticalUtilityAI.d.ts.map +1 -0
- package/dist/core/ai_utilities/StatisticalUtilityAI.js +617 -0
- package/dist/core/ai_utilities/StatisticalUtilityAI.js.map +1 -0
- package/dist/core/conversation/ConversationContext.d.ts +259 -0
- package/dist/core/conversation/ConversationContext.d.ts.map +1 -0
- package/dist/core/conversation/ConversationContext.js +450 -0
- package/dist/core/conversation/ConversationContext.js.map +1 -0
- package/dist/core/conversation/ConversationManager.d.ts +223 -0
- package/dist/core/conversation/ConversationManager.d.ts.map +1 -0
- package/dist/core/conversation/ConversationManager.js +558 -0
- package/dist/core/conversation/ConversationManager.js.map +1 -0
- package/dist/core/conversation/ConversationMessage.d.ts +184 -0
- package/dist/core/conversation/ConversationMessage.d.ts.map +1 -0
- package/dist/core/conversation/ConversationMessage.js +66 -0
- package/dist/core/conversation/ConversationMessage.js.map +1 -0
- package/dist/core/evaluation/Evaluator.d.ts +28 -0
- package/dist/core/evaluation/Evaluator.d.ts.map +1 -0
- package/dist/core/evaluation/Evaluator.js +490 -0
- package/dist/core/evaluation/Evaluator.js.map +1 -0
- package/dist/core/evaluation/IEvaluator.d.ts +309 -0
- package/dist/core/evaluation/IEvaluator.d.ts.map +1 -0
- package/dist/core/evaluation/IEvaluator.js +12 -0
- package/dist/core/evaluation/IEvaluator.js.map +1 -0
- package/dist/core/evaluation/LLMJudge.d.ts +105 -0
- package/dist/core/evaluation/LLMJudge.d.ts.map +1 -0
- package/dist/core/evaluation/LLMJudge.js +229 -0
- package/dist/core/evaluation/LLMJudge.js.map +1 -0
- package/dist/core/evaluation/index.d.ts +9 -0
- package/dist/core/evaluation/index.d.ts.map +1 -0
- package/dist/core/evaluation/index.js +9 -0
- package/dist/core/evaluation/index.js.map +1 -0
- package/dist/core/guardrails/IGuardrailService.d.ts +142 -0
- package/dist/core/guardrails/IGuardrailService.d.ts.map +1 -0
- package/dist/core/guardrails/IGuardrailService.js +24 -0
- package/dist/core/guardrails/IGuardrailService.js.map +1 -0
- package/dist/core/guardrails/guardrailDispatcher.d.ts +36 -0
- package/dist/core/guardrails/guardrailDispatcher.d.ts.map +1 -0
- package/dist/core/guardrails/guardrailDispatcher.js +240 -0
- package/dist/core/guardrails/guardrailDispatcher.js.map +1 -0
- package/dist/core/hitl/HumanInteractionManager.d.ts +146 -0
- package/dist/core/hitl/HumanInteractionManager.d.ts.map +1 -0
- package/dist/core/hitl/HumanInteractionManager.js +491 -0
- package/dist/core/hitl/HumanInteractionManager.js.map +1 -0
- package/dist/core/hitl/IHumanInteractionManager.d.ts +521 -0
- package/dist/core/hitl/IHumanInteractionManager.d.ts.map +1 -0
- package/dist/core/hitl/IHumanInteractionManager.js +33 -0
- package/dist/core/hitl/IHumanInteractionManager.js.map +1 -0
- package/dist/core/hitl/index.d.ts +17 -0
- package/dist/core/hitl/index.d.ts.map +1 -0
- package/dist/core/hitl/index.js +17 -0
- package/dist/core/hitl/index.js.map +1 -0
- package/dist/core/knowledge/IKnowledgeGraph.d.ts +351 -0
- package/dist/core/knowledge/IKnowledgeGraph.d.ts.map +1 -0
- package/dist/core/knowledge/IKnowledgeGraph.js +10 -0
- package/dist/core/knowledge/IKnowledgeGraph.js.map +1 -0
- package/dist/core/knowledge/KnowledgeGraph.d.ts +93 -0
- package/dist/core/knowledge/KnowledgeGraph.d.ts.map +1 -0
- package/dist/core/knowledge/KnowledgeGraph.js +601 -0
- package/dist/core/knowledge/KnowledgeGraph.js.map +1 -0
- package/dist/core/knowledge/index.d.ts +8 -0
- package/dist/core/knowledge/index.d.ts.map +1 -0
- package/dist/core/knowledge/index.js +8 -0
- package/dist/core/knowledge/index.js.map +1 -0
- package/dist/core/language/LanguageService.d.ts +77 -0
- package/dist/core/language/LanguageService.d.ts.map +1 -0
- package/dist/core/language/LanguageService.js +305 -0
- package/dist/core/language/LanguageService.js.map +1 -0
- package/dist/core/language/index.d.ts +6 -0
- package/dist/core/language/index.d.ts.map +1 -0
- package/dist/core/language/index.js +6 -0
- package/dist/core/language/index.js.map +1 -0
- package/dist/core/language/interfaces.d.ts +168 -0
- package/dist/core/language/interfaces.d.ts.map +1 -0
- package/dist/core/language/interfaces.js +37 -0
- package/dist/core/language/interfaces.js.map +1 -0
- package/dist/core/language/providers/DeepLTranslationProvider.d.ts +16 -0
- package/dist/core/language/providers/DeepLTranslationProvider.d.ts.map +1 -0
- package/dist/core/language/providers/DeepLTranslationProvider.js +28 -0
- package/dist/core/language/providers/DeepLTranslationProvider.js.map +1 -0
- package/dist/core/language/providers/OpenAITranslationProvider.d.ts +17 -0
- package/dist/core/language/providers/OpenAITranslationProvider.d.ts.map +1 -0
- package/dist/core/language/providers/OpenAITranslationProvider.js +34 -0
- package/dist/core/language/providers/OpenAITranslationProvider.js.map +1 -0
- package/dist/core/language/providers/WhisperDetectionProvider.d.ts +16 -0
- package/dist/core/language/providers/WhisperDetectionProvider.d.ts.map +1 -0
- package/dist/core/language/providers/WhisperDetectionProvider.js +15 -0
- package/dist/core/language/providers/WhisperDetectionProvider.js.map +1 -0
- package/dist/core/llm/IPromptEngine.d.ts +627 -0
- package/dist/core/llm/IPromptEngine.d.ts.map +1 -0
- package/dist/core/llm/IPromptEngine.js +81 -0
- package/dist/core/llm/IPromptEngine.js.map +1 -0
- package/dist/core/llm/PromptEngine.d.ts +108 -0
- package/dist/core/llm/PromptEngine.d.ts.map +1 -0
- package/dist/core/llm/PromptEngine.js +872 -0
- package/dist/core/llm/PromptEngine.js.map +1 -0
- package/dist/core/llm/providers/AIModelProviderManager.d.ts +74 -0
- package/dist/core/llm/providers/AIModelProviderManager.d.ts.map +1 -0
- package/dist/core/llm/providers/AIModelProviderManager.js +263 -0
- package/dist/core/llm/providers/AIModelProviderManager.js.map +1 -0
- package/dist/core/llm/providers/IProvider.d.ts +327 -0
- package/dist/core/llm/providers/IProvider.d.ts.map +1 -0
- package/dist/core/llm/providers/IProvider.js +39 -0
- package/dist/core/llm/providers/IProvider.js.map +1 -0
- package/dist/core/llm/providers/errors/OllamaProviderError.d.ts +36 -0
- package/dist/core/llm/providers/errors/OllamaProviderError.d.ts.map +1 -0
- package/dist/core/llm/providers/errors/OllamaProviderError.js +40 -0
- package/dist/core/llm/providers/errors/OllamaProviderError.js.map +1 -0
- package/dist/core/llm/providers/errors/OpenAIProviderError.d.ts +42 -0
- package/dist/core/llm/providers/errors/OpenAIProviderError.d.ts.map +1 -0
- package/dist/core/llm/providers/errors/OpenAIProviderError.js +44 -0
- package/dist/core/llm/providers/errors/OpenAIProviderError.js.map +1 -0
- package/dist/core/llm/providers/errors/OpenRouterProviderError.d.ts +39 -0
- package/dist/core/llm/providers/errors/OpenRouterProviderError.d.ts.map +1 -0
- package/dist/core/llm/providers/errors/OpenRouterProviderError.js +42 -0
- package/dist/core/llm/providers/errors/OpenRouterProviderError.js.map +1 -0
- package/dist/core/llm/providers/errors/ProviderError.d.ts +37 -0
- package/dist/core/llm/providers/errors/ProviderError.d.ts.map +1 -0
- package/dist/core/llm/providers/errors/ProviderError.js +36 -0
- package/dist/core/llm/providers/errors/ProviderError.js.map +1 -0
- package/dist/core/llm/providers/implementations/OllamaProvider.d.ts +80 -0
- package/dist/core/llm/providers/implementations/OllamaProvider.d.ts.map +1 -0
- package/dist/core/llm/providers/implementations/OllamaProvider.js +473 -0
- package/dist/core/llm/providers/implementations/OllamaProvider.js.map +1 -0
- package/dist/core/llm/providers/implementations/OpenAIProvider.d.ts +160 -0
- package/dist/core/llm/providers/implementations/OpenAIProvider.d.ts.map +1 -0
- package/dist/core/llm/providers/implementations/OpenAIProvider.js +672 -0
- package/dist/core/llm/providers/implementations/OpenAIProvider.js.map +1 -0
- package/dist/core/llm/providers/implementations/OpenRouterProvider.d.ts +51 -0
- package/dist/core/llm/providers/implementations/OpenRouterProvider.d.ts.map +1 -0
- package/dist/core/llm/providers/implementations/OpenRouterProvider.js +499 -0
- package/dist/core/llm/providers/implementations/OpenRouterProvider.js.map +1 -0
- package/dist/core/llm/routing/IModelRouter.d.ts +129 -0
- package/dist/core/llm/routing/IModelRouter.d.ts.map +1 -0
- package/dist/core/llm/routing/IModelRouter.js +14 -0
- package/dist/core/llm/routing/IModelRouter.js.map +1 -0
- package/dist/core/llm/routing/ModelRouter.d.ts +157 -0
- package/dist/core/llm/routing/ModelRouter.d.ts.map +1 -0
- package/dist/core/llm/routing/ModelRouter.js +190 -0
- package/dist/core/llm/routing/ModelRouter.js.map +1 -0
- package/dist/core/llm/streaming/StreamingBatcher.d.ts +54 -0
- package/dist/core/llm/streaming/StreamingBatcher.d.ts.map +1 -0
- package/dist/core/llm/streaming/StreamingBatcher.js +173 -0
- package/dist/core/llm/streaming/StreamingBatcher.js.map +1 -0
- package/dist/core/llm/streaming/StreamingReconstructor.d.ts +69 -0
- package/dist/core/llm/streaming/StreamingReconstructor.d.ts.map +1 -0
- package/dist/core/llm/streaming/StreamingReconstructor.js +102 -0
- package/dist/core/llm/streaming/StreamingReconstructor.js.map +1 -0
- package/dist/core/marketplace/IMarketplace.d.ts +500 -0
- package/dist/core/marketplace/IMarketplace.d.ts.map +1 -0
- package/dist/core/marketplace/IMarketplace.js +10 -0
- package/dist/core/marketplace/IMarketplace.js.map +1 -0
- package/dist/core/marketplace/Marketplace.d.ts +122 -0
- package/dist/core/marketplace/Marketplace.d.ts.map +1 -0
- package/dist/core/marketplace/Marketplace.js +591 -0
- package/dist/core/marketplace/Marketplace.js.map +1 -0
- package/dist/core/marketplace/index.d.ts +8 -0
- package/dist/core/marketplace/index.d.ts.map +1 -0
- package/dist/core/marketplace/index.js +8 -0
- package/dist/core/marketplace/index.js.map +1 -0
- package/dist/core/observability/ITracer.d.ts +317 -0
- package/dist/core/observability/ITracer.d.ts.map +1 -0
- package/dist/core/observability/ITracer.js +55 -0
- package/dist/core/observability/ITracer.js.map +1 -0
- package/dist/core/observability/Tracer.d.ts +76 -0
- package/dist/core/observability/Tracer.d.ts.map +1 -0
- package/dist/core/observability/Tracer.js +360 -0
- package/dist/core/observability/Tracer.js.map +1 -0
- package/dist/core/observability/index.d.ts +9 -0
- package/dist/core/observability/index.d.ts.map +1 -0
- package/dist/core/observability/index.js +8 -0
- package/dist/core/observability/index.js.map +1 -0
- package/dist/core/orchestration/AgentOrchestrator.d.ts +243 -0
- package/dist/core/orchestration/AgentOrchestrator.d.ts.map +1 -0
- package/dist/core/orchestration/AgentOrchestrator.js +648 -0
- package/dist/core/orchestration/AgentOrchestrator.js.map +1 -0
- package/dist/core/orchestration/IAgentOrchestrator.d.ts +44 -0
- package/dist/core/orchestration/IAgentOrchestrator.d.ts.map +1 -0
- package/dist/core/orchestration/IAgentOrchestrator.js +4 -0
- package/dist/core/orchestration/IAgentOrchestrator.js.map +1 -0
- package/dist/core/orchestration/helpers.d.ts +12 -0
- package/dist/core/orchestration/helpers.d.ts.map +1 -0
- package/dist/core/orchestration/helpers.js +36 -0
- package/dist/core/orchestration/helpers.js.map +1 -0
- package/dist/core/planning/IPlanningEngine.d.ts +524 -0
- package/dist/core/planning/IPlanningEngine.d.ts.map +1 -0
- package/dist/core/planning/IPlanningEngine.js +32 -0
- package/dist/core/planning/IPlanningEngine.js.map +1 -0
- package/dist/core/planning/PlanningEngine.d.ts +161 -0
- package/dist/core/planning/PlanningEngine.d.ts.map +1 -0
- package/dist/core/planning/PlanningEngine.js +783 -0
- package/dist/core/planning/PlanningEngine.js.map +1 -0
- package/dist/core/planning/index.d.ts +25 -0
- package/dist/core/planning/index.d.ts.map +1 -0
- package/dist/core/planning/index.js +25 -0
- package/dist/core/planning/index.js.map +1 -0
- package/dist/core/sandbox/CodeSandbox.d.ts +86 -0
- package/dist/core/sandbox/CodeSandbox.d.ts.map +1 -0
- package/dist/core/sandbox/CodeSandbox.js +475 -0
- package/dist/core/sandbox/CodeSandbox.js.map +1 -0
- package/dist/core/sandbox/ICodeSandbox.d.ts +249 -0
- package/dist/core/sandbox/ICodeSandbox.d.ts.map +1 -0
- package/dist/core/sandbox/ICodeSandbox.js +24 -0
- package/dist/core/sandbox/ICodeSandbox.js.map +1 -0
- package/dist/core/sandbox/index.d.ts +9 -0
- package/dist/core/sandbox/index.d.ts.map +1 -0
- package/dist/core/sandbox/index.js +8 -0
- package/dist/core/sandbox/index.js.map +1 -0
- package/dist/core/storage/IStorageAdapter.d.ts +483 -0
- package/dist/core/storage/IStorageAdapter.d.ts.map +1 -0
- package/dist/core/storage/IStorageAdapter.js +19 -0
- package/dist/core/storage/IStorageAdapter.js.map +1 -0
- package/dist/core/storage/InMemoryStorageAdapter.d.ts +192 -0
- package/dist/core/storage/InMemoryStorageAdapter.d.ts.map +1 -0
- package/dist/core/storage/InMemoryStorageAdapter.js +343 -0
- package/dist/core/storage/InMemoryStorageAdapter.js.map +1 -0
- package/dist/core/storage/SqlStorageAdapter.d.ts +262 -0
- package/dist/core/storage/SqlStorageAdapter.d.ts.map +1 -0
- package/dist/core/storage/SqlStorageAdapter.js +485 -0
- package/dist/core/storage/SqlStorageAdapter.js.map +1 -0
- package/dist/core/storage/index.d.ts +14 -0
- package/dist/core/storage/index.d.ts.map +1 -0
- package/dist/core/storage/index.js +14 -0
- package/dist/core/storage/index.js.map +1 -0
- package/dist/core/streaming/IStreamClient.d.ts +72 -0
- package/dist/core/streaming/IStreamClient.d.ts.map +1 -0
- package/dist/core/streaming/IStreamClient.js +12 -0
- package/dist/core/streaming/IStreamClient.js.map +1 -0
- package/dist/core/streaming/StreamingManager.d.ts +242 -0
- package/dist/core/streaming/StreamingManager.d.ts.map +1 -0
- package/dist/core/streaming/StreamingManager.js +282 -0
- package/dist/core/streaming/StreamingManager.js.map +1 -0
- package/dist/core/structured/IStructuredOutputManager.d.ts +701 -0
- package/dist/core/structured/IStructuredOutputManager.d.ts.map +1 -0
- package/dist/core/structured/IStructuredOutputManager.js +74 -0
- package/dist/core/structured/IStructuredOutputManager.js.map +1 -0
- package/dist/core/structured/StructuredOutputManager.d.ts +140 -0
- package/dist/core/structured/StructuredOutputManager.d.ts.map +1 -0
- package/dist/core/structured/StructuredOutputManager.js +1015 -0
- package/dist/core/structured/StructuredOutputManager.js.map +1 -0
- package/dist/core/structured/index.d.ts +34 -0
- package/dist/core/structured/index.d.ts.map +1 -0
- package/dist/core/structured/index.js +34 -0
- package/dist/core/structured/index.js.map +1 -0
- package/dist/core/tools/ITool.d.ts +228 -0
- package/dist/core/tools/ITool.d.ts.map +1 -0
- package/dist/core/tools/ITool.js +11 -0
- package/dist/core/tools/ITool.js.map +1 -0
- package/dist/core/tools/IToolOrchestrator.d.ts +131 -0
- package/dist/core/tools/IToolOrchestrator.d.ts.map +1 -0
- package/dist/core/tools/IToolOrchestrator.js +14 -0
- package/dist/core/tools/IToolOrchestrator.js.map +1 -0
- package/dist/core/tools/ToolExecutor.d.ts +143 -0
- package/dist/core/tools/ToolExecutor.d.ts.map +1 -0
- package/dist/core/tools/ToolExecutor.js +364 -0
- package/dist/core/tools/ToolExecutor.js.map +1 -0
- package/dist/core/tools/ToolOrchestrator.d.ts +142 -0
- package/dist/core/tools/ToolOrchestrator.d.ts.map +1 -0
- package/dist/core/tools/ToolOrchestrator.js +373 -0
- package/dist/core/tools/ToolOrchestrator.js.map +1 -0
- package/dist/core/tools/permissions/IToolPermissionManager.d.ts +195 -0
- package/dist/core/tools/permissions/IToolPermissionManager.d.ts.map +1 -0
- package/dist/core/tools/permissions/IToolPermissionManager.js +14 -0
- package/dist/core/tools/permissions/IToolPermissionManager.js.map +1 -0
- package/dist/core/tools/permissions/ToolPermissionManager.d.ts +203 -0
- package/dist/core/tools/permissions/ToolPermissionManager.d.ts.map +1 -0
- package/dist/core/tools/permissions/ToolPermissionManager.js +298 -0
- package/dist/core/tools/permissions/ToolPermissionManager.js.map +1 -0
- package/dist/core/ui/IUIComponent.d.ts +11 -0
- package/dist/core/ui/IUIComponent.d.ts.map +1 -0
- package/dist/core/ui/IUIComponent.js +2 -0
- package/dist/core/ui/IUIComponent.js.map +1 -0
- package/dist/core/usage/UsageLedger.d.ts +81 -0
- package/dist/core/usage/UsageLedger.d.ts.map +1 -0
- package/dist/core/usage/UsageLedger.js +135 -0
- package/dist/core/usage/UsageLedger.js.map +1 -0
- package/dist/core/workflows/IWorkflowEngine.d.ts +42 -0
- package/dist/core/workflows/IWorkflowEngine.d.ts.map +1 -0
- package/dist/core/workflows/IWorkflowEngine.js +2 -0
- package/dist/core/workflows/IWorkflowEngine.js.map +1 -0
- package/dist/core/workflows/WorkflowEngine.d.ts +28 -0
- package/dist/core/workflows/WorkflowEngine.d.ts.map +1 -0
- package/dist/core/workflows/WorkflowEngine.js +309 -0
- package/dist/core/workflows/WorkflowEngine.js.map +1 -0
- package/dist/core/workflows/WorkflowTypes.d.ts +180 -0
- package/dist/core/workflows/WorkflowTypes.d.ts.map +1 -0
- package/dist/core/workflows/WorkflowTypes.js +26 -0
- package/dist/core/workflows/WorkflowTypes.js.map +1 -0
- package/dist/core/workflows/runtime/WorkflowRuntime.d.ts +70 -0
- package/dist/core/workflows/runtime/WorkflowRuntime.d.ts.map +1 -0
- package/dist/core/workflows/runtime/WorkflowRuntime.js +566 -0
- package/dist/core/workflows/runtime/WorkflowRuntime.js.map +1 -0
- package/dist/core/workflows/storage/IWorkflowStore.d.ts +75 -0
- package/dist/core/workflows/storage/IWorkflowStore.d.ts.map +1 -0
- package/dist/core/workflows/storage/IWorkflowStore.js +2 -0
- package/dist/core/workflows/storage/IWorkflowStore.js.map +1 -0
- package/dist/core/workflows/storage/InMemoryWorkflowStore.d.ts +14 -0
- package/dist/core/workflows/storage/InMemoryWorkflowStore.d.ts.map +1 -0
- package/dist/core/workflows/storage/InMemoryWorkflowStore.js +130 -0
- package/dist/core/workflows/storage/InMemoryWorkflowStore.js.map +1 -0
- package/dist/extensions/ExtensionLoader.d.ts +119 -0
- package/dist/extensions/ExtensionLoader.d.ts.map +1 -0
- package/dist/extensions/ExtensionLoader.js +297 -0
- package/dist/extensions/ExtensionLoader.js.map +1 -0
- package/dist/extensions/ExtensionManager.d.ts +49 -0
- package/dist/extensions/ExtensionManager.d.ts.map +1 -0
- package/dist/extensions/ExtensionManager.js +197 -0
- package/dist/extensions/ExtensionManager.js.map +1 -0
- package/dist/extensions/ExtensionRegistry.d.ts +39 -0
- package/dist/extensions/ExtensionRegistry.d.ts.map +1 -0
- package/dist/extensions/ExtensionRegistry.js +103 -0
- package/dist/extensions/ExtensionRegistry.js.map +1 -0
- package/dist/extensions/MultiRegistryLoader.d.ts +61 -0
- package/dist/extensions/MultiRegistryLoader.d.ts.map +1 -0
- package/dist/extensions/MultiRegistryLoader.js +169 -0
- package/dist/extensions/MultiRegistryLoader.js.map +1 -0
- package/dist/extensions/RegistryConfig.d.ts +86 -0
- package/dist/extensions/RegistryConfig.d.ts.map +1 -0
- package/dist/extensions/RegistryConfig.js +99 -0
- package/dist/extensions/RegistryConfig.js.map +1 -0
- package/dist/extensions/events.d.ts +19 -0
- package/dist/extensions/events.d.ts.map +1 -0
- package/dist/extensions/events.js +2 -0
- package/dist/extensions/events.js.map +1 -0
- package/dist/extensions/index.d.ts +9 -0
- package/dist/extensions/index.d.ts.map +1 -0
- package/dist/extensions/index.js +9 -0
- package/dist/extensions/index.js.map +1 -0
- package/dist/extensions/manifest.d.ts +52 -0
- package/dist/extensions/manifest.d.ts.map +1 -0
- package/dist/extensions/manifest.js +2 -0
- package/dist/extensions/manifest.js.map +1 -0
- package/dist/extensions/types.d.ts +294 -0
- package/dist/extensions/types.d.ts.map +1 -0
- package/dist/extensions/types.js +12 -0
- package/dist/extensions/types.js.map +1 -0
- package/dist/index.d.ts +49 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +59 -0
- package/dist/index.js.map +1 -0
- package/dist/logging/ILogger.d.ts +8 -0
- package/dist/logging/ILogger.d.ts.map +1 -0
- package/dist/logging/ILogger.js +2 -0
- package/dist/logging/ILogger.js.map +1 -0
- package/dist/logging/PinoLogger.d.ts +12 -0
- package/dist/logging/PinoLogger.d.ts.map +1 -0
- package/dist/logging/PinoLogger.js +22 -0
- package/dist/logging/PinoLogger.js.map +1 -0
- package/dist/logging/loggerFactory.d.ts +6 -0
- package/dist/logging/loggerFactory.d.ts.map +1 -0
- package/dist/logging/loggerFactory.js +14 -0
- package/dist/logging/loggerFactory.js.map +1 -0
- package/dist/rag/EmbeddingManager.d.ts +81 -0
- package/dist/rag/EmbeddingManager.d.ts.map +1 -0
- package/dist/rag/EmbeddingManager.js +412 -0
- package/dist/rag/EmbeddingManager.js.map +1 -0
- package/dist/rag/IEmbeddingManager.d.ts +277 -0
- package/dist/rag/IEmbeddingManager.d.ts.map +1 -0
- package/dist/rag/IEmbeddingManager.js +19 -0
- package/dist/rag/IEmbeddingManager.js.map +1 -0
- package/dist/rag/IRetrievalAugmentor.d.ts +208 -0
- package/dist/rag/IRetrievalAugmentor.d.ts.map +1 -0
- package/dist/rag/IRetrievalAugmentor.js +21 -0
- package/dist/rag/IRetrievalAugmentor.js.map +1 -0
- package/dist/rag/IVectorStore.d.ts +351 -0
- package/dist/rag/IVectorStore.d.ts.map +1 -0
- package/dist/rag/IVectorStore.js +15 -0
- package/dist/rag/IVectorStore.js.map +1 -0
- package/dist/rag/IVectorStoreManager.d.ts +121 -0
- package/dist/rag/IVectorStoreManager.d.ts.map +1 -0
- package/dist/rag/IVectorStoreManager.js +13 -0
- package/dist/rag/IVectorStoreManager.js.map +1 -0
- package/dist/rag/RetrievalAugmentor.d.ts +99 -0
- package/dist/rag/RetrievalAugmentor.d.ts.map +1 -0
- package/dist/rag/RetrievalAugmentor.js +674 -0
- package/dist/rag/RetrievalAugmentor.js.map +1 -0
- package/dist/rag/VectorStoreManager.d.ts +90 -0
- package/dist/rag/VectorStoreManager.d.ts.map +1 -0
- package/dist/rag/VectorStoreManager.js +283 -0
- package/dist/rag/VectorStoreManager.js.map +1 -0
- package/dist/rag/implementations/index.d.ts +9 -0
- package/dist/rag/implementations/index.d.ts.map +1 -0
- package/dist/rag/implementations/index.js +9 -0
- package/dist/rag/implementations/index.js.map +1 -0
- package/dist/rag/implementations/vector_stores/InMemoryVectorStore.d.ts +132 -0
- package/dist/rag/implementations/vector_stores/InMemoryVectorStore.d.ts.map +1 -0
- package/dist/rag/implementations/vector_stores/InMemoryVectorStore.js +539 -0
- package/dist/rag/implementations/vector_stores/InMemoryVectorStore.js.map +1 -0
- package/dist/rag/implementations/vector_stores/SqlVectorStore.d.ts +265 -0
- package/dist/rag/implementations/vector_stores/SqlVectorStore.d.ts.map +1 -0
- package/dist/rag/implementations/vector_stores/SqlVectorStore.js +755 -0
- package/dist/rag/implementations/vector_stores/SqlVectorStore.js.map +1 -0
- package/dist/rag/implementations/vector_stores/index.d.ts +10 -0
- package/dist/rag/implementations/vector_stores/index.d.ts.map +1 -0
- package/dist/rag/implementations/vector_stores/index.js +12 -0
- package/dist/rag/implementations/vector_stores/index.js.map +1 -0
- package/dist/rag/index.d.ts +95 -0
- package/dist/rag/index.d.ts.map +1 -0
- package/dist/rag/index.js +97 -0
- package/dist/rag/index.js.map +1 -0
- package/dist/services/user_auth/AuthService.d.ts +13 -0
- package/dist/services/user_auth/AuthService.d.ts.map +1 -0
- package/dist/services/user_auth/AuthService.js +24 -0
- package/dist/services/user_auth/AuthService.js.map +1 -0
- package/dist/services/user_auth/SubscriptionService.d.ts +14 -0
- package/dist/services/user_auth/SubscriptionService.d.ts.map +1 -0
- package/dist/services/user_auth/SubscriptionService.js +34 -0
- package/dist/services/user_auth/SubscriptionService.js.map +1 -0
- package/dist/services/user_auth/types.d.ts +30 -0
- package/dist/services/user_auth/types.d.ts.map +1 -0
- package/dist/services/user_auth/types.js +2 -0
- package/dist/services/user_auth/types.js.map +1 -0
- package/dist/stubs/prismaClient.d.ts +35 -0
- package/dist/stubs/prismaClient.d.ts.map +1 -0
- package/dist/stubs/prismaClient.js +47 -0
- package/dist/stubs/prismaClient.js.map +1 -0
- package/dist/types/rateLimitTypes.d.ts +70 -0
- package/dist/types/rateLimitTypes.d.ts.map +1 -0
- package/dist/types/rateLimitTypes.js +55 -0
- package/dist/types/rateLimitTypes.js.map +1 -0
- package/dist/utils/errors.d.ts +80 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/errors.js +201 -0
- package/dist/utils/errors.js.map +1 -0
- package/dist/utils/uuid.d.ts +11 -0
- package/dist/utils/uuid.d.ts.map +1 -0
- package/dist/utils/uuid.js +64 -0
- package/dist/utils/uuid.js.map +1 -0
- package/package.json +84 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StructuredOutputManager.js","sourceRoot":"","sources":["../../../src/core/structured/StructuredOutputManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,EAaL,qBAAqB,GACtB,MAAM,4BAA4B,CAAC;AAQpC,uCAAuC;AACvC,SAAS,YAAY,CAAC,KAAiF;IACrG,IAAI,CAAC,KAAK;QAAE,OAAO,SAAS,CAAC;IAC7B,OAAO;QACL,YAAY,EAAE,KAAK,CAAC,YAAY,IAAI,CAAC;QACrC,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,IAAI,CAAC;QAC7C,WAAW,EAAE,KAAK,CAAC,WAAW,IAAI,CAAC;KACpC,CAAC;AACJ,CAAC;AAwCD;;GAEG;AACH,MAAM,qBAAqB,GAAyC;IAClE,MAAM,EAAE;QACN,gBAAgB,EAAE,IAAI;QACtB,uBAAuB,EAAE,IAAI;QAC7B,qBA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AC7B,CAAC,CAAC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,gBAAgB;gBACjD,CAAC,CAAC,CAAC,CAAC;QAER,IAAI,CAAC,KAAK,CAAC,YAAY;YACrB,IAAI,CAAC,KAAK,CAAC,gBAAgB,GAAG,CAAC;gBAC7B,CAAC,CAAC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,gBAAgB;gBACnD,CAAC,CAAC,CAAC,CAAC;QAER,+BAA+B;QAC/B,IAAI,CAAC,KAAK,CAAC,mBAAmB,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,OAAO,EAAE,CAAC;aAC9E,GAAG,CAAC,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;aAC/C,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;aACjC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAClB,CAAC;CACF"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Structured Output Module Index
|
|
3
|
+
* @description Exports for the Structured Output Manager in AgentOS.
|
|
4
|
+
*
|
|
5
|
+
* The Structured Output module provides:
|
|
6
|
+
* - JSON Schema validation for LLM outputs
|
|
7
|
+
* - Multiple generation strategies (JSON mode, function calling, prompt engineering)
|
|
8
|
+
* - Parallel function/tool calling with argument validation
|
|
9
|
+
* - Entity extraction from unstructured text
|
|
10
|
+
* - Robust JSON parsing with error recovery
|
|
11
|
+
*
|
|
12
|
+
* @module AgentOS/Structured
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import {
|
|
17
|
+
* StructuredOutputManager,
|
|
18
|
+
* JSONSchema,
|
|
19
|
+
* StructuredGenerationOptions,
|
|
20
|
+
* } from '../../core/structured';
|
|
21
|
+
*
|
|
22
|
+
* const manager = new StructuredOutputManager({ llmProviderManager });
|
|
23
|
+
*
|
|
24
|
+
* const result = await manager.generate({
|
|
25
|
+
* prompt: 'Extract person info from: John Doe, 30, john@example.com',
|
|
26
|
+
* schema: personSchema,
|
|
27
|
+
* schemaName: 'Person',
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export type { IStructuredOutputManager, JSONSchema, JSONSchemaType, JSONSchemaStringFormat, StructuredOutputStrategy, StructuredGenerationOptions, StructuredGenerationResult, ParallelFunctionCallOptions, ParallelFunctionCallResult, FunctionDefinition, FunctionCallResult, EntityExtractionOptions, EntityExtractionResult, ValidationIssue, StructuredOutputStats, } from './IStructuredOutputManager';
|
|
32
|
+
export { StructuredOutputError } from './IStructuredOutputManager';
|
|
33
|
+
export { StructuredOutputManager, type StructuredOutputManagerConfig, } from './StructuredOutputManager';
|
|
34
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/structured/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAGH,YAAY,EACV,wBAAwB,EACxB,UAAU,EACV,cAAc,EACd,sBAAsB,EACtB,wBAAwB,EACxB,2BAA2B,EAC3B,0BAA0B,EAC1B,2BAA2B,EAC3B,0BAA0B,EAC1B,kBAAkB,EAClB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACtB,eAAe,EACf,qBAAqB,GACtB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,OAAO,EACL,uBAAuB,EACvB,KAAK,6BAA6B,GACnC,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Structured Output Module Index
|
|
3
|
+
* @description Exports for the Structured Output Manager in AgentOS.
|
|
4
|
+
*
|
|
5
|
+
* The Structured Output module provides:
|
|
6
|
+
* - JSON Schema validation for LLM outputs
|
|
7
|
+
* - Multiple generation strategies (JSON mode, function calling, prompt engineering)
|
|
8
|
+
* - Parallel function/tool calling with argument validation
|
|
9
|
+
* - Entity extraction from unstructured text
|
|
10
|
+
* - Robust JSON parsing with error recovery
|
|
11
|
+
*
|
|
12
|
+
* @module AgentOS/Structured
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import {
|
|
17
|
+
* StructuredOutputManager,
|
|
18
|
+
* JSONSchema,
|
|
19
|
+
* StructuredGenerationOptions,
|
|
20
|
+
* } from '../../core/structured/index.js';
|
|
21
|
+
*
|
|
22
|
+
* const manager = new StructuredOutputManager({ llmProviderManager });
|
|
23
|
+
*
|
|
24
|
+
* const result = await manager.generate({
|
|
25
|
+
* prompt: 'Extract person info from: John Doe, 30, john@example.com',
|
|
26
|
+
* schema: personSchema,
|
|
27
|
+
* schemaName: 'Person',
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export { StructuredOutputError } from './IStructuredOutputManager.js';
|
|
32
|
+
// Implementation
|
|
33
|
+
export { StructuredOutputManager, } from './StructuredOutputManager.js';
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/structured/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAqBH,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,iBAAiB;AACjB,OAAO,EACL,uBAAuB,GAExB,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Defines the ITool interface, the core contract for any tool
|
|
3
|
+
* that can be invoked within the AgentOS ecosystem, typically by a GMI.
|
|
4
|
+
* This interface ensures that all tools provide necessary metadata for discovery,
|
|
5
|
+
* schema validation, permission checking, and execution.
|
|
6
|
+
*
|
|
7
|
+
* @module backend/agentos/core/tools/ITool
|
|
8
|
+
*/
|
|
9
|
+
import { UserContext } from '../../cognitive_substrate/IGMI';
|
|
10
|
+
/**
|
|
11
|
+
* Represents a JSON schema definition.
|
|
12
|
+
* This type is used to define the expected structure for tool inputs and outputs,
|
|
13
|
+
* enabling validation and clear contracts for LLMs.
|
|
14
|
+
* @see https://json-schema.org/
|
|
15
|
+
* @typedef {object} JSONSchemaObject
|
|
16
|
+
* @example
|
|
17
|
+
* const schema: JSONSchemaObject = {
|
|
18
|
+
* type: "object",
|
|
19
|
+
* properties: {
|
|
20
|
+
* query: { type: "string", description: "The search query." },
|
|
21
|
+
* max_results: { type: "integer", minimum: 1, default: 5 }
|
|
22
|
+
* },
|
|
23
|
+
* required: ["query"]
|
|
24
|
+
* };
|
|
25
|
+
*/
|
|
26
|
+
export type JSONSchemaObject = Record<string, any>;
|
|
27
|
+
/**
|
|
28
|
+
* Defines the standardized outcome of a tool's execution.
|
|
29
|
+
* It captures whether the execution was successful, the resulting output data,
|
|
30
|
+
* or any error information if it failed.
|
|
31
|
+
*
|
|
32
|
+
* @interface ToolExecutionResult
|
|
33
|
+
* @template TOutput The expected type of the `output` data if the tool executes successfully. Defaults to `any`.
|
|
34
|
+
* @property {boolean} success - Indicates whether the tool execution was successful. `true` for success, `false` for failure.
|
|
35
|
+
* @property {TOutput} [output] - The output data from the tool if successful. The structure
|
|
36
|
+
* of this data should ideally conform to the tool's `outputSchema` (if defined).
|
|
37
|
+
* @property {string} [error] - A human-readable error message if the execution failed (`success` is `false`).
|
|
38
|
+
* @property {string} [contentType="application/json"] - The MIME type of the `output` data.
|
|
39
|
+
* Defaults to "application/json". Other common types include "text/plain", "image/png", etc.
|
|
40
|
+
* This helps consumers of the tool result to correctly interpret the output.
|
|
41
|
+
* @property {Record<string, any>} [details] - An optional object for any additional details or metadata
|
|
42
|
+
* about the execution or error. This can include things like error codes, stack traces (for debugging),
|
|
43
|
+
* performance metrics, or other contextual information.
|
|
44
|
+
*/
|
|
45
|
+
export interface ToolExecutionResult<TOutput = any> {
|
|
46
|
+
success: boolean;
|
|
47
|
+
output?: TOutput;
|
|
48
|
+
error?: string;
|
|
49
|
+
contentType?: string;
|
|
50
|
+
details?: Record<string, any>;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Defines the invocation context passed to a tool's `execute` method.
|
|
54
|
+
* This context provides the tool with essential information about the calling entity (GMI, Persona),
|
|
55
|
+
* the user, and the overall session, enabling context-aware tool execution.
|
|
56
|
+
*
|
|
57
|
+
* @interface ToolExecutionContext
|
|
58
|
+
* @property {string} gmiId - The unique identifier of the GMI (Generalized Mind Instance) that is invoking the tool.
|
|
59
|
+
* @property {string} personaId - The unique identifier of the active Persona within the GMI that requested the tool execution.
|
|
60
|
+
* @property {UserContext} userContext - Contextual information about the end-user associated with the current interaction,
|
|
61
|
+
* which might include user ID, preferences, skill level, etc.
|
|
62
|
+
* @property {string} [correlationId] - An optional identifier used to correlate this specific tool call with other
|
|
63
|
+
* operations, logs, or events across different parts of the system. Useful for tracing and debugging.
|
|
64
|
+
* @property {Record<string, any>} [sessionData] - Optional. Ephemeral data relevant to the current session, potentially
|
|
65
|
+
* sourced from the GMI's working memory or the orchestrator. This allows tools to access dynamic session state
|
|
66
|
+
* if needed for their operation (e.g., user's current location, temporary files).
|
|
67
|
+
*/
|
|
68
|
+
export interface ToolExecutionContext {
|
|
69
|
+
gmiId: string;
|
|
70
|
+
personaId: string;
|
|
71
|
+
userContext: UserContext;
|
|
72
|
+
correlationId?: string;
|
|
73
|
+
sessionData?: Record<string, any>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @interface ITool
|
|
77
|
+
* @template TInput - The type of the input arguments object this tool expects. Defaults to `any`. It should ideally be a specific interface matching the `inputSchema`.
|
|
78
|
+
* @template TOutput - The type of the output data this tool produces upon successful execution. Defaults to `any`. It should ideally be a specific interface matching the `outputSchema`.
|
|
79
|
+
* @description The core interface that all tools within AgentOS must implement.
|
|
80
|
+
* It provides a standardized way for tools to declare their identity, capabilities,
|
|
81
|
+
* input/output schemas, required permissions, and the core execution logic.
|
|
82
|
+
* This standardization is crucial for tool discovery, LLM interaction, validation, and orchestrated execution.
|
|
83
|
+
*/
|
|
84
|
+
export interface ITool<TInput extends Record<string, any> = any, TOutput = any> {
|
|
85
|
+
/**
|
|
86
|
+
* A globally unique identifier for this specific tool (e.g., "web-search-engine-v1.2", "stock-price-fetcher").
|
|
87
|
+
* This ID is used for internal registration, management, and precise identification.
|
|
88
|
+
* It's recommended to use a namespaced, versioned format (e.g., `vendor-toolname-version`).
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @readonly
|
|
91
|
+
*/
|
|
92
|
+
readonly id: string;
|
|
93
|
+
/**
|
|
94
|
+
* The functional name of the tool, as it should be presented to and used by an LLM in a tool call request
|
|
95
|
+
* (e.g., "searchWeb", "executePythonCode", "getWeatherForecast").
|
|
96
|
+
* This name must be unique among the set of tools made available to a given GMI/LLM at any time.
|
|
97
|
+
* It should be concise, descriptive, and typically in camelCase or snake_case.
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @readonly
|
|
100
|
+
*/
|
|
101
|
+
readonly name: string;
|
|
102
|
+
/**
|
|
103
|
+
* A concise, human-readable title or display name for the tool.
|
|
104
|
+
* Used in user interfaces, logs, or when presenting tool options to developers or users.
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @readonly
|
|
107
|
+
* @example "Web Search Engine", "Advanced Python Code Interpreter"
|
|
108
|
+
*/
|
|
109
|
+
readonly displayName: string;
|
|
110
|
+
/**
|
|
111
|
+
* A detailed, natural language description of what the tool does, its primary purpose,
|
|
112
|
+
* typical use cases, and any important considerations or limitations for its use.
|
|
113
|
+
* This description is critical for an LLM to understand the tool's capabilities and
|
|
114
|
+
* make informed decisions about when and how to invoke it. It should be comprehensive enough
|
|
115
|
+
* for the LLM to grasp the tool's semantics.
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @readonly
|
|
118
|
+
*/
|
|
119
|
+
readonly description: string;
|
|
120
|
+
/**
|
|
121
|
+
* The JSON schema defining the structure, types, and constraints of the input arguments object
|
|
122
|
+
* that this tool expects. This schema is used by:
|
|
123
|
+
* 1. LLMs: To construct valid argument objects when requesting a tool call.
|
|
124
|
+
* 2. `ToolExecutor`: For validating the arguments before invoking the tool's `execute` method.
|
|
125
|
+
* It should follow the JSON Schema specification.
|
|
126
|
+
* @see https://json-schema.org/
|
|
127
|
+
* @type {JSONSchemaObject}
|
|
128
|
+
* @readonly
|
|
129
|
+
*/
|
|
130
|
+
readonly inputSchema: JSONSchemaObject;
|
|
131
|
+
/**
|
|
132
|
+
* Optional. The JSON schema defining the structure and types of the output object
|
|
133
|
+
* that this tool will produce upon successful execution.
|
|
134
|
+
* Providing an output schema helps in validating the tool's output, provides clarity for
|
|
135
|
+
* consumers of the tool's result (including other tools or the GMI), and can aid the LLM
|
|
136
|
+
* in understanding what to expect back from the tool.
|
|
137
|
+
* @type {JSONSchemaObject | undefined}
|
|
138
|
+
* @optional
|
|
139
|
+
* @readonly
|
|
140
|
+
*/
|
|
141
|
+
readonly outputSchema?: JSONSchemaObject;
|
|
142
|
+
/**
|
|
143
|
+
* Optional. An array of capability strings (e.g., "capability:filesystem:read", "capability:network:external_api")
|
|
144
|
+
* that the active Persona (or GMI configuration) must possess to be authorized to use this tool.
|
|
145
|
+
* If this array is empty or undefined, the tool might be generally available or rely on other
|
|
146
|
+
* permission mechanisms (e.g., user subscription tiers).
|
|
147
|
+
* @type {string[] | undefined}
|
|
148
|
+
* @optional
|
|
149
|
+
* @readonly
|
|
150
|
+
* @example `["capability:web_search", "capability:execute_code_unsafe"]`
|
|
151
|
+
*/
|
|
152
|
+
readonly requiredCapabilities?: string[];
|
|
153
|
+
/**
|
|
154
|
+
* Optional. A category or group to which this tool belongs (e.g., "data_analysis", "communication", "file_system", "image_generation").
|
|
155
|
+
* This is useful for organizing tools, for filtering in UIs or registries, and potentially for
|
|
156
|
+
* aiding an LLM in selecting from a large set of tools.
|
|
157
|
+
* @type {string | undefined}
|
|
158
|
+
* @optional
|
|
159
|
+
* @readonly
|
|
160
|
+
*/
|
|
161
|
+
readonly category?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Optional. The version of the tool (e.g., "1.0.0", "2.1-beta", "2024-05-24").
|
|
164
|
+
* Useful for managing updates and compatibility.
|
|
165
|
+
* @type {string | undefined}
|
|
166
|
+
* @optional
|
|
167
|
+
* @readonly
|
|
168
|
+
*/
|
|
169
|
+
readonly version?: string;
|
|
170
|
+
/**
|
|
171
|
+
* Optional. Indicates if the tool might have side effects on external systems
|
|
172
|
+
* (e.g., writing to a database, sending an email, making a purchase, modifying a file).
|
|
173
|
+
* Defaults to `false` if not specified. LLMs or orchestrators might handle tools with side effects
|
|
174
|
+
* with greater caution, potentially requiring explicit user confirmation.
|
|
175
|
+
* @type {boolean | undefined}
|
|
176
|
+
* @optional
|
|
177
|
+
* @readonly
|
|
178
|
+
*/
|
|
179
|
+
readonly hasSideEffects?: boolean;
|
|
180
|
+
/**
|
|
181
|
+
* Executes the core logic of the tool with the provided arguments and execution context.
|
|
182
|
+
* This method is asynchronous and should encapsulate the tool's primary functionality.
|
|
183
|
+
* Implementations should handle their own internal errors gracefully and package them
|
|
184
|
+
* into the `ToolExecutionResult` object.
|
|
185
|
+
*
|
|
186
|
+
* @public
|
|
187
|
+
* @async
|
|
188
|
+
* @param {TInput} args - The input arguments for the tool. These arguments are expected to have been
|
|
189
|
+
* validated against the tool's `inputSchema` by the calling system (e.g., `ToolExecutor`).
|
|
190
|
+
* @param {ToolExecutionContext} context - The execution context, providing information about
|
|
191
|
+
* the GMI, user, current session, and any correlation IDs for tracing.
|
|
192
|
+
* @returns {Promise<ToolExecutionResult<TOutput>>} A promise that resolves with a `ToolExecutionResult` object,
|
|
193
|
+
* which contains the `success` status, the `output` data (if successful), or an `error` message (if failed).
|
|
194
|
+
* @throws {GMIError | Error} While tools should ideally capture errors and return them in `ToolExecutionResult.error`,
|
|
195
|
+
* critical, unrecoverable, or unexpected system-level failures during execution might still result in a thrown exception.
|
|
196
|
+
* The `ToolExecutor` should be prepared to catch these.
|
|
197
|
+
*/
|
|
198
|
+
execute(args: TInput, context: ToolExecutionContext): Promise<ToolExecutionResult<TOutput>>;
|
|
199
|
+
/**
|
|
200
|
+
* Optional. Provides a hook for tools to implement custom validation logic for their input arguments,
|
|
201
|
+
* potentially more specific or nuanced than standard JSON schema validation.
|
|
202
|
+
* While the `ToolExecutor` typically performs schema validation based on `inputSchema` before calling `execute`,
|
|
203
|
+
* this method allows the tool itself to perform additional checks if necessary.
|
|
204
|
+
*
|
|
205
|
+
* @public
|
|
206
|
+
* @param {Record<string, any>} args - The raw arguments object to validate.
|
|
207
|
+
* @returns {{ isValid: boolean; errors?: any[] }} An object indicating if the arguments are valid.
|
|
208
|
+
* If `isValid` is `false`, the `errors` array should contain objects or strings describing the validation failures.
|
|
209
|
+
* @optional
|
|
210
|
+
*/
|
|
211
|
+
validateArgs?(args: Record<string, any>): {
|
|
212
|
+
isValid: boolean;
|
|
213
|
+
errors?: any[];
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* Optional. A method to gracefully shut down the tool and release any resources it holds
|
|
217
|
+
* (e.g., database connections, network listeners, file handles, child processes).
|
|
218
|
+
* This is called by the system (e.g., `ToolExecutor` or `ToolOrchestrator`) during application shutdown
|
|
219
|
+
* or when a tool is being unregistered dynamically.
|
|
220
|
+
*
|
|
221
|
+
* @public
|
|
222
|
+
* @async
|
|
223
|
+
* @returns {Promise<void>} A promise that resolves when the tool has completed its shutdown procedures.
|
|
224
|
+
* @optional
|
|
225
|
+
*/
|
|
226
|
+
shutdown?(): Promise<void>;
|
|
227
|
+
}
|
|
228
|
+
//# sourceMappingURL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;;;;;OASG;IACH,QAAQ,CAAC,WAAW,EAAE,gBAAgB,CAAC;IAEvC;;;;;;;;;OASG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAEzC;;;;;;;;;OASG;IACH,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzC;;;;;;;OAOG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;;;OAMG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;;;;;OAQG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAElC;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC;IAE5F;;;;;;;;;;;OAWG;IACH,YAAY,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAA;KAAE,CAAC;IAE/E;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// File: backend/agentos/core/tools/ITool.ts
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview Defines the ITool interface, the core contract for any tool
|
|
4
|
+
* that can be invoked within the AgentOS ecosystem, typically by a GMI.
|
|
5
|
+
* This interface ensures that all tools provide necessary metadata for discovery,
|
|
6
|
+
* schema validation, permission checking, and execution.
|
|
7
|
+
*
|
|
8
|
+
* @module backend/agentos/core/tools/ITool
|
|
9
|
+
*/
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=ITool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ITool.js","sourceRoot":"","sources":["../../../src/core/tools/ITool.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C;;;;;;;GAOG"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Defines the IToolOrchestrator interface, which acts as the central
|
|
3
|
+
* coordinator for tool registration, discovery, permission checking, and execution
|
|
4
|
+
* within the AgentOS system. GMIs interact with this orchestrator to utilize tools.
|
|
5
|
+
*
|
|
6
|
+
* @module backend/agentos/tools/IToolOrchestrator
|
|
7
|
+
* @see ./ITool.ts
|
|
8
|
+
* @see ./IToolPermissionManager.ts
|
|
9
|
+
* @see ./ToolExecutor.ts
|
|
10
|
+
* @see ../config/ToolOrchestratorConfig.ts
|
|
11
|
+
* @see ../cognitive_substrate/IGMI.ts for ToolCallRequest, ToolCallResult, UserContext
|
|
12
|
+
*/
|
|
13
|
+
import { ITool, JSONSchemaObject } from './ITool';
|
|
14
|
+
import { IToolPermissionManager } from './permissions/IToolPermissionManager';
|
|
15
|
+
import { ToolExecutor, ToolExecutionRequestDetails } from './ToolExecutor';
|
|
16
|
+
import { ToolOrchestratorConfig } from '../../config/ToolOrchestratorConfig';
|
|
17
|
+
import { ToolCallResult, UserContext } from '../../cognitive_substrate/IGMI';
|
|
18
|
+
/**
|
|
19
|
+
* Represents the information about a tool that is suitable for an LLM
|
|
20
|
+
* to understand its capabilities and how to call it.
|
|
21
|
+
*
|
|
22
|
+
* @interface ToolDefinitionForLLM
|
|
23
|
+
* @property {string} name - The functional name of the tool (e.g., "searchWeb").
|
|
24
|
+
* @property {string} description - Detailed description of what the tool does.
|
|
25
|
+
* @property {JSONSchemaObject} inputSchema - JSON schema for the tool's input arguments.
|
|
26
|
+
* @property {JSONSchemaObject} [outputSchema] - Optional: JSON schema for the tool's output.
|
|
27
|
+
*/
|
|
28
|
+
export interface ToolDefinitionForLLM {
|
|
29
|
+
name: string;
|
|
30
|
+
description: string;
|
|
31
|
+
inputSchema: JSONSchemaObject;
|
|
32
|
+
outputSchema?: JSONSchemaObject;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @interface IToolOrchestrator
|
|
36
|
+
* @description Defines the contract for the central tool management and invocation component.
|
|
37
|
+
* It provides a unified interface for GMIs to discover and execute tools securely and reliably.
|
|
38
|
+
*/
|
|
39
|
+
export interface IToolOrchestrator {
|
|
40
|
+
/**
|
|
41
|
+
* A unique identifier for this ToolOrchestrator instance.
|
|
42
|
+
* @readonly
|
|
43
|
+
*/
|
|
44
|
+
readonly orchestratorId: string;
|
|
45
|
+
/**
|
|
46
|
+
* Initializes the ToolOrchestrator with its configuration and necessary dependencies.
|
|
47
|
+
*
|
|
48
|
+
* @async
|
|
49
|
+
* @param {ToolOrchestratorConfig | undefined} config - Configuration settings for the orchestrator.
|
|
50
|
+
* @param {IToolPermissionManager} permissionManager - The manager responsible for authorizing tool calls.
|
|
51
|
+
* @param {ToolExecutor} toolExecutor - The executor responsible for running the tool's logic.
|
|
52
|
+
* @param {ITool[]} [initialTools] - An optional array of tool instances to register upon initialization.
|
|
53
|
+
* @returns {Promise<void>}
|
|
54
|
+
* @throws {GMIError | Error} If initialization fails.
|
|
55
|
+
*/
|
|
56
|
+
initialize(config: ToolOrchestratorConfig | undefined, permissionManager: IToolPermissionManager, toolExecutor: ToolExecutor, initialTools?: ITool[]): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Registers a tool, making it available for discovery and execution.
|
|
59
|
+
*
|
|
60
|
+
* @async
|
|
61
|
+
* @param {ITool} tool - The tool instance to register.
|
|
62
|
+
* @returns {Promise<void>}
|
|
63
|
+
* @throws {GMIError} If the tool is invalid, already registered, or dynamic registration is disabled.
|
|
64
|
+
*/
|
|
65
|
+
registerTool(tool: ITool): Promise<void>;
|
|
66
|
+
/**
|
|
67
|
+
* Unregisters a tool, removing it from the available tools.
|
|
68
|
+
*
|
|
69
|
+
* @async
|
|
70
|
+
* @param {string} toolName - The functional name (`ITool.name`) of the tool to unregister.
|
|
71
|
+
* @returns {Promise<boolean>} True if the tool was found and unregistered, false otherwise.
|
|
72
|
+
* @throws {GMIError} If dynamic unregistration is disabled.
|
|
73
|
+
*/
|
|
74
|
+
unregisterTool(toolName: string): Promise<boolean>;
|
|
75
|
+
/**
|
|
76
|
+
* Retrieves a registered tool instance by its functional name.
|
|
77
|
+
*
|
|
78
|
+
* @async
|
|
79
|
+
* @param {string} toolName - The name of the tool.
|
|
80
|
+
* @returns {Promise<ITool | undefined>} The tool instance, or undefined if not found.
|
|
81
|
+
*/
|
|
82
|
+
getTool(toolName: string): Promise<ITool | undefined>;
|
|
83
|
+
/**
|
|
84
|
+
* Lists available tools, potentially filtered by context (e.g., persona capabilities, user permissions).
|
|
85
|
+
* Returns information suitable for an LLM to understand and use the tools.
|
|
86
|
+
*
|
|
87
|
+
* @async
|
|
88
|
+
* @param {object} [context] - Optional context for filtering the list of tools.
|
|
89
|
+
* @param {string} [context.personaId] - The ID of the requesting Persona.
|
|
90
|
+
* @param {string[]} [context.personaCapabilities] - Capabilities of the Persona.
|
|
91
|
+
* @param {UserContext} [context.userContext] - The user's context.
|
|
92
|
+
* @returns {Promise<ToolDefinitionForLLM[]>} A list of tool definitions.
|
|
93
|
+
*/
|
|
94
|
+
listAvailableTools(context?: {
|
|
95
|
+
personaId?: string;
|
|
96
|
+
personaCapabilities?: string[];
|
|
97
|
+
userContext?: UserContext;
|
|
98
|
+
}): Promise<ToolDefinitionForLLM[]>;
|
|
99
|
+
/**
|
|
100
|
+
* Processes a tool call request from a GMI.
|
|
101
|
+
* This involves permission checking, argument validation (delegated), execution (delegated),
|
|
102
|
+
* and formatting the result.
|
|
103
|
+
*
|
|
104
|
+
* @async
|
|
105
|
+
* @param {ToolExecutionRequestDetails} requestDetails - The comprehensive details of the tool call request,
|
|
106
|
+
* including the raw `ToolCallRequest` from the LLM, GMI ID, Persona context, and user context.
|
|
107
|
+
* @returns {Promise<ToolCallResult>} The result of the tool call, formatted for the GMI.
|
|
108
|
+
* This will include success/failure status, output, or error information.
|
|
109
|
+
*/
|
|
110
|
+
processToolCall(requestDetails: ToolExecutionRequestDetails): Promise<ToolCallResult>;
|
|
111
|
+
/**
|
|
112
|
+
* Checks the health of the ToolOrchestrator and its critical dependencies.
|
|
113
|
+
*
|
|
114
|
+
* @async
|
|
115
|
+
* @returns {Promise<{ isHealthy: boolean; details?: any }>} Health status.
|
|
116
|
+
*/
|
|
117
|
+
checkHealth(): Promise<{
|
|
118
|
+
isHealthy: boolean;
|
|
119
|
+
details?: any;
|
|
120
|
+
}>;
|
|
121
|
+
/**
|
|
122
|
+
* Gracefully shuts down the ToolOrchestrator.
|
|
123
|
+
* This should also trigger shutdown for any managed resources, including registered tools
|
|
124
|
+
* that implement a `shutdown` method (via the ToolExecutor).
|
|
125
|
+
*
|
|
126
|
+
* @async
|
|
127
|
+
* @returns {Promise<void>}
|
|
128
|
+
*/
|
|
129
|
+
shutdown(): Promise<void>;
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=IToolOrchestrator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IToolOrchestrator.d.ts","sourceRoot":"","sources":["../../../src/core/tools/IToolOrchestrator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7E;;;;;;;;;GASG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,gBA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
* @fileoverview Defines the IToolOrchestrator interface, which acts as the central
|
|
3
|
+
* coordinator for tool registration, discovery, permission checking, and execution
|
|
4
|
+
* within the AgentOS system. GMIs interact with this orchestrator to utilize tools.
|
|
5
|
+
*
|
|
6
|
+
* @module backend/agentos/tools/IToolOrchestrator
|
|
7
|
+
* @see ./ITool.ts
|
|
8
|
+
* @see ./IToolPermissionManager.ts
|
|
9
|
+
* @see ./ToolExecutor.ts
|
|
10
|
+
* @see ../config/ToolOrchestratorConfig.ts
|
|
11
|
+
* @see ../cognitive_substrate/IGMI.ts for ToolCallRequest, ToolCallResult, UserContext
|
|
12
|
+
*/
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=IToolOrchestrator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IToolOrchestrator.js","sourceRoot":"","sources":["../../../src/core/tools/IToolOrchestrator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG"}
|