@framers/agentos 0.15.62 → 0.15.64
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/dist/agents/agency/AgencyMemoryManager.d.ts +3 -3
- package/dist/agents/agency/AgencyRegistry.d.ts +1 -1
- package/dist/agents/agency/AgentCommunicationBus.d.ts +2 -2
- package/dist/agents/agency/index.d.ts +6 -6
- package/dist/agents/definitions/AgentCore.d.ts +11 -11
- package/dist/agents/definitions/AgentFactory.d.ts +3 -3
- package/dist/agents/definitions/AgentPoolAgent.d.ts +9 -9
- package/dist/agents/definitions/AgentPoolConfig.d.ts +2 -2
- package/dist/agents/definitions/IAgent.d.ts +4 -4
- package/dist/agents/definitions/IAgentFactory.d.ts +6 -6
- package/dist/api/AgentOS.d.ts +44 -44
- package/dist/api/agent.d.ts +1 -1
- package/dist/api/embedText.d.ts +1 -1
- package/dist/api/hitl.d.ts +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/interfaces/IAgentOS.d.ts +16 -16
- package/dist/api/interfaces/IUnifiedAgent.d.ts +3 -3
- package/dist/api/runtime/AgentOSOrchestrator.d.ts +9 -9
- package/dist/api/runtime/CapabilityDiscoveryInitializer.d.ts +9 -9
- package/dist/api/runtime/ExternalToolResultHandler.d.ts +10 -10
- package/dist/api/runtime/GMIChunkTransformer.d.ts +6 -6
- package/dist/api/runtime/RagMemoryInitializer.d.ts +6 -6
- package/dist/api/runtime/SelfImprovementSessionManager.d.ts +4 -4
- package/dist/api/runtime/StreamChunkEmitter.d.ts +2 -2
- package/dist/api/runtime/TaskOutcomeTelemetryManager.d.ts +3 -3
- package/dist/api/runtime/TurnExecutionPipeline.d.ts +12 -12
- package/dist/api/runtime/WorkflowFacade.d.ts +10 -10
- package/dist/api/runtime/externalToolPause.d.ts +2 -2
- package/dist/api/runtime/externalToolRegistry.d.ts +5 -5
- package/dist/api/runtime/global-default.d.ts +1 -1
- package/dist/api/runtime/personaLoaderResolution.d.ts +2 -2
- package/dist/api/runtime/processRequestWithExternalTools.d.ts +4 -4
- package/dist/api/runtime/processRequestWithRegisteredTools.d.ts +7 -7
- package/dist/api/runtime/resumeExternalToolRequestWithRegisteredTools.d.ts +8 -8
- package/dist/api/runtime/tool-emulation/activation.d.ts +1 -1
- package/dist/api/runtime/tool-emulation/history.d.ts +1 -1
- package/dist/api/runtime/tool-emulation/index.d.ts +5 -5
- package/dist/api/runtime/tool-emulation/loop.d.ts +2 -2
- package/dist/api/runtime/tool-emulation/renderer.d.ts +1 -1
- package/dist/api/runtime/toolCallGate.d.ts +2 -2
- package/dist/api/runtime/turn-phases/conversation-history.d.ts +3 -3
- package/dist/api/runtime/turn-phases/long-term-memory.d.ts +4 -4
- package/dist/api/runtime/turn-phases/prompt-profile.d.ts +2 -2
- package/dist/api/runtime/turn-phases/rolling-summary.d.ts +4 -4
- package/dist/api/runtime/turnFinalResponse.d.ts +3 -3
- package/dist/api/server/AgentOSServer.d.ts +1 -1
- package/dist/api/structured/output/IStructuredOutputManager.d.ts +1 -1
- package/dist/api/structured/output/StructuredOutputManager.d.ts +3 -3
- package/dist/api/structured/output/index.d.ts +3 -3
- package/dist/api/types/AgentOSExternalToolRequest.d.ts +1 -1
- package/dist/api/types/AgentOSInput.d.ts +3 -3
- package/dist/api/types/AgentOSResponse.d.ts +6 -6
- package/dist/api/types/OrchestratorConfig.d.ts +11 -11
- package/dist/api/types.d.ts +1 -1
- package/dist/cognition/marketplace/store/Marketplace.d.ts +2 -2
- package/dist/cognition/marketplace/store/index.d.ts +2 -2
- package/dist/cognition/memory/pipeline/lifecycle/IMemoryLifecycleManager.d.ts +5 -5
- package/dist/cognition/memory/pipeline/lifecycle/MemoryLifecycleManager.d.ts +6 -6
- package/dist/cognition/memory/retrieval/graph/knowledge/KnowledgeGraph.d.ts +3 -3
- package/dist/cognition/nlp/ITextProcessor.d.ts +1 -1
- package/dist/cognition/nlp/TextProcessingPipeline.d.ts +2 -2
- package/dist/cognition/nlp/ai_utilities/HybridUtilityAI.d.ts +1 -1
- package/dist/cognition/nlp/ai_utilities/IUtilityAI.d.ts +1 -1
- package/dist/cognition/nlp/ai_utilities/LLMUtilityAI.d.ts +4 -4
- package/dist/cognition/nlp/ai_utilities/StatisticalUtilityAI.d.ts +1 -1
- package/dist/cognition/nlp/ai_utilities/targetSchemaChecks.d.ts +1 -1
- package/dist/cognition/nlp/filters/StopWordFilter.d.ts +3 -3
- package/dist/cognition/nlp/index.d.ts +13 -13
- package/dist/cognition/nlp/language/LanguageService.d.ts +1 -1
- package/dist/cognition/nlp/language/index.d.ts +5 -5
- package/dist/cognition/nlp/language/providers/DeepLTranslationProvider.d.ts +1 -1
- package/dist/cognition/nlp/language/providers/OpenAITranslationProvider.d.ts +1 -1
- package/dist/cognition/nlp/language/providers/WhisperDetectionProvider.d.ts +1 -1
- package/dist/cognition/nlp/lemmatizers/NoOpLemmatizer.d.ts +2 -2
- package/dist/cognition/nlp/lemmatizers/WordNetLemmatizer.d.ts +2 -2
- package/dist/cognition/nlp/normalizers/AccentStripper.d.ts +2 -2
- package/dist/cognition/nlp/normalizers/LowercaseNormalizer.d.ts +2 -2
- package/dist/cognition/nlp/presets.d.ts +1 -1
- package/dist/cognition/nlp/stemmers/NoOpStemmer.d.ts +2 -2
- package/dist/cognition/nlp/stemmers/PorterStemmer.d.ts +2 -2
- package/dist/cognition/nlp/tokenizers/CodeTokenizer.d.ts +2 -2
- package/dist/cognition/nlp/tokenizers/StandardTokenizer.d.ts +2 -2
- package/dist/cognition/rag/EmbeddingManager.d.ts +3 -3
- package/dist/cognition/rag/IRetrievalAugmentor.d.ts +5 -5
- package/dist/cognition/rag/RetrievalAugmentor.d.ts +6 -6
- package/dist/cognition/rag/VectorStoreManager.d.ts +3 -3
- package/dist/cognition/rag/reranking/IRerankerService.d.ts +1 -1
- package/dist/cognition/rag/reranking/RerankerService.d.ts +3 -3
- package/dist/cognition/rag/reranking/index.d.ts +6 -6
- package/dist/cognition/rag/reranking/providers/CohereReranker.d.ts +1 -1
- package/dist/cognition/rag/reranking/providers/LocalCrossEncoderReranker.d.ts +1 -1
- package/dist/cognition/rag/reranking/providers/index.d.ts +2 -2
- package/dist/cognition/rag/vector-search/HnswIndexSidecar.d.ts +1 -1
- package/dist/cognition/rag/vector-search/index.d.ts +2 -2
- package/dist/cognition/rag/vector_stores/InMemoryVectorStore.d.ts +1 -1
- package/dist/cognition/rag/vector_stores/SqlVectorStore.d.ts +1 -1
- package/dist/cognition/substrate/CognitiveMemoryBridge.d.ts +2 -2
- package/dist/cognition/substrate/ConversationHistoryManager.d.ts +3 -3
- package/dist/cognition/substrate/GMI.d.ts +5 -5
- package/dist/cognition/substrate/GMIManager.d.ts +15 -15
- package/dist/cognition/substrate/IGMI.d.ts +12 -12
- package/dist/cognition/substrate/MetapromptExecutor.d.ts +6 -6
- package/dist/cognition/substrate/SentimentTracker.d.ts +5 -5
- package/dist/cognition/substrate/memory/InMemoryWorkingMemory.d.ts +1 -1
- package/dist/cognition/substrate/persona_overlays/PersonaOverlayManager.d.ts +3 -3
- package/dist/cognition/substrate/persona_overlays/PersonaOverlayTypes.d.ts +2 -2
- package/dist/cognition/substrate/personas/IPersonaDefinition.d.ts +3 -3
- package/dist/cognition/substrate/personas/IPersonaLoader.d.ts +1 -1
- package/dist/cognition/substrate/personas/InMemoryPersonaLoader.d.ts +2 -2
- package/dist/cognition/substrate/personas/PersonaLoader.d.ts +2 -2
- package/dist/cognition/substrate/personas/PersonaValidation.d.ts +1 -1
- package/dist/cognition/substrate/personas/definitions/index.d.ts +1 -1
- package/dist/cognition/substrate/personas/personaNormalization.d.ts +1 -1
- package/dist/cognition/substrate/reasoningTraceLimits.d.ts +2 -2
- package/dist/cognition/substrate/toolCallGate.d.ts +1 -1
- package/dist/cognition/substrate/turnContent.d.ts +1 -1
- package/dist/cognition/web-search/WebSearchService.d.ts +1 -1
- package/dist/cognition/web-search/dedup.d.ts +1 -1
- package/dist/cognition/web-search/fusion.d.ts +1 -1
- package/dist/cognition/web-search/index.d.ts +8 -8
- package/dist/cognition/web-search/providers/BraveProvider.d.ts +1 -1
- package/dist/cognition/web-search/providers/FirecrawlProvider.d.ts +1 -1
- package/dist/cognition/web-search/providers/SerperProvider.d.ts +1 -1
- package/dist/cognition/web-search/providers/TavilyProvider.d.ts +1 -1
- package/dist/cognition/web-search/providers/index.d.ts +4 -4
- package/dist/cognition/web-search/types.d.ts +2 -2
- package/dist/core/conversation/ConversationContext.d.ts +71 -12
- package/dist/core/conversation/ConversationContext.d.ts.map +1 -1
- package/dist/core/conversation/ConversationContext.js +313 -39
- package/dist/core/conversation/ConversationContext.js.map +1 -1
- package/dist/core/conversation/ConversationManager.d.ts +2 -2
- package/dist/core/conversation/ConversationMessage.d.ts +3 -3
- package/dist/core/conversation/ILongTermMemoryRetriever.d.ts +1 -1
- package/dist/core/conversation/IRollingSummaryMemorySink.d.ts +1 -1
- package/dist/core/conversation/RollingSummaryCompactor.d.ts +2 -2
- package/dist/core/embeddings/IEmbeddingManager.d.ts +1 -1
- package/dist/core/llm/IPromptEngine.d.ts +6 -6
- package/dist/core/llm/PromptEngine.d.ts +2 -2
- package/dist/core/llm/providers/AIModelProviderManager.d.ts +14 -14
- package/dist/core/llm/providers/errors/AnthropicProviderError.d.ts +1 -1
- package/dist/core/llm/providers/errors/ClaudeCodeProviderError.d.ts +1 -1
- package/dist/core/llm/providers/errors/GeminiCLIProviderError.d.ts +1 -1
- package/dist/core/llm/providers/errors/GeminiProviderError.d.ts +1 -1
- package/dist/core/llm/providers/errors/OllamaProviderError.d.ts +1 -1
- package/dist/core/llm/providers/errors/OpenAIProviderError.d.ts +1 -1
- package/dist/core/llm/providers/errors/OpenRouterProviderError.d.ts +1 -1
- package/dist/core/llm/providers/errors/RequestyProviderError.d.ts +1 -1
- package/dist/core/llm/providers/implementations/AnthropicProvider.d.ts +1 -1
- package/dist/core/llm/providers/implementations/ClaudeCodeCLIBridge.d.ts +5 -5
- package/dist/core/llm/providers/implementations/ClaudeCodeProvider.d.ts +1 -1
- package/dist/core/llm/providers/implementations/GeminiCLIBridge.d.ts +5 -5
- package/dist/core/llm/providers/implementations/GeminiCLIProvider.d.ts +1 -1
- package/dist/core/llm/providers/implementations/GeminiProvider.d.ts +1 -1
- package/dist/core/llm/providers/implementations/GroqProvider.d.ts +2 -2
- package/dist/core/llm/providers/implementations/LiteLLMProvider.d.ts +2 -2
- package/dist/core/llm/providers/implementations/MiniMaxProvider.d.ts +2 -2
- package/dist/core/llm/providers/implementations/MistralProvider.d.ts +2 -2
- package/dist/core/llm/providers/implementations/OllamaProvider.d.ts +1 -1
- package/dist/core/llm/providers/implementations/OpenAIProvider.d.ts +1 -1
- package/dist/core/llm/providers/implementations/OpenRouterProvider.d.ts +1 -1
- package/dist/core/llm/providers/implementations/RequestyProvider.d.ts +1 -1
- package/dist/core/llm/providers/implementations/TogetherProvider.d.ts +2 -2
- package/dist/core/llm/providers/implementations/XAIProvider.d.ts +2 -2
- package/dist/core/llm/providers/implementations/billing-probe-model.d.ts +1 -1
- package/dist/core/llm/routing/IModelRouter.d.ts +3 -3
- package/dist/core/llm/routing/ModelRouter.d.ts +3 -3
- package/dist/core/llm/routing/PolicyAwareRouter.d.ts +3 -3
- package/dist/core/llm/streaming/StreamingBatcher.d.ts +1 -1
- package/dist/core/llm/streaming/StreamingReconstructor.d.ts +2 -2
- package/dist/core/logging/PinoLogger.d.ts +1 -1
- package/dist/core/streaming/AsyncStreamClientBridge.d.ts +2 -2
- package/dist/core/streaming/IStreamClient.d.ts +1 -1
- package/dist/core/streaming/StreamingManager.d.ts +2 -2
- package/dist/core/tools/ITool.d.ts +2 -2
- package/dist/core/tools/IToolOrchestrator.d.ts +7 -7
- package/dist/core/tools/ToolExecutor.d.ts +4 -4
- package/dist/core/tools/ToolOrchestrator.d.ts +8 -8
- package/dist/core/tools/permissions/IToolPermissionManager.d.ts +3 -3
- package/dist/core/tools/permissions/ToolPermissionManager.d.ts +2 -2
- package/dist/core/utils/index.d.ts +1 -1
- package/dist/core/utils/usage/UsageLedger.d.ts +1 -1
- package/dist/core/vector-store/IVectorStoreManager.d.ts +2 -2
- package/dist/extensions/ExtensionLoader.d.ts +2 -2
- package/dist/extensions/ExtensionManager.d.ts +4 -4
- package/dist/extensions/ExtensionRegistry.d.ts +1 -1
- package/dist/extensions/RegistryConfig.d.ts +1 -1
- package/dist/extensions/SharedServiceRegistry.d.ts +1 -1
- package/dist/extensions/events.d.ts +1 -1
- package/dist/extensions/index.d.ts +10 -10
- package/dist/extensions/manifest.d.ts +3 -3
- package/dist/extensions/types.d.ts +8 -8
- package/dist/index.d.ts +72 -72
- package/dist/io/channels/social-posting/index.d.ts +3 -3
- package/dist/io/hearing/AdaptiveVAD.d.ts +1 -1
- package/dist/io/hearing/AudioProcessor.d.ts +2 -2
- package/dist/io/hearing/SilenceDetector.d.ts +1 -1
- package/dist/io/media/images/PolicyAwareImageRouter.d.ts +1 -1
- package/dist/orchestration/hitl/HumanInteractionManager.d.ts +2 -2
- package/dist/orchestration/hitl/index.d.ts +2 -2
- package/dist/orchestration/planner/IPlanningEngine.d.ts +1 -1
- package/dist/orchestration/planner/PlanningEngine.d.ts +3 -3
- package/dist/orchestration/planner/index.d.ts +2 -2
- package/dist/orchestration/turn-planner/IAgentOrchestrator.d.ts +2 -2
- package/dist/orchestration/turn-planner/TurnPlanner.d.ts +4 -4
- package/dist/orchestration/turn-planner/helpers.d.ts +2 -2
- package/dist/orchestration/workflows/IWorkflowEngine.d.ts +4 -4
- package/dist/orchestration/workflows/WorkflowEngine.d.ts +3 -3
- package/dist/orchestration/workflows/WorkflowTypes.d.ts +2 -2
- package/dist/orchestration/workflows/runtime/WorkflowRuntime.d.ts +9 -9
- package/dist/orchestration/workflows/storage/IWorkflowStore.d.ts +1 -1
- package/dist/orchestration/workflows/storage/InMemoryWorkflowStore.d.ts +2 -2
- package/dist/safety/evaluation/Evaluator.d.ts +1 -1
- package/dist/safety/evaluation/LLMJudge.d.ts +3 -3
- package/dist/safety/evaluation/index.d.ts +4 -4
- package/dist/safety/evaluation/observability/Tracer.d.ts +1 -1
- package/dist/safety/evaluation/observability/index.d.ts +5 -5
- package/dist/safety/guardrails/ICrossAgentGuardrailService.d.ts +2 -2
- package/dist/safety/guardrails/IGuardrailService.d.ts +3 -3
- package/dist/safety/guardrails/ParallelGuardrailDispatcher.d.ts +4 -4
- package/dist/safety/guardrails/builtin/PhraseListGuardrail.d.ts +4 -4
- package/dist/safety/guardrails/crossAgentGuardrailDispatcher.d.ts +4 -4
- package/dist/safety/guardrails/guardrailDispatcher.d.ts +4 -4
- package/dist/safety/guardrails/index.d.ts +8 -8
- package/dist/safety/guardrails/requiredGuardrails.d.ts +1 -1
- package/dist/safety/guardrails/sanitizedFinalResponse.d.ts +3 -3
- package/dist/safety/sandbox/executor/CodeSandbox.d.ts +2 -2
- package/dist/safety/sandbox/executor/ICodeSandbox.d.ts +1 -1
- package/dist/safety/sandbox/executor/index.d.ts +3 -3
- package/dist/safety/sandbox/subprocess/CLISubprocessBridge.d.ts +2 -2
- package/dist/safety/sandbox/subprocess/index.d.ts +4 -4
- package/package.json +1 -1
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
* });
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
import type { ILogger } from '../../core/logging/ILogger';
|
|
33
|
-
import type { IVectorStoreManager } from '../../core/vector-store/IVectorStoreManager';
|
|
34
|
-
import type { AgencySession, AgencyMemoryConfig, AgencyMemoryOperationResult, AgencyMemoryQueryOptions } from './AgencyTypes';
|
|
32
|
+
import type { ILogger } from '../../core/logging/ILogger.js';
|
|
33
|
+
import type { IVectorStoreManager } from '../../core/vector-store/IVectorStoreManager.js';
|
|
34
|
+
import type { AgencySession, AgencyMemoryConfig, AgencyMemoryOperationResult, AgencyMemoryQueryOptions } from './AgencyTypes.js';
|
|
35
35
|
/**
|
|
36
36
|
* Input for ingesting documents to agency shared memory.
|
|
37
37
|
*/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @module AgentOS/Agency
|
|
5
5
|
*/
|
|
6
6
|
import type { ILogger } from '../../core/logging/ILogger.js';
|
|
7
|
-
import type { AgencySeatHistoryEntry, AgencySeatRegistrationArgs, AgencySeatState, AgencySession, AgencyUpsertArgs } from './AgencyTypes';
|
|
7
|
+
import type { AgencySeatHistoryEntry, AgencySeatRegistrationArgs, AgencySeatState, AgencySession, AgencyUpsertArgs } from './AgencyTypes.js';
|
|
8
8
|
/**
|
|
9
9
|
* Tracks the Agencies (multi-GMI collectives) active inside the AgentOS runtime.
|
|
10
10
|
*
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module AgentOS/Agency
|
|
7
7
|
* @version 1.0.0
|
|
8
8
|
*/
|
|
9
|
-
import type { ILogger } from '../../core/logging/ILogger';
|
|
10
|
-
import type { IAgentCommunicationBus, AgentMessage, AgentMessageType, AgentRequest, AgentResponse, HandoffContext, HandoffResult, MessageHandler, Unsubscribe, SubscriptionOptions, MessageTopic, DeliveryStatus, RoutingConfig, BusStatistics } from './IAgentCommunicationBus';
|
|
9
|
+
import type { ILogger } from '../../core/logging/ILogger.js';
|
|
10
|
+
import type { IAgentCommunicationBus, AgentMessage, AgentMessageType, AgentRequest, AgentResponse, HandoffContext, HandoffResult, MessageHandler, Unsubscribe, SubscriptionOptions, MessageTopic, DeliveryStatus, RoutingConfig, BusStatistics } from './IAgentCommunicationBus.js';
|
|
11
11
|
/**
|
|
12
12
|
* Configuration for AgentCommunicationBus.
|
|
13
13
|
*/
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @module AgentOS/Agency
|
|
10
10
|
*/
|
|
11
|
-
export type { AgencySeatState, AgencySeatHistoryEntry, AgencyMemoryConfig, AgencyMemoryRetentionPolicy, AgencyMemoryScopingConfig, AgencySession, AgencyUpsertArgs, AgencySeatRegistrationArgs, AgencyMemoryOperationResult, AgencyMemoryQueryOptions, } from './AgencyTypes';
|
|
12
|
-
export { AgencyRegistry } from './AgencyRegistry';
|
|
13
|
-
export { AgencyMemoryManager } from './AgencyMemoryManager';
|
|
14
|
-
export type { AgencyMemoryIngestInput, AgencyMemoryChunk, AgencyMemoryQueryResult, AgencyMemoryStats, } from './AgencyMemoryManager';
|
|
15
|
-
export { AgentCommunicationBus, type AgentCommunicationBusConfig } from './AgentCommunicationBus';
|
|
16
|
-
export type { IAgentCommunicationBus, AgentMessage, AgentMessageType, AgentRequest, AgentResponse, HandoffContext, HandoffResult, MessageHandler, Unsubscribe, SubscriptionOptions, MessageTopic, DeliveryStatus, RoutingConfig, BusStatistics, MessagePriority, } from './IAgentCommunicationBus';
|
|
11
|
+
export type { AgencySeatState, AgencySeatHistoryEntry, AgencyMemoryConfig, AgencyMemoryRetentionPolicy, AgencyMemoryScopingConfig, AgencySession, AgencyUpsertArgs, AgencySeatRegistrationArgs, AgencyMemoryOperationResult, AgencyMemoryQueryOptions, } from './AgencyTypes.js';
|
|
12
|
+
export { AgencyRegistry } from './AgencyRegistry.js';
|
|
13
|
+
export { AgencyMemoryManager } from './AgencyMemoryManager.js';
|
|
14
|
+
export type { AgencyMemoryIngestInput, AgencyMemoryChunk, AgencyMemoryQueryResult, AgencyMemoryStats, } from './AgencyMemoryManager.js';
|
|
15
|
+
export { AgentCommunicationBus, type AgentCommunicationBusConfig } from './AgentCommunicationBus.js';
|
|
16
|
+
export type { IAgentCommunicationBus, AgentMessage, AgentMessageType, AgentRequest, AgentResponse, HandoffContext, HandoffResult, MessageHandler, Unsubscribe, SubscriptionOptions, MessageTopic, DeliveryStatus, RoutingConfig, BusStatistics, MessagePriority, } from './IAgentCommunicationBus.js';
|
|
17
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
* - Dependency Injection: Core services (PromptEngine, ProviderManager, etc.) are injected.
|
|
17
17
|
* @module backend/agentos/agents/definitions/AgentCore
|
|
18
18
|
*/
|
|
19
|
-
import { IAgent, AgentOutput, AgentToolCall } from './IAgent';
|
|
20
|
-
import { ConversationContext } from '../../core/conversation/ConversationContext';
|
|
21
|
-
import { IProvider, ModelCompletionOptions, ModelCompletionResponse, MessageContent } from '../../core/llm/providers/IProvider';
|
|
22
|
-
import { IPromptEngine, PromptComponents, ModelTargetInfo } from '../../core/llm/IPromptEngine';
|
|
23
|
-
import type { Tool, ToolDefinition } from './tools/Tool';
|
|
24
|
-
import type { UIComponentSpecification } from '../../core/utils/IUIComponent';
|
|
25
|
-
import { IUtilityAI } from '../../cognition/nlp/ai_utilities/IUtilityAI';
|
|
26
|
-
import { AgentPoolConfig } from './AgentPoolConfig';
|
|
27
|
-
import { IAgentFactory } from './IAgentFactory';
|
|
19
|
+
import { IAgent, AgentOutput, AgentToolCall } from './IAgent.js';
|
|
20
|
+
import { ConversationContext } from '../../core/conversation/ConversationContext.js';
|
|
21
|
+
import { IProvider, ModelCompletionOptions, ModelCompletionResponse, MessageContent } from '../../core/llm/providers/IProvider.js';
|
|
22
|
+
import { IPromptEngine, PromptComponents, ModelTargetInfo } from '../../core/llm/IPromptEngine.js';
|
|
23
|
+
import type { Tool, ToolDefinition } from './tools/Tool.js';
|
|
24
|
+
import type { UIComponentSpecification } from '../../core/utils/IUIComponent.js';
|
|
25
|
+
import { IUtilityAI } from '../../cognition/nlp/ai_utilities/IUtilityAI.js';
|
|
26
|
+
import { AgentPoolConfig } from './AgentPoolConfig.js';
|
|
27
|
+
import { IAgentFactory } from './IAgentFactory.js';
|
|
28
28
|
/**
|
|
29
29
|
* Defines the type of an agent, used for categorization and potentially for
|
|
30
30
|
* determining specific handling or factory instantiation logic.
|
|
@@ -118,10 +118,10 @@ export interface AgentConfig {
|
|
|
118
118
|
* Agent-specific overrides for the global `PromptEngine` configuration.
|
|
119
119
|
* This allows fine-tuning of prompt construction aspects like history truncation
|
|
120
120
|
* or summarization strategies specifically for this agent.
|
|
121
|
-
* @type {Partial<import('../../core/llm/IPromptEngine').PromptEngineConfig>}
|
|
121
|
+
* @type {Partial<import('../../core/llm/IPromptEngine.js').PromptEngineConfig>}
|
|
122
122
|
* @optional
|
|
123
123
|
*/
|
|
124
|
-
promptEngineConfigOverrides?: Partial<import('../../core/llm/IPromptEngine').PromptEngineConfig>;
|
|
124
|
+
promptEngineConfigOverrides?: Partial<import('../../core/llm/IPromptEngine.js').PromptEngineConfig>;
|
|
125
125
|
/**
|
|
126
126
|
* Optional: Identifier for a specific `IUtilityAI` service instance that this agent
|
|
127
127
|
* might use directly for utility tasks (e.g., advanced text analysis, classification)
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
* and simplifies the process of extending the system with new agent types.
|
|
16
16
|
* @module backend/agentos/agents/definitions/AgentFactory
|
|
17
17
|
*/
|
|
18
|
-
import { IAgentFactory, AgentDependencies, AgentClassConstructor } from './IAgentFactory';
|
|
19
|
-
import { IAgent } from './IAgent';
|
|
20
|
-
import { AgentConfig } from './AgentCore';
|
|
18
|
+
import { IAgentFactory, AgentDependencies, AgentClassConstructor } from './IAgentFactory.js';
|
|
19
|
+
import { IAgent } from './IAgent.js';
|
|
20
|
+
import { AgentConfig } from './AgentCore.js';
|
|
21
21
|
/**
|
|
22
22
|
* Custom error class for issues specific to agent instantiation or configuration
|
|
23
23
|
* within the `AgentFactory`. This helps in distinguishing factory-related errors
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
* decisions or synthesizing sub-agent outputs.
|
|
19
19
|
* @module backend/agentos/agents/definitions/AgentPoolAgent
|
|
20
20
|
*/
|
|
21
|
-
import { AgentCore, AgentConfig, AgentType } from './AgentCore';
|
|
22
|
-
import { IAgent, AgentOutput } from './IAgent';
|
|
23
|
-
import { AgentPoolConfig } from './AgentPoolConfig';
|
|
24
|
-
import { ConversationContext } from '../../core/conversation/ConversationContext';
|
|
25
|
-
import { IProvider } from '../../core/llm/providers/IProvider';
|
|
26
|
-
import { IPromptEngine } from '../../core/llm/IPromptEngine';
|
|
27
|
-
import { Tool } from './tools/Tool';
|
|
28
|
-
import { IUtilityAI } from '../../cognition/nlp/ai_utilities/IUtilityAI';
|
|
29
|
-
import { IAgentFactory, AgentDependencies } from './IAgentFactory';
|
|
21
|
+
import { AgentCore, AgentConfig, AgentType } from './AgentCore.js';
|
|
22
|
+
import { IAgent, AgentOutput } from './IAgent.js';
|
|
23
|
+
import { AgentPoolConfig } from './AgentPoolConfig.js';
|
|
24
|
+
import { ConversationContext } from '../../core/conversation/ConversationContext.js';
|
|
25
|
+
import { IProvider } from '../../core/llm/providers/IProvider.js';
|
|
26
|
+
import { IPromptEngine } from '../../core/llm/IPromptEngine.js';
|
|
27
|
+
import { Tool } from './tools/Tool.js';
|
|
28
|
+
import { IUtilityAI } from '../../cognition/nlp/ai_utilities/IUtilityAI.js';
|
|
29
|
+
import { IAgentFactory, AgentDependencies } from './IAgentFactory.js';
|
|
30
30
|
/**
|
|
31
31
|
* Configuration specific to an `AgentPoolAgent`.
|
|
32
32
|
* It extends the base `AgentConfig` and mandates that the `type` is `AgentType.POOL`,
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* operational mode of the pool.
|
|
10
10
|
* @module backend/agentos/agents/definitions/AgentPoolConfig
|
|
11
11
|
*/
|
|
12
|
-
import { ModelTargetInfo } from '../../core/llm/IPromptEngine';
|
|
13
|
-
import { ModelCompletionOptions } from '../../core/llm/providers/IProvider';
|
|
12
|
+
import { ModelTargetInfo } from '../../core/llm/IPromptEngine.js';
|
|
13
|
+
import { ModelCompletionOptions } from '../../core/llm/providers/IProvider.js';
|
|
14
14
|
/**
|
|
15
15
|
* Defines the strategy an Agent Pool uses to interact with its sub-agents
|
|
16
16
|
* and present a unified front or achieve a collective goal.
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
* specialized agents within an Agent Pool.
|
|
11
11
|
* @module backend/agentos/agents/definitions/IAgent
|
|
12
12
|
*/
|
|
13
|
-
import { ConversationContext } from '../../core/conversation/ConversationContext';
|
|
14
|
-
import { Tool } from './tools/Tool';
|
|
15
|
-
import { UIComponentSpecification } from '../../core/utils/IUIComponent';
|
|
16
|
-
import { AgentConfig } from './AgentCore';
|
|
13
|
+
import { ConversationContext } from '../../core/conversation/ConversationContext.js';
|
|
14
|
+
import { Tool } from './tools/Tool.js';
|
|
15
|
+
import { UIComponentSpecification } from '../../core/utils/IUIComponent.js';
|
|
16
|
+
import { AgentConfig } from './AgentCore.js';
|
|
17
17
|
/**
|
|
18
18
|
* Represents a request from an agent to execute a specific tool.
|
|
19
19
|
* This structure provides all necessary information for the ToolExecutor to dispatch the call.
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
* consumers (e.g., an orchestrator) and the concrete agent implementations.
|
|
10
10
|
* @module backend/agentos/agents/definitions/IAgentFactory
|
|
11
11
|
*/
|
|
12
|
-
import { IAgent } from './IAgent';
|
|
13
|
-
import { AgentConfig } from './AgentCore';
|
|
14
|
-
import { IPromptEngine } from '../../core/llm/IPromptEngine';
|
|
15
|
-
import { IProvider } from '../../core/llm/providers/IProvider';
|
|
16
|
-
import { IUtilityAI } from '../../cognition/nlp/ai_utilities/IUtilityAI';
|
|
17
|
-
import { AIModelProviderManager } from '../../core/llm/providers/AIModelProviderManager';
|
|
12
|
+
import { IAgent } from './IAgent.js';
|
|
13
|
+
import { AgentConfig } from './AgentCore.js';
|
|
14
|
+
import { IPromptEngine } from '../../core/llm/IPromptEngine.js';
|
|
15
|
+
import { IProvider } from '../../core/llm/providers/IProvider.js';
|
|
16
|
+
import { IUtilityAI } from '../../cognition/nlp/ai_utilities/IUtilityAI.js';
|
|
17
|
+
import { AIModelProviderManager } from '../../core/llm/providers/AIModelProviderManager.js';
|
|
18
18
|
/**
|
|
19
19
|
* Defines the set of shared dependencies that an agent instance typically requires.
|
|
20
20
|
* The `IAgentFactory` uses this structure to ensure that all necessary services
|
package/dist/api/AgentOS.d.ts
CHANGED
|
@@ -37,54 +37,54 @@
|
|
|
37
37
|
* See `StreamingManager` for real-time data streaming internals.
|
|
38
38
|
* See `@framers/agentos/utils/errors` for shared error definitions.
|
|
39
39
|
*/
|
|
40
|
-
import { IAgentOS } from './interfaces/IAgentOS';
|
|
41
|
-
import { AgentOSInput, UserFeedbackPayload } from './types/AgentOSInput';
|
|
42
|
-
import type { AgentOSPendingExternalToolRequest, AgentOSResumeExternalToolRequestOptions } from './types/AgentOSExternalToolRequest';
|
|
43
|
-
import type { AgentOSToolResultInput } from './types/AgentOSToolResult';
|
|
44
|
-
import { AgentOSResponse } from './types/AgentOSResponse';
|
|
45
|
-
import { type AgentOSOrchestratorConfig, type ITaskOutcomeTelemetryStore } from './runtime/AgentOSOrchestrator';
|
|
46
|
-
import { GMIManager, GMIManagerConfig } from '../cognition/substrate/GMIManager';
|
|
40
|
+
import { IAgentOS } from './interfaces/IAgentOS.js';
|
|
41
|
+
import { AgentOSInput, UserFeedbackPayload } from './types/AgentOSInput.js';
|
|
42
|
+
import type { AgentOSPendingExternalToolRequest, AgentOSResumeExternalToolRequestOptions } from './types/AgentOSExternalToolRequest.js';
|
|
43
|
+
import type { AgentOSToolResultInput } from './types/AgentOSToolResult.js';
|
|
44
|
+
import { AgentOSResponse } from './types/AgentOSResponse.js';
|
|
45
|
+
import { type AgentOSOrchestratorConfig, type ITaskOutcomeTelemetryStore } from './runtime/AgentOSOrchestrator.js';
|
|
46
|
+
import { GMIManager, GMIManagerConfig } from '../cognition/substrate/GMIManager.js';
|
|
47
47
|
import type { ILearningLayer, LearningConfig } from '../cognition/learning/types.js';
|
|
48
|
-
import { AIModelProviderManager, AIModelProviderManagerConfig } from '../core/llm/providers/AIModelProviderManager';
|
|
49
|
-
import { PromptEngineConfig, IPromptEngineUtilityAI } from '../core/llm/IPromptEngine';
|
|
50
|
-
import { IToolOrchestrator, type ToolDefinitionForLLM } from '../core/tools/IToolOrchestrator';
|
|
51
|
-
import { ToolOrchestratorConfig } from '../core/config/ToolOrchestratorConfig';
|
|
52
|
-
import { ToolPermissionManagerConfig } from '../core/tools/permissions/IToolPermissionManager';
|
|
53
|
-
import type { IAuthService, ISubscriptionService } from '../core/types/auth';
|
|
54
|
-
import type { IHumanInteractionManager } from '../orchestration/hitl/IHumanInteractionManager';
|
|
55
|
-
import { IUtilityAI } from '../cognition/nlp/ai_utilities/IUtilityAI';
|
|
56
|
-
import { ConversationManager, ConversationManagerConfig } from '../core/conversation/ConversationManager';
|
|
57
|
-
import { ConversationContext } from '../core/conversation/ConversationContext';
|
|
58
|
-
import type { IRollingSummaryMemorySink } from '../core/conversation/IRollingSummaryMemorySink';
|
|
59
|
-
import type { ILongTermMemoryRetriever } from '../core/conversation/ILongTermMemoryRetriever';
|
|
60
|
-
import type { IRetrievalAugmentor } from '../cognition/rag/IRetrievalAugmentor';
|
|
61
|
-
import type { EmbeddingManagerConfig } from '../core/config/EmbeddingManagerConfiguration';
|
|
62
|
-
import type { RetrievalAugmentorServiceConfig } from '../core/config/RetrievalAugmentorConfiguration';
|
|
63
|
-
import type { RagDataSourceConfig, VectorStoreManagerConfig } from '../core/config/VectorStoreConfiguration';
|
|
48
|
+
import { AIModelProviderManager, AIModelProviderManagerConfig } from '../core/llm/providers/AIModelProviderManager.js';
|
|
49
|
+
import { PromptEngineConfig, IPromptEngineUtilityAI } from '../core/llm/IPromptEngine.js';
|
|
50
|
+
import { IToolOrchestrator, type ToolDefinitionForLLM } from '../core/tools/IToolOrchestrator.js';
|
|
51
|
+
import { ToolOrchestratorConfig } from '../core/config/ToolOrchestratorConfig.js';
|
|
52
|
+
import { ToolPermissionManagerConfig } from '../core/tools/permissions/IToolPermissionManager.js';
|
|
53
|
+
import type { IAuthService, ISubscriptionService } from '../core/types/auth.js';
|
|
54
|
+
import type { IHumanInteractionManager } from '../orchestration/hitl/IHumanInteractionManager.js';
|
|
55
|
+
import { IUtilityAI } from '../cognition/nlp/ai_utilities/IUtilityAI.js';
|
|
56
|
+
import { ConversationManager, ConversationManagerConfig } from '../core/conversation/ConversationManager.js';
|
|
57
|
+
import { ConversationContext } from '../core/conversation/ConversationContext.js';
|
|
58
|
+
import type { IRollingSummaryMemorySink } from '../core/conversation/IRollingSummaryMemorySink.js';
|
|
59
|
+
import type { ILongTermMemoryRetriever } from '../core/conversation/ILongTermMemoryRetriever.js';
|
|
60
|
+
import type { IRetrievalAugmentor } from '../cognition/rag/IRetrievalAugmentor.js';
|
|
61
|
+
import type { EmbeddingManagerConfig } from '../core/config/EmbeddingManagerConfiguration.js';
|
|
62
|
+
import type { RetrievalAugmentorServiceConfig } from '../core/config/RetrievalAugmentorConfiguration.js';
|
|
63
|
+
import type { RagDataSourceConfig, VectorStoreManagerConfig } from '../core/config/VectorStoreConfiguration.js';
|
|
64
64
|
import type { PrismaClient } from '../core/storage/prismaClient.js';
|
|
65
65
|
import type { StorageAdapter } from '@framers/sql-storage-adapter';
|
|
66
|
-
import { IPersonaDefinition } from '../cognition/substrate/personas/IPersonaDefinition';
|
|
67
|
-
import { StreamingManagerConfig, StreamId } from '../core/streaming/StreamingManager';
|
|
68
|
-
import { ILogger } from '../core/logging/ILogger';
|
|
69
|
-
import { type AgentOSObservabilityConfig } from '../safety/evaluation/observability/otel';
|
|
70
|
-
import type { IGuardrailService } from '../safety/guardrails/IGuardrailService';
|
|
71
|
-
import { type RequiredGuardrailSpec } from '../safety/guardrails/requiredGuardrails';
|
|
72
|
-
import { type ISpendMeter } from '../safety/runtime/SpendMeter';
|
|
73
|
-
import { type IStructuredSchemaRegistry } from './runtime/structuredReply';
|
|
66
|
+
import { IPersonaDefinition } from '../cognition/substrate/personas/IPersonaDefinition.js';
|
|
67
|
+
import { StreamingManagerConfig, StreamId } from '../core/streaming/StreamingManager.js';
|
|
68
|
+
import { ILogger } from '../core/logging/ILogger.js';
|
|
69
|
+
import { type AgentOSObservabilityConfig } from '../safety/evaluation/observability/otel.js';
|
|
70
|
+
import type { IGuardrailService } from '../safety/guardrails/IGuardrailService.js';
|
|
71
|
+
import { type RequiredGuardrailSpec } from '../safety/guardrails/requiredGuardrails.js';
|
|
72
|
+
import { type ISpendMeter } from '../safety/runtime/SpendMeter.js';
|
|
73
|
+
import { type IStructuredSchemaRegistry } from './runtime/structuredReply.js';
|
|
74
74
|
import type { EmergentConfig } from '../cognition/emergent/types.js';
|
|
75
|
-
import type { IPersonaLoader } from '../cognition/substrate/personas/IPersonaLoader';
|
|
76
|
-
import { ExtensionManager, type ExtensionManifest, type ExtensionOverrides, type HttpHandlerPayload } from '../extensions';
|
|
75
|
+
import type { IPersonaLoader } from '../cognition/substrate/personas/IPersonaLoader.js';
|
|
76
|
+
import { ExtensionManager, type ExtensionManifest, type ExtensionOverrides, type HttpHandlerPayload } from '../extensions/index.js';
|
|
77
77
|
import type { MemoryToolsExtensionOptions } from '../cognition/memory/io/extension/MemoryToolsExtension.js';
|
|
78
78
|
import type { Memory } from '../cognition/memory/io/facade/Memory.js';
|
|
79
79
|
import type { StandaloneMemoryLongTermRetrieverOptions, StandaloneMemoryRollingSummarySinkOptions } from '../cognition/memory/io/integration/StandaloneMemoryBridge.js';
|
|
80
|
-
import { type ExternalToolRegistry } from './runtime/externalToolRegistry';
|
|
81
|
-
import { type AdaptableToolInput } from './runtime/toolAdapter';
|
|
82
|
-
import type { TurnPlannerConfig } from '../orchestration/turn-planner/TurnPlanner';
|
|
83
|
-
import type { CapabilityDescriptor, CapabilityDiscoveryConfig, CapabilityIndexSources, ICapabilityDiscoveryEngine, PresetCoOccurrence } from '../cognition/discovery/types';
|
|
84
|
-
import type { WorkflowEngineConfig } from '../orchestration/workflows/IWorkflowEngine';
|
|
85
|
-
import type { WorkflowDefinition, WorkflowInstance, WorkflowProgressUpdate, WorkflowStatus } from '../orchestration/workflows/WorkflowTypes';
|
|
86
|
-
import type { IWorkflowStore, WorkflowQueryOptions, WorkflowTaskUpdate } from '../orchestration/workflows/storage/IWorkflowStore';
|
|
87
|
-
export { AgentOSServiceError } from './errors';
|
|
80
|
+
import { type ExternalToolRegistry } from './runtime/externalToolRegistry.js';
|
|
81
|
+
import { type AdaptableToolInput } from './runtime/toolAdapter.js';
|
|
82
|
+
import type { TurnPlannerConfig } from '../orchestration/turn-planner/TurnPlanner.js';
|
|
83
|
+
import type { CapabilityDescriptor, CapabilityDiscoveryConfig, CapabilityIndexSources, ICapabilityDiscoveryEngine, PresetCoOccurrence } from '../cognition/discovery/types.js';
|
|
84
|
+
import type { WorkflowEngineConfig } from '../orchestration/workflows/IWorkflowEngine.js';
|
|
85
|
+
import type { WorkflowDefinition, WorkflowInstance, WorkflowProgressUpdate, WorkflowStatus } from '../orchestration/workflows/WorkflowTypes.js';
|
|
86
|
+
import type { IWorkflowStore, WorkflowQueryOptions, WorkflowTaskUpdate } from '../orchestration/workflows/storage/IWorkflowStore.js';
|
|
87
|
+
export { AgentOSServiceError } from './errors.js';
|
|
88
88
|
export interface AgentOSCapabilityDiscoverySources {
|
|
89
89
|
skills?: CapabilityIndexSources['skills'];
|
|
90
90
|
extensions?: CapabilityIndexSources['extensions'];
|
|
@@ -445,13 +445,13 @@ export interface AgentOSConfig {
|
|
|
445
445
|
* }
|
|
446
446
|
* ```
|
|
447
447
|
*/
|
|
448
|
-
registryConfig?: import('../extensions/RegistryConfig').MultiRegistryConfig;
|
|
448
|
+
registryConfig?: import('../extensions/RegistryConfig.js').MultiRegistryConfig;
|
|
449
449
|
/** Optional workflow engine configuration. */
|
|
450
450
|
workflowEngineConfig?: WorkflowEngineConfig;
|
|
451
451
|
/** Optional workflow store implementation. Defaults to the in-memory store if omitted. */
|
|
452
452
|
workflowStore?: IWorkflowStore;
|
|
453
453
|
/** Optional multilingual configuration enabling detection, negotiation, translation. */
|
|
454
|
-
languageConfig?: import('../cognition/nlp/language').AgentOSLanguageConfig;
|
|
454
|
+
languageConfig?: import('../cognition/nlp/language/index.js').AgentOSLanguageConfig;
|
|
455
455
|
/** Optional custom persona loader (useful for browser/local runtimes). */
|
|
456
456
|
personaLoader?: IPersonaLoader;
|
|
457
457
|
/**
|
|
@@ -641,7 +641,7 @@ export declare class AgentOS implements IAgentOS {
|
|
|
641
641
|
*
|
|
642
642
|
* @example
|
|
643
643
|
* ```ts
|
|
644
|
-
* import { AgentOS } from '
|
|
644
|
+
* import { AgentOS } from '../index.js';
|
|
645
645
|
*
|
|
646
646
|
* // Defaults — reads DATABASE_URL + provider keys from env.
|
|
647
647
|
* const os = await AgentOS.create();
|
package/dist/api/agent.d.ts
CHANGED
|
@@ -557,7 +557,7 @@ export interface Agent {
|
|
|
557
557
|
*/
|
|
558
558
|
exportJSON(metadata?: AgentExportConfig['metadata'], options?: ExportAgentConfigOptions): string;
|
|
559
559
|
/** Read current avatar binding state (auto-populated from mood/voice/relationship). */
|
|
560
|
-
getAvatarBindings(): import('./types').AvatarBindingInputs & Record<string, unknown>;
|
|
560
|
+
getAvatarBindings(): import('./types.js').AvatarBindingInputs & Record<string, unknown>;
|
|
561
561
|
/** Inject game-specific binding overrides (healthBand, combatMode, etc.). */
|
|
562
562
|
setAvatarBindingOverrides(overrides: Record<string, unknown>): void;
|
|
563
563
|
/** Prepares the configured scoped voice call; present only with voice.session. */
|
package/dist/api/embedText.d.ts
CHANGED
package/dist/api/hitl.d.ts
CHANGED
|
@@ -152,7 +152,7 @@ export declare const hitl: {
|
|
|
152
152
|
*
|
|
153
153
|
* @example
|
|
154
154
|
* ```ts
|
|
155
|
-
* import { agency, hitl } from '
|
|
155
|
+
* import { agency, hitl } from '../index.js';
|
|
156
156
|
*
|
|
157
157
|
* const guarded = agency({
|
|
158
158
|
* agents: { worker: { instructions: 'Execute tasks.' } },
|
package/dist/api/index.d.ts
CHANGED
|
@@ -54,5 +54,5 @@ export type { SkillEntry } from '../cognition/skills/types.js';
|
|
|
54
54
|
export { SkillRegistry } from '../cognition/skills/SkillRegistry.js';
|
|
55
55
|
export type { AvatarConfig, AvatarRuntimeMode, AvatarAnchorAssets, AvatarStyleProjection, AvatarDriftGuard, AvatarBindingInputs, AvatarRiveProfile, AvatarSpriteProfile, AvatarIdentityPackage, AvatarIdentityDescriptor, VerifyCitationsConfig, } from './types.js';
|
|
56
56
|
export * from './errors.js';
|
|
57
|
-
export { resolveStructuredReply, resolveStructuredReplySpec, checkStructuredReply, recheckStructuredReply, structuredRepairMessage, StructuredReplyConfigError, type StructuredReplySpec, type StructuredOutputMeta, type StructuredReplyOutput, type IStructuredSchemaRegistry, type ResolvedStructuredReply, } from './runtime/structuredReply';
|
|
57
|
+
export { resolveStructuredReply, resolveStructuredReplySpec, checkStructuredReply, recheckStructuredReply, structuredRepairMessage, StructuredReplyConfigError, type StructuredReplySpec, type StructuredOutputMeta, type StructuredReplyOutput, type IStructuredSchemaRegistry, type ResolvedStructuredReply, } from './runtime/structuredReply.js';
|
|
58
58
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -6,22 +6,22 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @module backend/agentos/api/interfaces/IAgentOS
|
|
8
8
|
*/
|
|
9
|
-
import { AgentOSInput, UserFeedbackPayload } from '../types/AgentOSInput';
|
|
10
|
-
import { AgentOSResponse } from '../types/AgentOSResponse';
|
|
11
|
-
import type { AgentOSPendingExternalToolRequest, AgentOSResumeExternalToolRequestOptions } from '../types/AgentOSExternalToolRequest';
|
|
12
|
-
import type { AgentOSToolResultInput } from '../types/AgentOSToolResult';
|
|
13
|
-
import { IPersonaDefinition } from '../../cognition/substrate/personas/IPersonaDefinition';
|
|
14
|
-
import { ConversationContext } from '../../core/conversation/ConversationContext';
|
|
15
|
-
import type { AgentOSConfig, AgentOSRuntimeSnapshot } from '../AgentOS';
|
|
16
|
-
import type { WorkflowDefinition, WorkflowInstance, WorkflowProgressUpdate, WorkflowStatus } from '../../orchestration/workflows/WorkflowTypes';
|
|
17
|
-
import type { WorkflowQueryOptions, WorkflowTaskUpdate } from '../../orchestration/workflows/storage/IWorkflowStore';
|
|
18
|
-
import type { ConversationManager } from '../../core/conversation/ConversationManager';
|
|
19
|
-
import type { GMIManager } from '../../cognition/substrate/GMIManager';
|
|
20
|
-
import type { ILearningLayer } from '../../cognition/learning/types';
|
|
21
|
-
import type { ExtensionManager } from '../../extensions';
|
|
22
|
-
import type { IToolOrchestrator, ToolDefinitionForLLM } from '../../core/tools/IToolOrchestrator';
|
|
23
|
-
import type { AIModelProviderManager } from '../../core/llm/providers/AIModelProviderManager';
|
|
24
|
-
import type { ExternalToolRegistry } from '../runtime/externalToolRegistry';
|
|
9
|
+
import { AgentOSInput, UserFeedbackPayload } from '../types/AgentOSInput.js';
|
|
10
|
+
import { AgentOSResponse } from '../types/AgentOSResponse.js';
|
|
11
|
+
import type { AgentOSPendingExternalToolRequest, AgentOSResumeExternalToolRequestOptions } from '../types/AgentOSExternalToolRequest.js';
|
|
12
|
+
import type { AgentOSToolResultInput } from '../types/AgentOSToolResult.js';
|
|
13
|
+
import { IPersonaDefinition } from '../../cognition/substrate/personas/IPersonaDefinition.js';
|
|
14
|
+
import { ConversationContext } from '../../core/conversation/ConversationContext.js';
|
|
15
|
+
import type { AgentOSConfig, AgentOSRuntimeSnapshot } from '../AgentOS.js';
|
|
16
|
+
import type { WorkflowDefinition, WorkflowInstance, WorkflowProgressUpdate, WorkflowStatus } from '../../orchestration/workflows/WorkflowTypes.js';
|
|
17
|
+
import type { WorkflowQueryOptions, WorkflowTaskUpdate } from '../../orchestration/workflows/storage/IWorkflowStore.js';
|
|
18
|
+
import type { ConversationManager } from '../../core/conversation/ConversationManager.js';
|
|
19
|
+
import type { GMIManager } from '../../cognition/substrate/GMIManager.js';
|
|
20
|
+
import type { ILearningLayer } from '../../cognition/learning/types.js';
|
|
21
|
+
import type { ExtensionManager } from '../../extensions/index.js';
|
|
22
|
+
import type { IToolOrchestrator, ToolDefinitionForLLM } from '../../core/tools/IToolOrchestrator.js';
|
|
23
|
+
import type { AIModelProviderManager } from '../../core/llm/providers/AIModelProviderManager.js';
|
|
24
|
+
import type { ExternalToolRegistry } from '../runtime/externalToolRegistry.js';
|
|
25
25
|
/**
|
|
26
26
|
* @interface IAgentOS
|
|
27
27
|
* @description
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ConversationContext } from '../../core/conversation/ConversationContext';
|
|
2
|
-
import { ToolCallRequest, UICommand } from '../../cognition/substrate/IGMI';
|
|
3
|
-
import { IPersonaDefinition } from '../../cognition/substrate/personas/IPersonaDefinition';
|
|
1
|
+
import { ConversationContext } from '../../core/conversation/ConversationContext.js';
|
|
2
|
+
import { ToolCallRequest, UICommand } from '../../cognition/substrate/IGMI.js';
|
|
3
|
+
import { IPersonaDefinition } from '../../cognition/substrate/personas/IPersonaDefinition.js';
|
|
4
4
|
/**
|
|
5
5
|
* @fileoverview Defines the interface for a Unified Agent within the AgentOS framework.
|
|
6
6
|
* In the new architecture, "Personas ARE Agents." This interface represents the core
|
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
* coordinating tool execution and result feedback.
|
|
7
7
|
* @module backend/agentos/api/AgentOSOrchestrator
|
|
8
8
|
*/
|
|
9
|
-
import { AgentOSInput } from '../types/AgentOSInput';
|
|
10
|
-
import type { AgentOSPendingExternalToolRequest, AgentOSResumeExternalToolRequestOptions } from '../types/AgentOSExternalToolRequest';
|
|
11
|
-
import type { AgentOSToolResultInput } from '../types/AgentOSToolResult';
|
|
12
|
-
import { type GMIToolCallRefusal } from '../../cognition/substrate/IGMI';
|
|
13
|
-
import type { GuardrailToolCallGate } from '../../safety/guardrails/guardrailDispatcher';
|
|
14
|
-
import { type StreamId } from '../../core/streaming/StreamingManager';
|
|
15
|
-
import type { WorkflowProgressUpdate } from '../../orchestration/workflows/WorkflowTypes';
|
|
16
|
-
export type { RollingSummaryCompactionProfileDefinition, RollingSummaryCompactionProfilesConfig, LongTermMemoryRecallProfile, AgentOSLongTermMemoryRecallConfig, TenantRoutingMode, AgentOSTenantRoutingConfig, TaskOutcomeTelemetryScope, AgentOSTaskOutcomeTelemetryConfig, AgentOSAdaptiveExecutionConfig, TaskOutcomeKpiWindowEntry, ITaskOutcomeTelemetryStore, AgentOSOrchestratorConfig, AgentOSOrchestratorDependencies, } from '../types/OrchestratorConfig';
|
|
17
|
-
import type { AgentOSOrchestratorConfig, AgentOSOrchestratorDependencies } from '../types/OrchestratorConfig';
|
|
9
|
+
import { AgentOSInput } from '../types/AgentOSInput.js';
|
|
10
|
+
import type { AgentOSPendingExternalToolRequest, AgentOSResumeExternalToolRequestOptions } from '../types/AgentOSExternalToolRequest.js';
|
|
11
|
+
import type { AgentOSToolResultInput } from '../types/AgentOSToolResult.js';
|
|
12
|
+
import { type GMIToolCallRefusal } from '../../cognition/substrate/IGMI.js';
|
|
13
|
+
import type { GuardrailToolCallGate } from '../../safety/guardrails/guardrailDispatcher.js';
|
|
14
|
+
import { type StreamId } from '../../core/streaming/StreamingManager.js';
|
|
15
|
+
import type { WorkflowProgressUpdate } from '../../orchestration/workflows/WorkflowTypes.js';
|
|
16
|
+
export type { RollingSummaryCompactionProfileDefinition, RollingSummaryCompactionProfilesConfig, LongTermMemoryRecallProfile, AgentOSLongTermMemoryRecallConfig, TenantRoutingMode, AgentOSTenantRoutingConfig, TaskOutcomeTelemetryScope, AgentOSTaskOutcomeTelemetryConfig, AgentOSAdaptiveExecutionConfig, TaskOutcomeKpiWindowEntry, ITaskOutcomeTelemetryStore, AgentOSOrchestratorConfig, AgentOSOrchestratorDependencies, } from '../types/OrchestratorConfig.js';
|
|
17
|
+
import type { AgentOSOrchestratorConfig, AgentOSOrchestratorDependencies } from '../types/OrchestratorConfig.js';
|
|
18
18
|
/** What AgentOS hands a turn, a continuation or a resumed turn from its output guardrails. */
|
|
19
19
|
export interface AgentOSOrchestratorGuards {
|
|
20
20
|
/**
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
* with a single `CapabilityDiscoveryInitializer` instance and accesses values
|
|
19
19
|
* through public read-only accessors.
|
|
20
20
|
*/
|
|
21
|
-
import type { ILogger } from '../../core/logging/ILogger';
|
|
22
|
-
import type { IToolOrchestrator } from '../../core/tools/IToolOrchestrator';
|
|
23
|
-
import type { AIModelProviderManager } from '../../core/llm/providers/AIModelProviderManager';
|
|
24
|
-
import { type ExtensionManager } from '../extensions';
|
|
25
|
-
import { type ITurnPlanner } from '../../orchestration/turn-planner/TurnPlanner';
|
|
26
|
-
import type { CapabilityDescriptor, CapabilityIndexSources, ICapabilityDiscoveryEngine } from '../../cognition/discovery/types';
|
|
27
|
-
import type { AgentOSTurnPlanningConfig, AgentOSCapabilityDiscoverySources } from './AgentOS';
|
|
28
|
-
import type { AdaptableToolInput } from './toolAdapter';
|
|
29
|
-
import type { AIModelProviderManagerConfig } from '../../core/llm/providers/AIModelProviderManager';
|
|
21
|
+
import type { ILogger } from '../../core/logging/ILogger.js';
|
|
22
|
+
import type { IToolOrchestrator } from '../../core/tools/IToolOrchestrator.js';
|
|
23
|
+
import type { AIModelProviderManager } from '../../core/llm/providers/AIModelProviderManager.js';
|
|
24
|
+
import { type ExtensionManager } from '../extensions/index.js';
|
|
25
|
+
import { type ITurnPlanner } from '../../orchestration/turn-planner/TurnPlanner.js';
|
|
26
|
+
import type { CapabilityDescriptor, CapabilityIndexSources, ICapabilityDiscoveryEngine } from '../../cognition/discovery/types.js';
|
|
27
|
+
import type { AgentOSTurnPlanningConfig, AgentOSCapabilityDiscoverySources } from './AgentOS.js';
|
|
28
|
+
import type { AdaptableToolInput } from './toolAdapter.js';
|
|
29
|
+
import type { AIModelProviderManagerConfig } from '../../core/llm/providers/AIModelProviderManager.js';
|
|
30
30
|
/**
|
|
31
31
|
* The curated registry's descriptors that may sit in the index beside the host's own sources.
|
|
32
32
|
*
|
|
@@ -10,16 +10,16 @@
|
|
|
10
10
|
*
|
|
11
11
|
* @module backend/agentos/api/ExternalToolResultHandler
|
|
12
12
|
*/
|
|
13
|
-
import type { StreamId } from '../../core/streaming/StreamingManager';
|
|
14
|
-
import type { StreamChunkEmitter } from './StreamChunkEmitter';
|
|
15
|
-
import type { AgentOSOrchestratorDependencies } from '../types/OrchestratorConfig';
|
|
16
|
-
import type { AgentOSToolResultInput } from '../types/AgentOSToolResult';
|
|
17
|
-
import type { AgentOSPendingExternalToolRequest, AgentOSResumeExternalToolRequestOptions } from '../types/AgentOSExternalToolRequest';
|
|
18
|
-
import type { ConversationContext } from '../../core/conversation/ConversationContext';
|
|
19
|
-
import type { ConversationMessage } from '../../core/conversation/ConversationMessage';
|
|
20
|
-
import type { IGMI, GMIOutput, GMIToolCallRefusal, ToolCallRequest } from '../../cognition/substrate/IGMI';
|
|
21
|
-
import type { RagRetrievedChunk } from '../../cognition/rag/IRetrievalAugmentor';
|
|
22
|
-
import type { GuardrailToolCallGate } from '../../safety/guardrails/guardrailDispatcher';
|
|
13
|
+
import type { StreamId } from '../../core/streaming/StreamingManager.js';
|
|
14
|
+
import type { StreamChunkEmitter } from './StreamChunkEmitter.js';
|
|
15
|
+
import type { AgentOSOrchestratorDependencies } from '../types/OrchestratorConfig.js';
|
|
16
|
+
import type { AgentOSToolResultInput } from '../types/AgentOSToolResult.js';
|
|
17
|
+
import type { AgentOSPendingExternalToolRequest, AgentOSResumeExternalToolRequestOptions } from '../types/AgentOSExternalToolRequest.js';
|
|
18
|
+
import type { ConversationContext } from '../../core/conversation/ConversationContext.js';
|
|
19
|
+
import type { ConversationMessage } from '../../core/conversation/ConversationMessage.js';
|
|
20
|
+
import type { IGMI, GMIOutput, GMIToolCallRefusal, ToolCallRequest } from '../../cognition/substrate/IGMI.js';
|
|
21
|
+
import type { RagRetrievedChunk } from '../../cognition/rag/IRetrievalAugmentor.js';
|
|
22
|
+
import type { GuardrailToolCallGate } from '../../safety/guardrails/guardrailDispatcher.js';
|
|
23
23
|
/**
|
|
24
24
|
* Internal state for managing an active stream of GMI interaction.
|
|
25
25
|
* Mirrors the definition inside AgentOSOrchestrator so that the handler
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
*
|
|
12
12
|
* @module backend/agentos/api/GMIChunkTransformer
|
|
13
13
|
*/
|
|
14
|
-
import type { StreamChunkEmitter } from './StreamChunkEmitter';
|
|
15
|
-
import type { AgentOSOrchestratorDependencies } from '../types/OrchestratorConfig';
|
|
16
|
-
import type { AgentOSInput } from '../types/AgentOSInput';
|
|
17
|
-
import type { ConversationContext } from '../../core/conversation/ConversationContext';
|
|
18
|
-
import type { IGMI, GMITurnInput, GMIOutputChunk, GMIOutput } from '../../cognition/substrate/IGMI';
|
|
19
|
-
import type { TurnPlan } from '../../orchestration/turn-planner/TurnPlanner';
|
|
14
|
+
import type { StreamChunkEmitter } from './StreamChunkEmitter.js';
|
|
15
|
+
import type { AgentOSOrchestratorDependencies } from '../types/OrchestratorConfig.js';
|
|
16
|
+
import type { AgentOSInput } from '../types/AgentOSInput.js';
|
|
17
|
+
import type { ConversationContext } from '../../core/conversation/ConversationContext.js';
|
|
18
|
+
import type { IGMI, GMITurnInput, GMIOutputChunk, GMIOutput } from '../../cognition/substrate/IGMI.js';
|
|
19
|
+
import type { TurnPlan } from '../../orchestration/turn-planner/TurnPlanner.js';
|
|
20
20
|
/**
|
|
21
21
|
* Minimal stream context shape needed by the transformer.
|
|
22
22
|
* Mirrors the ActiveStreamContext defined in AgentOSOrchestrator.
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
* `RagMemoryInitializer` instance and accesses values through public
|
|
21
21
|
* read-only accessors.
|
|
22
22
|
*/
|
|
23
|
-
import type { ILogger } from '../../core/logging/ILogger';
|
|
24
|
-
import type { AIModelProviderManager } from '../../core/llm/providers/AIModelProviderManager';
|
|
25
|
-
import type { IRetrievalAugmentor } from '../../cognition/rag/IRetrievalAugmentor';
|
|
26
|
-
import type { IVectorStoreManager } from '../../core/vector-store/IVectorStoreManager';
|
|
23
|
+
import type { ILogger } from '../../core/logging/ILogger.js';
|
|
24
|
+
import type { AIModelProviderManager } from '../../core/llm/providers/AIModelProviderManager.js';
|
|
25
|
+
import type { IRetrievalAugmentor } from '../../cognition/rag/IRetrievalAugmentor.js';
|
|
26
|
+
import type { IVectorStoreManager } from '../../core/vector-store/IVectorStoreManager.js';
|
|
27
27
|
import type { StorageAdapter } from '@framers/sql-storage-adapter';
|
|
28
|
-
import type { ExtensionManager, ExtensionLifecycleContext } from '../extensions';
|
|
29
|
-
import type { AgentOSConfig, AgentOSMemoryToolsConfig } from './AgentOS';
|
|
28
|
+
import type { ExtensionManager, ExtensionLifecycleContext } from '../extensions/index.js';
|
|
29
|
+
import type { AgentOSConfig, AgentOSMemoryToolsConfig } from './AgentOS.js';
|
|
30
30
|
/**
|
|
31
31
|
* Dependencies injected into the initializer at construction time.
|
|
32
32
|
*/
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
* against the fully initialized AgentOS at tool-call time, not at
|
|
19
19
|
* bootstrap.
|
|
20
20
|
*/
|
|
21
|
-
import type { AgentOSInput } from '../types/AgentOSInput';
|
|
22
|
-
import type { ILogger } from '../../core/logging/ILogger';
|
|
21
|
+
import type { AgentOSInput } from '../types/AgentOSInput.js';
|
|
22
|
+
import type { ILogger } from '../../core/logging/ILogger.js';
|
|
23
23
|
import type { ToolExecutionContext } from '../../core/tools/ITool.js';
|
|
24
24
|
import type { SelfImprovementToolDeps } from '../../cognition/emergent/EmergentCapabilityEngine.js';
|
|
25
|
-
import type { CapabilityIndexSources } from '../../cognition/discovery/types';
|
|
25
|
+
import type { CapabilityIndexSources } from '../../cognition/discovery/types.js';
|
|
26
26
|
import type { IGMI } from '../../cognition/substrate/IGMI.js';
|
|
27
27
|
import type { StorageAdapter } from '@framers/sql-storage-adapter';
|
|
28
28
|
import { type SelfImprovementSkillDescriptor } from './selfImprovementRuntime.js';
|
|
@@ -47,7 +47,7 @@ export interface SelfImprovementRuntimeAccessors {
|
|
|
47
47
|
*/
|
|
48
48
|
getGMIForContext: (context?: ToolExecutionContext) => IGMI | undefined;
|
|
49
49
|
/** Returns the tool orchestrator instance. */
|
|
50
|
-
getToolOrchestrator: () => import('../core/tools/IToolOrchestrator').IToolOrchestrator;
|
|
50
|
+
getToolOrchestrator: () => import('../core/tools/IToolOrchestrator.js').IToolOrchestrator;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* The part of GMIManager that maps instance ids and session ids to active
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @fileoverview Stream chunk assembly and emission delegate.
|
|
3
3
|
* Extracted from AgentOSOrchestrator for focused chunk construction logic.
|
|
4
4
|
*/
|
|
5
|
-
import type { StreamId, StreamingManager } from '../../core/streaming/StreamingManager';
|
|
6
|
-
import { AgentOSResponseChunkType } from '../types/AgentOSResponse';
|
|
5
|
+
import type { StreamId, StreamingManager } from '../../core/streaming/StreamingManager.js';
|
|
6
|
+
import { AgentOSResponseChunkType } from '../types/AgentOSResponse.js';
|
|
7
7
|
import { GMIErrorCode } from '../../core/utils/errors.js';
|
|
8
8
|
type TurnExecutionLifecyclePhase = 'planned' | 'executing' | 'degraded' | 'recovered' | 'completed' | 'errored';
|
|
9
9
|
interface StreamContext {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* @fileoverview Task outcome telemetry — rolling KPI windows, adaptive execution,
|
|
3
3
|
* and alert generation. Extracted from AgentOSOrchestrator for readability.
|
|
4
4
|
*/
|
|
5
|
-
import type { GMIOutput } from '../../cognition/substrate/IGMI';
|
|
6
|
-
import type { TaskOutcomeTelemetryScope, AgentOSTaskOutcomeTelemetryConfig, AgentOSAdaptiveExecutionConfig, TaskOutcomeKpiWindowEntry, ITaskOutcomeTelemetryStore } from '../types/OrchestratorConfig';
|
|
7
|
-
import type { TurnPlan } from '../../orchestration/turn-planner/TurnPlanner';
|
|
5
|
+
import type { GMIOutput } from '../../cognition/substrate/IGMI.js';
|
|
6
|
+
import type { TaskOutcomeTelemetryScope, AgentOSTaskOutcomeTelemetryConfig, AgentOSAdaptiveExecutionConfig, TaskOutcomeKpiWindowEntry, ITaskOutcomeTelemetryStore } from '../types/OrchestratorConfig.js';
|
|
7
|
+
import type { TurnPlan } from '../../orchestration/turn-planner/TurnPlanner.js';
|
|
8
8
|
type TaskOutcomeStatus = 'success' | 'partial' | 'failed';
|
|
9
9
|
export type TaskOutcomeAssessment = {
|
|
10
10
|
status: TaskOutcomeStatus;
|