@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
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
*
|
|
17
17
|
* @module backend/agentos/api/TurnExecutionPipeline
|
|
18
18
|
*/
|
|
19
|
-
import type { StreamId } from '../../core/streaming/StreamingManager';
|
|
20
|
-
import type { StreamChunkEmitter } from './StreamChunkEmitter';
|
|
21
|
-
import type { AgentOSOrchestratorDependencies } from '../types/OrchestratorConfig';
|
|
22
|
-
import type { AgentOSInput } from '../types/AgentOSInput';
|
|
23
|
-
import type { GMIChunkTransformer } from './GMIChunkTransformer';
|
|
24
|
-
import type { TaskOutcomeTelemetryManager } from './TaskOutcomeTelemetryManager';
|
|
25
|
-
import type { ConversationContext } from '../../core/conversation/ConversationContext';
|
|
26
|
-
import type { IGMI, GMITurnInput } from '../../cognition/substrate/IGMI';
|
|
27
|
-
import type { GuardrailToolCallGate } from '../../safety/guardrails/guardrailDispatcher';
|
|
28
|
-
import type { RollingSummaryCompactionConfig } from '../../core/conversation/RollingSummaryCompactor';
|
|
29
|
-
import { type ResolvedLongTermMemoryPolicy } from '../../core/conversation/LongTermMemoryPolicy';
|
|
30
|
-
import type { LongTermMemoryRecallProfile } from '../types/OrchestratorConfig';
|
|
19
|
+
import type { StreamId } from '../../core/streaming/StreamingManager.js';
|
|
20
|
+
import type { StreamChunkEmitter } from './StreamChunkEmitter.js';
|
|
21
|
+
import type { AgentOSOrchestratorDependencies } from '../types/OrchestratorConfig.js';
|
|
22
|
+
import type { AgentOSInput } from '../types/AgentOSInput.js';
|
|
23
|
+
import type { GMIChunkTransformer } from './GMIChunkTransformer.js';
|
|
24
|
+
import type { TaskOutcomeTelemetryManager } from './TaskOutcomeTelemetryManager.js';
|
|
25
|
+
import type { ConversationContext } from '../../core/conversation/ConversationContext.js';
|
|
26
|
+
import type { IGMI, GMITurnInput } from '../../cognition/substrate/IGMI.js';
|
|
27
|
+
import type { GuardrailToolCallGate } from '../../safety/guardrails/guardrailDispatcher.js';
|
|
28
|
+
import type { RollingSummaryCompactionConfig } from '../../core/conversation/RollingSummaryCompactor.js';
|
|
29
|
+
import { type ResolvedLongTermMemoryPolicy } from '../../core/conversation/LongTermMemoryPolicy.js';
|
|
30
|
+
import type { LongTermMemoryRecallProfile } from '../types/OrchestratorConfig.js';
|
|
31
31
|
/**
|
|
32
32
|
* Minimal stream context shape, matching the ActiveStreamContext used by
|
|
33
33
|
* the orchestrator and other extracted classes.
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
* AgentOS retains thin public delegates that forward to this facade, so the
|
|
17
17
|
* external API surface remains unchanged.
|
|
18
18
|
*/
|
|
19
|
-
import type { ILogger } from '../../core/logging/ILogger';
|
|
20
|
-
import type { IToolOrchestrator } from '../../core/tools/IToolOrchestrator';
|
|
21
|
-
import type { ExtensionManager, ExtensionLifecycleContext } from '../extensions';
|
|
22
|
-
import type { AgentOSOrchestrator } from './AgentOSOrchestrator';
|
|
23
|
-
import type { GMIManager } from '../../cognition/substrate/GMIManager';
|
|
24
|
-
import type { StreamingManager } from '../../core/streaming/StreamingManager';
|
|
25
|
-
import type { WorkflowEngineConfig } from '../../orchestration/workflows/IWorkflowEngine';
|
|
26
|
-
import type { WorkflowDefinition, WorkflowInstance, WorkflowProgressUpdate, WorkflowStatus } from '../../orchestration/workflows/WorkflowTypes';
|
|
27
|
-
import type { IWorkflowStore, WorkflowQueryOptions, WorkflowTaskUpdate } from '../../orchestration/workflows/storage/IWorkflowStore';
|
|
28
|
-
import type { AgentOSInput } from '../types/AgentOSInput';
|
|
19
|
+
import type { ILogger } from '../../core/logging/ILogger.js';
|
|
20
|
+
import type { IToolOrchestrator } from '../../core/tools/IToolOrchestrator.js';
|
|
21
|
+
import type { ExtensionManager, ExtensionLifecycleContext } from '../extensions/index.js';
|
|
22
|
+
import type { AgentOSOrchestrator } from './AgentOSOrchestrator.js';
|
|
23
|
+
import type { GMIManager } from '../../cognition/substrate/GMIManager.js';
|
|
24
|
+
import type { StreamingManager } from '../../core/streaming/StreamingManager.js';
|
|
25
|
+
import type { WorkflowEngineConfig } from '../../orchestration/workflows/IWorkflowEngine.js';
|
|
26
|
+
import type { WorkflowDefinition, WorkflowInstance, WorkflowProgressUpdate, WorkflowStatus } from '../../orchestration/workflows/WorkflowTypes.js';
|
|
27
|
+
import type { IWorkflowStore, WorkflowQueryOptions, WorkflowTaskUpdate } from '../../orchestration/workflows/storage/IWorkflowStore.js';
|
|
28
|
+
import type { AgentOSInput } from '../types/AgentOSInput.js';
|
|
29
29
|
/**
|
|
30
30
|
* Dependencies injected into the WorkflowFacade at construction time.
|
|
31
31
|
* These are references to services owned and managed by AgentOS.
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* one the host reads.
|
|
6
6
|
* @module backend/agentos/api/runtime/externalToolPause
|
|
7
7
|
*/
|
|
8
|
-
import type { GMIOutput, GMIOutputChunk, ToolCallRequest } from '../../cognition/substrate/IGMI';
|
|
9
|
-
import type { AgentOSToolCallExecutionMode } from '../types/AgentOSResponse';
|
|
8
|
+
import type { GMIOutput, GMIOutputChunk, ToolCallRequest } from '../../cognition/substrate/IGMI.js';
|
|
9
|
+
import type { AgentOSToolCallExecutionMode } from '../types/AgentOSResponse.js';
|
|
10
10
|
/**
|
|
11
11
|
* The calls a GMI's output stops its turn for: the host runs them and passes their results back through
|
|
12
12
|
* `handleToolResult()`, `handleToolResults()` or `resumeExternalToolRequest()`. Only an output that is not final
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { UserContext } from '../../cognition/substrate/IGMI';
|
|
2
|
-
import type { ToolDefinitionForLLM } from '../../core/tools/IToolOrchestrator';
|
|
3
|
-
import type { IToolOrchestrator } from '../../core/tools/IToolOrchestrator';
|
|
4
|
-
import type { ToolExecutionContext, ToolExecutionResult, ITool, JSONSchemaObject } from '../../core/tools/ITool';
|
|
5
|
-
import type { AgentOSExternalToolHandlerResult } from './processRequestWithExternalTools';
|
|
1
|
+
import type { UserContext } from '../../cognition/substrate/IGMI.js';
|
|
2
|
+
import type { ToolDefinitionForLLM } from '../../core/tools/IToolOrchestrator.js';
|
|
3
|
+
import type { IToolOrchestrator } from '../../core/tools/IToolOrchestrator.js';
|
|
4
|
+
import type { ToolExecutionContext, ToolExecutionResult, ITool, JSONSchemaObject } from '../../core/tools/ITool.js';
|
|
5
|
+
import type { AgentOSExternalToolHandlerResult } from './processRequestWithExternalTools.js';
|
|
6
6
|
export type ExternalToolExecutor<TArgs extends Record<string, any> = Record<string, any>, TOutput = unknown> = (args: TArgs, context: ToolExecutionContext) => Promise<ToolExecutionResult<TOutput>>;
|
|
7
7
|
type ExternalToolPromptMetadata = Partial<Pick<ITool<Record<string, any>, unknown>, 'name' | 'displayName' | 'description' | 'inputSchema' | 'outputSchema' | 'requiredCapabilities' | 'category' | 'version' | 'hasSideEffects'>>;
|
|
8
8
|
export type ExternalToolRegistryEntry = ExternalToolExecutor | (Pick<ITool<Record<string, any>, unknown>, 'execute'> & ExternalToolPromptMetadata);
|
|
@@ -69,7 +69,7 @@ export interface GlobalDefaultProvider {
|
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* ```ts
|
|
72
|
-
* import { setDefaultProvider, generateText } from '
|
|
72
|
+
* import { setDefaultProvider, generateText } from '../../index.js';
|
|
73
73
|
*
|
|
74
74
|
* setDefaultProvider({ provider: 'openai', apiKey: process.env.MY_OWN_KEY });
|
|
75
75
|
*
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* builds by default. Pure; AgentOS calls `validatePersonaSource` from
|
|
6
6
|
* `validateConfiguration()` and `resolvePersonaLoader` where GMIManager is built.
|
|
7
7
|
*/
|
|
8
|
-
import type { IPersonaDefinition } from '../../cognition/substrate/personas/IPersonaDefinition';
|
|
9
|
-
import type { IPersonaLoader, PersonaLoaderConfig } from '../../cognition/substrate/personas/IPersonaLoader';
|
|
8
|
+
import type { IPersonaDefinition } from '../../cognition/substrate/personas/IPersonaDefinition.js';
|
|
9
|
+
import type { IPersonaLoader, PersonaLoaderConfig } from '../../cognition/substrate/personas/IPersonaLoader.js';
|
|
10
10
|
/** The three config fields that decide a runtime's persona source. */
|
|
11
11
|
export interface PersonaSourceConfig {
|
|
12
12
|
/** Inline definitions; served by an in-memory loader. Exclusive with `personaLoader`. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { AgentOSInput } from '../types/AgentOSInput';
|
|
2
|
-
import { type AgentOSActionableToolCallRequestChunk, type AgentOSResponse } from '../types/AgentOSResponse';
|
|
3
|
-
import type { IAgentOS } from '../interfaces/IAgentOS';
|
|
4
|
-
import type { ToolCallRequest } from '../../cognition/substrate/IGMI';
|
|
1
|
+
import type { AgentOSInput } from '../types/AgentOSInput.js';
|
|
2
|
+
import { type AgentOSActionableToolCallRequestChunk, type AgentOSResponse } from '../types/AgentOSResponse.js';
|
|
3
|
+
import type { IAgentOS } from '../interfaces/IAgentOS.js';
|
|
4
|
+
import type { ToolCallRequest } from '../../cognition/substrate/IGMI.js';
|
|
5
5
|
export interface AgentOSExternalToolHandlerContext {
|
|
6
6
|
agentos: Pick<IAgentOS, 'handleToolResult'> & Partial<Pick<IAgentOS, 'handleToolResults'>>;
|
|
7
7
|
streamId: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { UserContext } from '../../cognition/substrate/IGMI';
|
|
2
|
-
import type { ToolExecutionContext } from '../../core/tools/ITool';
|
|
3
|
-
import type { IAgentOS } from '../interfaces/IAgentOS';
|
|
4
|
-
import type { AgentOSInput } from '../types/AgentOSInput';
|
|
5
|
-
import { type ExternalToolRegistry } from './externalToolRegistry';
|
|
6
|
-
import { type AgentOSExternalToolHandler, type AgentOSExternalToolHandlerContext } from './processRequestWithExternalTools';
|
|
7
|
-
import type { AgentOSResponse } from '../types/AgentOSResponse';
|
|
1
|
+
import type { UserContext } from '../../cognition/substrate/IGMI.js';
|
|
2
|
+
import type { ToolExecutionContext } from '../../core/tools/ITool.js';
|
|
3
|
+
import type { IAgentOS } from '../interfaces/IAgentOS.js';
|
|
4
|
+
import type { AgentOSInput } from '../types/AgentOSInput.js';
|
|
5
|
+
import { type ExternalToolRegistry } from './externalToolRegistry.js';
|
|
6
|
+
import { type AgentOSExternalToolHandler, type AgentOSExternalToolHandlerContext } from './processRequestWithExternalTools.js';
|
|
7
|
+
import type { AgentOSResponse } from '../types/AgentOSResponse.js';
|
|
8
8
|
export interface RegisteredExternalToolExecutionOptions {
|
|
9
9
|
/**
|
|
10
10
|
* Optional additional user-context fields to merge into the live tool
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { UserContext, ToolCallRequest } from '../../cognition/substrate/IGMI';
|
|
2
|
-
import type { ToolExecutionContext } from '../../core/tools/ITool';
|
|
3
|
-
import type { IAgentOS } from '../interfaces/IAgentOS';
|
|
4
|
-
import type { AgentOSPendingExternalToolRequest, AgentOSResumeExternalToolRequestOptions } from '../types/AgentOSExternalToolRequest';
|
|
5
|
-
import type { AgentOSResponse } from '../types/AgentOSResponse';
|
|
6
|
-
import type { AgentOSToolResultInput } from '../types/AgentOSToolResult';
|
|
7
|
-
import { type ExternalToolRegistry } from './externalToolRegistry';
|
|
8
|
-
import type { AgentOSExternalToolHandlerResult } from './processRequestWithExternalTools';
|
|
1
|
+
import type { UserContext, ToolCallRequest } from '../../cognition/substrate/IGMI.js';
|
|
2
|
+
import type { ToolExecutionContext } from '../../core/tools/ITool.js';
|
|
3
|
+
import type { IAgentOS } from '../interfaces/IAgentOS.js';
|
|
4
|
+
import type { AgentOSPendingExternalToolRequest, AgentOSResumeExternalToolRequestOptions } from '../types/AgentOSExternalToolRequest.js';
|
|
5
|
+
import type { AgentOSResponse } from '../types/AgentOSResponse.js';
|
|
6
|
+
import type { AgentOSToolResultInput } from '../types/AgentOSToolResult.js';
|
|
7
|
+
import { type ExternalToolRegistry } from './externalToolRegistry.js';
|
|
8
|
+
import type { AgentOSExternalToolHandlerResult } from './processRequestWithExternalTools.js';
|
|
9
9
|
export interface PendingExternalToolExecutionOptions {
|
|
10
10
|
/**
|
|
11
11
|
* Optional additional user-context fields to merge into the execution
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ToolExecutionResult } from '../../../core/tools/ITool';
|
|
1
|
+
import type { ToolExecutionResult } from '../../../core/tools/ITool.js';
|
|
2
2
|
export type ToolMode = 'auto' | 'native' | 'prompt';
|
|
3
3
|
/** Decide whether the prompt-based shim handles tools for this call. */
|
|
4
4
|
export declare function resolveShimActive(mode: ToolMode | undefined, nativeToolSupport: boolean): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './parser';
|
|
2
|
-
export * from './renderer';
|
|
3
|
-
export * from './activation';
|
|
4
|
-
export * from './loop';
|
|
5
|
-
export * from './history';
|
|
1
|
+
export * from './parser.js';
|
|
2
|
+
export * from './renderer.js';
|
|
3
|
+
export * from './activation.js';
|
|
4
|
+
export * from './loop.js';
|
|
5
|
+
export * from './history.js';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ITool, ToolExecutionContext } from '../../../core/tools/ITool';
|
|
2
|
-
import { type ApprovalGateFn } from '../approval-gate';
|
|
1
|
+
import type { ITool, ToolExecutionContext } from '../../../core/tools/ITool.js';
|
|
2
|
+
import { type ApprovalGateFn } from '../approval-gate.js';
|
|
3
3
|
export interface EmulatedLoopMessage {
|
|
4
4
|
role: string;
|
|
5
5
|
content: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ITool } from '../../../core/tools/ITool';
|
|
1
|
+
import type { ITool } from '../../../core/tools/ITool.js';
|
|
2
2
|
/**
|
|
3
3
|
* Render a Hermes-style tool system block for models without native tool-use.
|
|
4
4
|
* Lists the tools as JSON in a <tools> block and instructs the model to emit
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* tool-call gate over TOOL_CALL_REQUEST chunks of the calls the runtime runs itself.
|
|
4
4
|
* @module backend/agentos/api/runtime/toolCallGate
|
|
5
5
|
*/
|
|
6
|
-
import type { GMIToolCallGate } from '../../cognition/substrate/IGMI';
|
|
7
|
-
import type { GuardrailToolCallGate } from '../../safety/guardrails/guardrailDispatcher';
|
|
6
|
+
import type { GMIToolCallGate } from '../../cognition/substrate/IGMI.js';
|
|
7
|
+
import type { GuardrailToolCallGate } from '../../safety/guardrails/guardrailDispatcher.js';
|
|
8
8
|
/** The stream a turn runs on, read when a call is judged. */
|
|
9
9
|
export interface ToolCallGateStream {
|
|
10
10
|
personaId: string;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* @fileoverview Conversation history assembly phase.
|
|
3
3
|
* Builds a trimmed, deduplicated history snapshot for prompt construction.
|
|
4
4
|
*/
|
|
5
|
-
import type { ConversationContext } from '../../../core/conversation/ConversationContext';
|
|
6
|
-
import { type GMITurnInput } from '../../../cognition/substrate/IGMI';
|
|
7
|
-
import type { RollingSummaryCompactionConfig, RollingSummaryCompactionResult } from '../../../core/conversation/RollingSummaryCompactor';
|
|
5
|
+
import type { ConversationContext } from '../../../core/conversation/ConversationContext.js';
|
|
6
|
+
import { type GMITurnInput } from '../../../cognition/substrate/IGMI.js';
|
|
7
|
+
import type { RollingSummaryCompactionConfig, RollingSummaryCompactionResult } from '../../../core/conversation/RollingSummaryCompactor.js';
|
|
8
8
|
export interface ConversationHistoryPhaseInput {
|
|
9
9
|
conversationContext: ConversationContext | undefined;
|
|
10
10
|
gmiInput: GMITurnInput;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* @fileoverview Long-term memory retrieval phase.
|
|
3
3
|
* Checks cadence, retrieves durable memories, and updates retrieval state.
|
|
4
4
|
*/
|
|
5
|
-
import type { ConversationContext } from '../../../core/conversation/ConversationContext';
|
|
6
|
-
import type { ILongTermMemoryRetriever } from '../../../core/conversation/ILongTermMemoryRetriever';
|
|
7
|
-
import { type ResolvedLongTermMemoryPolicy } from '../../../core/conversation/LongTermMemoryPolicy';
|
|
8
|
-
import { type GMITurnInput } from '../../../cognition/substrate/IGMI';
|
|
5
|
+
import type { ConversationContext } from '../../../core/conversation/ConversationContext.js';
|
|
6
|
+
import type { ILongTermMemoryRetriever } from '../../../core/conversation/ILongTermMemoryRetriever.js';
|
|
7
|
+
import { type ResolvedLongTermMemoryPolicy } from '../../../core/conversation/LongTermMemoryPolicy.js';
|
|
8
|
+
import { type GMITurnInput } from '../../../cognition/substrate/IGMI.js';
|
|
9
9
|
export interface LongTermMemoryPhaseInput {
|
|
10
10
|
conversationContext: ConversationContext | undefined;
|
|
11
11
|
longTermMemoryRetriever: ILongTermMemoryRetriever | undefined;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* @fileoverview Prompt profile routing phase.
|
|
3
3
|
* Selects a prompt profile (concise/deep/planner/reviewer) based on conversation state.
|
|
4
4
|
*/
|
|
5
|
-
import type { ConversationContext } from '../../../core/conversation/ConversationContext';
|
|
5
|
+
import type { ConversationContext } from '../../../core/conversation/ConversationContext.js';
|
|
6
6
|
import { type PromptProfileConfig } from '../../structured/prompting/PromptProfileRouter.js';
|
|
7
|
-
import { type GMITurnInput } from '../../../cognition/substrate/IGMI';
|
|
7
|
+
import { type GMITurnInput } from '../../../cognition/substrate/IGMI.js';
|
|
8
8
|
export interface PromptProfilePhaseInput {
|
|
9
9
|
conversationContext: ConversationContext | undefined;
|
|
10
10
|
promptProfileConfig: PromptProfileConfig | null;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* @fileoverview Rolling summary compaction phase.
|
|
3
3
|
* Selects a compaction profile and runs maybeCompactConversationMessages.
|
|
4
4
|
*/
|
|
5
|
-
import type { ConversationContext } from '../../../core/conversation/ConversationContext';
|
|
6
|
-
import type { AIModelProviderManager } from '../../../core/llm/providers/AIModelProviderManager';
|
|
7
|
-
import { type RollingSummaryCompactionConfig, type RollingSummaryCompactionResult } from '../../../core/conversation/RollingSummaryCompactor';
|
|
8
|
-
import type { RollingSummaryCompactionProfilesConfig } from '../../types/OrchestratorConfig';
|
|
5
|
+
import type { ConversationContext } from '../../../core/conversation/ConversationContext.js';
|
|
6
|
+
import type { AIModelProviderManager } from '../../../core/llm/providers/AIModelProviderManager.js';
|
|
7
|
+
import { type RollingSummaryCompactionConfig, type RollingSummaryCompactionResult } from '../../../core/conversation/RollingSummaryCompactor.js';
|
|
8
|
+
import type { RollingSummaryCompactionProfilesConfig } from '../../types/OrchestratorConfig.js';
|
|
9
9
|
export interface RollingSummaryPhaseInput {
|
|
10
10
|
conversationContext: ConversationContext | undefined;
|
|
11
11
|
modeForRouting: string;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* fields the `FINAL_RESPONSE` takes from the GMI's output. The turn and the continuation build both the same way.
|
|
4
4
|
* @module backend/agentos/api/runtime/turnFinalResponse
|
|
5
5
|
*/
|
|
6
|
-
import type { ConversationContext } from '../../core/conversation/ConversationContext';
|
|
7
|
-
import type { GMIOutput } from '../../cognition/substrate/IGMI';
|
|
8
|
-
import type { AgentOSFinalResponseChunk } from '../types/AgentOSResponse';
|
|
6
|
+
import type { ConversationContext } from '../../core/conversation/ConversationContext.js';
|
|
7
|
+
import type { GMIOutput } from '../../cognition/substrate/IGMI.js';
|
|
8
|
+
import type { AgentOSFinalResponseChunk } from '../types/AgentOSResponse.js';
|
|
9
9
|
/**
|
|
10
10
|
* The plain text of a Markdown reply, for voice output and logs: fenced and inline code keep their text, links and
|
|
11
11
|
* images keep their label, and heading and quote markers, emphasis, rules and HTML tags are removed.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Server as HTTPServer } from 'http';
|
|
2
2
|
import { AgentOS } from '../AgentOS.js';
|
|
3
3
|
import type { AgentOSConfig } from '../AgentOS.js';
|
|
4
|
-
import { AgentOSServerConfig } from './config/ServerConfig';
|
|
4
|
+
import { AgentOSServerConfig } from './config/ServerConfig.js';
|
|
5
5
|
export declare class AgentOSServer {
|
|
6
6
|
private agentOS;
|
|
7
7
|
private readonly server;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
* console.log(result.data); // { name: 'John Doe', age: 30, email: 'john@example.com' }
|
|
46
46
|
* ```
|
|
47
47
|
*/
|
|
48
|
-
import type { ILogger } from '../../../core/logging/ILogger';
|
|
48
|
+
import type { ILogger } from '../../../core/logging/ILogger.js';
|
|
49
49
|
/**
|
|
50
50
|
* JSON Schema type definitions for structured output validation.
|
|
51
51
|
* Follows JSON Schema Draft 2020-12 specification.
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* @module AgentOS/Structured
|
|
10
10
|
* @version 1.0.0
|
|
11
11
|
*/
|
|
12
|
-
import type { ILogger } from '../../../core/logging/ILogger';
|
|
13
|
-
import type { AIModelProviderManager } from '../../../core/llm/providers/AIModelProviderManager';
|
|
14
|
-
import { IStructuredOutputManager, JSONSchema, StructuredGenerationOptions, StructuredGenerationResult, ParallelFunctionCallOptions, ParallelFunctionCallResult, EntityExtractionOptions, EntityExtractionResult, ValidationIssue, StructuredOutputStats, StructuredOutputStrategy } from './IStructuredOutputManager';
|
|
12
|
+
import type { ILogger } from '../../../core/logging/ILogger.js';
|
|
13
|
+
import type { AIModelProviderManager } from '../../../core/llm/providers/AIModelProviderManager.js';
|
|
14
|
+
import { IStructuredOutputManager, JSONSchema, StructuredGenerationOptions, StructuredGenerationResult, ParallelFunctionCallOptions, ParallelFunctionCallResult, EntityExtractionOptions, EntityExtractionResult, ValidationIssue, StructuredOutputStats, StructuredOutputStrategy } from './IStructuredOutputManager.js';
|
|
15
15
|
/**
|
|
16
16
|
* Configuration options for the Structured Output Manager.
|
|
17
17
|
*/
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* });
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
|
-
export type { IStructuredOutputManager, JSONSchema, JSONSchemaType, JSONSchemaStringFormat, StructuredOutputStrategy, StructuredGenerationOptions, StructuredGenerationResult, ParallelFunctionCallOptions, ParallelFunctionCallResult, FunctionDefinition, FunctionCallResult, EntityExtractionOptions, EntityExtractionResult, ValidationIssue, StructuredOutputStats, } from './IStructuredOutputManager';
|
|
31
|
-
export { StructuredOutputError } from './IStructuredOutputManager';
|
|
32
|
-
export { StructuredOutputManager, type StructuredOutputManagerConfig, } from './StructuredOutputManager';
|
|
30
|
+
export type { IStructuredOutputManager, JSONSchema, JSONSchemaType, JSONSchemaStringFormat, StructuredOutputStrategy, StructuredGenerationOptions, StructuredGenerationResult, ParallelFunctionCallOptions, ParallelFunctionCallResult, FunctionDefinition, FunctionCallResult, EntityExtractionOptions, EntityExtractionResult, ValidationIssue, StructuredOutputStats, } from './IStructuredOutputManager.js';
|
|
31
|
+
export { StructuredOutputError } from './IStructuredOutputManager.js';
|
|
32
|
+
export { StructuredOutputManager, type StructuredOutputManagerConfig, } from './StructuredOutputManager.js';
|
|
33
33
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* @module backend/agentos/api/types/AgentOSInput
|
|
9
9
|
* @see ../../cognitive_substrate/IGMI.ts For VisionInputData and AudioInputData definitions.
|
|
10
10
|
*/
|
|
11
|
-
import { VisionInputData, AudioInputData, type UserContext } from '../../cognition/substrate/IGMI';
|
|
12
|
-
import type { AgentOSMemoryControl } from '../../core/conversation/LongTermMemoryPolicy';
|
|
11
|
+
import { VisionInputData, AudioInputData, type UserContext } from '../../cognition/substrate/IGMI.js';
|
|
12
|
+
import type { AgentOSMemoryControl } from '../../core/conversation/LongTermMemoryPolicy.js';
|
|
13
13
|
/**
|
|
14
14
|
* Defines the structure for user-provided feedback on a GMI's performance or a specific message.
|
|
15
15
|
* This feedback is crucial for the GMI's adaptive learning capabilities and for system analytics.
|
|
@@ -145,6 +145,6 @@ export interface ProcessingOptions {
|
|
|
145
145
|
* match asked for again inside the turn, and the final chunk carries the parsed value (`structured`). See
|
|
146
146
|
* `src/api/runtime/structuredReply.ts`.
|
|
147
147
|
*/
|
|
148
|
-
structuredReply?: import('../runtime/structuredReply').StructuredReplySpec;
|
|
148
|
+
structuredReply?: import('../runtime/structuredReply.js').StructuredReplySpec;
|
|
149
149
|
}
|
|
150
150
|
//# sourceMappingURL=AgentOSInput.d.ts.map
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { ToolCallRequest, // Ensure this is what IGMI.ts exports, as suggested by your comment
|
|
8
8
|
AudioOutputConfig, ImageOutputConfig, UICommand, ReasoningTraceEntry as ReasoningTrace, // Assuming ReasoningTrace in IGMI is ReasoningTraceEntry[]
|
|
9
|
-
CostAggregator } from '../../cognition/substrate/IGMI';
|
|
10
|
-
import { ConversationContext } from '../../core/conversation/ConversationContext';
|
|
11
|
-
import { IPersonaDefinition } from '../../cognition/substrate/personas/IPersonaDefinition';
|
|
12
|
-
import type { WorkflowProgressUpdate } from '../../orchestration/workflows/WorkflowTypes';
|
|
9
|
+
CostAggregator } from '../../cognition/substrate/IGMI.js';
|
|
10
|
+
import { ConversationContext } from '../../core/conversation/ConversationContext.js';
|
|
11
|
+
import { IPersonaDefinition } from '../../cognition/substrate/personas/IPersonaDefinition.js';
|
|
12
|
+
import type { WorkflowProgressUpdate } from '../../orchestration/workflows/WorkflowTypes.js';
|
|
13
13
|
/**
|
|
14
14
|
* @enum {string} AgentOSResponseChunkType
|
|
15
15
|
* Defines the distinct types of chunks that can be streamed from the AgentOS.
|
|
@@ -132,9 +132,9 @@ export interface AgentOSFinalResponseChunk extends AgentOSResponseChunk {
|
|
|
132
132
|
* Used by grounding guardrails to verify response faithfulness.
|
|
133
133
|
* Undefined when no RAG retrieval was performed.
|
|
134
134
|
*/
|
|
135
|
-
ragSources?: import('../../cognition/rag').RagRetrievedChunk[];
|
|
135
|
+
ragSources?: import('../../cognition/rag/index.js').RagRetrievedChunk[];
|
|
136
136
|
/** On a structured turn (`ProcessingOptions.structuredReply`): the parsed value and how it was checked. */
|
|
137
|
-
structured?: import('../runtime/structuredReply').StructuredReplyOutput;
|
|
137
|
+
structured?: import('../runtime/structuredReply.js').StructuredReplyOutput;
|
|
138
138
|
}
|
|
139
139
|
/**
|
|
140
140
|
* @typedef {Object} AgentOSErrorChunk
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
* @fileoverview Configuration types for the AgentOSOrchestrator.
|
|
3
3
|
* Extracted from AgentOSOrchestrator.ts for readability.
|
|
4
4
|
*/
|
|
5
|
-
import type { RollingSummaryCompactionConfig } from '../../core/conversation/RollingSummaryCompactor';
|
|
6
|
-
import type { PromptProfileConfig } from '../structured/prompting/PromptProfileRouter';
|
|
7
|
-
import type { GMIManager } from '../../cognition/substrate/GMIManager';
|
|
8
|
-
import type { IToolOrchestrator } from '../../core/tools/IToolOrchestrator';
|
|
9
|
-
import type { ConversationManager } from '../../core/conversation/ConversationManager';
|
|
10
|
-
import type { StreamingManager } from '../../core/streaming/StreamingManager';
|
|
11
|
-
import type { AIModelProviderManager } from '../../core/llm/providers/AIModelProviderManager';
|
|
12
|
-
import type { ITurnPlanner } from '../../orchestration/turn-planner/TurnPlanner';
|
|
13
|
-
import type { IRollingSummaryMemorySink } from '../../core/conversation/IRollingSummaryMemorySink';
|
|
14
|
-
import type { ILongTermMemoryRetriever } from '../../core/conversation/ILongTermMemoryRetriever';
|
|
15
|
-
import type { ISpendMeter } from '../../safety/runtime/SpendMeter';
|
|
5
|
+
import type { RollingSummaryCompactionConfig } from '../../core/conversation/RollingSummaryCompactor.js';
|
|
6
|
+
import type { PromptProfileConfig } from '../structured/prompting/PromptProfileRouter.js';
|
|
7
|
+
import type { GMIManager } from '../../cognition/substrate/GMIManager.js';
|
|
8
|
+
import type { IToolOrchestrator } from '../../core/tools/IToolOrchestrator.js';
|
|
9
|
+
import type { ConversationManager } from '../../core/conversation/ConversationManager.js';
|
|
10
|
+
import type { StreamingManager } from '../../core/streaming/StreamingManager.js';
|
|
11
|
+
import type { AIModelProviderManager } from '../../core/llm/providers/AIModelProviderManager.js';
|
|
12
|
+
import type { ITurnPlanner } from '../../orchestration/turn-planner/TurnPlanner.js';
|
|
13
|
+
import type { IRollingSummaryMemorySink } from '../../core/conversation/IRollingSummaryMemorySink.js';
|
|
14
|
+
import type { ILongTermMemoryRetriever } from '../../core/conversation/ILongTermMemoryRetriever.js';
|
|
15
|
+
import type { ISpendMeter } from '../../safety/runtime/SpendMeter.js';
|
|
16
16
|
export interface RollingSummaryCompactionProfileDefinition {
|
|
17
17
|
config: RollingSummaryCompactionConfig;
|
|
18
18
|
systemPrompt?: string;
|
package/dist/api/types.d.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module AgentOS/Marketplace
|
|
7
7
|
* @version 1.0.0
|
|
8
8
|
*/
|
|
9
|
-
import type { IMarketplace, MarketplaceItem, MarketplaceItemType, MarketplaceSearchOptions, MarketplaceSearchResult, InstalledItem, InstallationResult, InstallationStatus, Review, MarketplaceStats } from './IMarketplace';
|
|
10
|
-
import type { ILogger } from '../../../core/logging/ILogger';
|
|
9
|
+
import type { IMarketplace, MarketplaceItem, MarketplaceItemType, MarketplaceSearchOptions, MarketplaceSearchResult, InstalledItem, InstallationResult, InstallationStatus, Review, MarketplaceStats } from './IMarketplace.js';
|
|
10
|
+
import type { ILogger } from '../../../core/logging/ILogger.js';
|
|
11
11
|
/**
|
|
12
12
|
* Configuration for Marketplace
|
|
13
13
|
*/
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
* @see ../cognitive_substrate/IGMI.ts for GMI interaction types.
|
|
10
10
|
* @see ../core/vector-store/IVectorStoreManager.ts for interaction with storage.
|
|
11
11
|
*/
|
|
12
|
-
import { MemoryLifecycleManagerConfig } from '../../../../core/config/MemoryLifecycleManagerConfiguration';
|
|
13
|
-
import { IGMI, LifecycleAction } from '../../../substrate/IGMI';
|
|
14
|
-
import { IVectorStoreManager } from '../../../../core/vector-store/IVectorStoreManager';
|
|
15
|
-
import { IUtilityAI } from '../../../nlp/ai_utilities/IUtilityAI';
|
|
16
|
-
import { RagMemoryCategory } from '../../../rag/IRetrievalAugmentor';
|
|
12
|
+
import { MemoryLifecycleManagerConfig } from '../../../../core/config/MemoryLifecycleManagerConfiguration.js';
|
|
13
|
+
import { IGMI, LifecycleAction } from '../../../substrate/IGMI.js';
|
|
14
|
+
import { IVectorStoreManager } from '../../../../core/vector-store/IVectorStoreManager.js';
|
|
15
|
+
import { IUtilityAI } from '../../../nlp/ai_utilities/IUtilityAI.js';
|
|
16
|
+
import { RagMemoryCategory } from '../../../rag/IRetrievalAugmentor.js';
|
|
17
17
|
/**
|
|
18
18
|
* Function signature for resolving a GMI instance by its ID.
|
|
19
19
|
* The MemoryLifecycleManager uses this to fetch a GMI instance for negotiation.
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
* @see ../nlp/ai_utilities/IUtilityAI.ts for summarization.
|
|
12
12
|
* @see ../core/vector-store/IVectorStore.ts and ../rag/IVectorStoreManager.ts
|
|
13
13
|
*/
|
|
14
|
-
import { IMemoryLifecycleManager, GMIResolverFunction, PolicyEnforcementFilter, LifecycleEnforcementReport } from './IMemoryLifecycleManager';
|
|
15
|
-
import { MemoryLifecycleManagerConfig } from '../../../../core/config/MemoryLifecycleManagerConfiguration';
|
|
16
|
-
import { IVectorStoreManager } from '../../../../core/vector-store/IVectorStoreManager';
|
|
17
|
-
import { IUtilityAI } from '../../../nlp/ai_utilities/IUtilityAI';
|
|
18
|
-
import { RagMemoryCategory } from '../../../rag/IRetrievalAugmentor';
|
|
19
|
-
import { LifecycleAction } from '../../../substrate/IGMI';
|
|
14
|
+
import { IMemoryLifecycleManager, GMIResolverFunction, PolicyEnforcementFilter, LifecycleEnforcementReport } from './IMemoryLifecycleManager.js';
|
|
15
|
+
import { MemoryLifecycleManagerConfig } from '../../../../core/config/MemoryLifecycleManagerConfiguration.js';
|
|
16
|
+
import { IVectorStoreManager } from '../../../../core/vector-store/IVectorStoreManager.js';
|
|
17
|
+
import { IUtilityAI } from '../../../nlp/ai_utilities/IUtilityAI.js';
|
|
18
|
+
import { RagMemoryCategory } from '../../../rag/IRetrievalAugmentor.js';
|
|
19
|
+
import { LifecycleAction } from '../../../substrate/IGMI.js';
|
|
20
20
|
/**
|
|
21
21
|
* @class MemoryLifecycleManager
|
|
22
22
|
* @implements {IMemoryLifecycleManager}
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* @module AgentOS/Knowledge
|
|
7
7
|
* @version 1.0.0
|
|
8
8
|
*/
|
|
9
|
-
import type { IKnowledgeGraph, KnowledgeEntity, KnowledgeRelation, EpisodicMemory, EntityId, RelationId, EntityType, RelationType, KnowledgeQueryOptions, TraversalOptions, TraversalResult, SemanticSearchOptions, SemanticSearchResult, KnowledgeGraphStats } from './IKnowledgeGraph';
|
|
10
|
-
import type { ILogger } from '../../../../../core/logging/ILogger';
|
|
11
|
-
import type { IEmbeddingManager } from '../../../../../core/embeddings/IEmbeddingManager';
|
|
9
|
+
import type { IKnowledgeGraph, KnowledgeEntity, KnowledgeRelation, EpisodicMemory, EntityId, RelationId, EntityType, RelationType, KnowledgeQueryOptions, TraversalOptions, TraversalResult, SemanticSearchOptions, SemanticSearchResult, KnowledgeGraphStats } from './IKnowledgeGraph.js';
|
|
10
|
+
import type { ILogger } from '../../../../../core/logging/ILogger.js';
|
|
11
|
+
import type { IEmbeddingManager } from '../../../../../core/embeddings/IEmbeddingManager.js';
|
|
12
12
|
/**
|
|
13
13
|
* Configuration for KnowledgeGraph
|
|
14
14
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview Interface for a single stage in the text processing pipeline.
|
|
3
3
|
* @module agentos/nlp/ITextProcessor
|
|
4
4
|
*/
|
|
5
|
-
import type { Token } from './types';
|
|
5
|
+
import type { Token } from './types.js';
|
|
6
6
|
/**
|
|
7
7
|
* A single processing stage in a {@link TextProcessingPipeline}.
|
|
8
8
|
* Each processor receives tokens from the previous stage and returns
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module agentos/nlp/TextProcessingPipeline
|
|
6
6
|
*/
|
|
7
|
-
import type { Token } from './types';
|
|
8
|
-
import type { ITextProcessor, ITokenizer } from './ITextProcessor';
|
|
7
|
+
import type { Token } from './types.js';
|
|
8
|
+
import type { ITextProcessor, ITokenizer } from './ITextProcessor.js';
|
|
9
9
|
/**
|
|
10
10
|
* Orchestrates a chain of text processors: tokenizer → processors → output.
|
|
11
11
|
*
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* A hybrid that holds one class sends every call to it. An error from the class
|
|
10
10
|
* a call went to reaches the caller; the call is not retried on the other.
|
|
11
11
|
*/
|
|
12
|
-
import type { IUtilityAI, UtilityAIConfigBase, ParseJsonOptions, SummarizationOptions, ClassificationOptions, ClassificationResult, KeywordExtractionOptions, TokenizationOptions, StemmingOptions, SimilarityOptions, SentimentAnalysisOptions, SentimentResult, LanguageDetectionOptions, LanguageDetectionResult, TextNormalizationOptions, NGramOptions, ReadabilityOptions, ReadabilityResult } from './IUtilityAI';
|
|
12
|
+
import type { IUtilityAI, UtilityAIConfigBase, ParseJsonOptions, SummarizationOptions, ClassificationOptions, ClassificationResult, KeywordExtractionOptions, TokenizationOptions, StemmingOptions, SimilarityOptions, SentimentAnalysisOptions, SentimentResult, LanguageDetectionOptions, LanguageDetectionResult, TextNormalizationOptions, NGramOptions, ReadabilityOptions, ReadabilityResult } from './IUtilityAI.js';
|
|
13
13
|
export interface HybridUtilityAIConfig extends UtilityAIConfigBase {
|
|
14
14
|
/** LLM-based implementation (used for generative tasks). */
|
|
15
15
|
llm?: IUtilityAI;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* (e.g., LLM-based, statistical NLP libraries, or other machine learning models).
|
|
8
8
|
* @module backend/agentos/nlp/ai_utilities/IUtilityAI
|
|
9
9
|
*/
|
|
10
|
-
import { JSONSchemaObject } from '../../../core/tools/ITool';
|
|
10
|
+
import { JSONSchemaObject } from '../../../core/tools/ITool.js';
|
|
11
11
|
/**
|
|
12
12
|
* Base configuration for any IUtilityAI implementation.
|
|
13
13
|
*/
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
* @see ./IUtilityAI.ts
|
|
8
8
|
* @see ../../core/llm/providers/AIModelProviderManager.ts
|
|
9
9
|
*/
|
|
10
|
-
import { IUtilityAI, UtilityAIConfigBase, ParseJsonOptions, SummarizationOptions, ClassificationOptions, ClassificationResult, KeywordExtractionOptions, TokenizationOptions, StemmingOptions, SimilarityOptions, SentimentAnalysisOptions, SentimentResult, LanguageDetectionOptions, LanguageDetectionResult, TextNormalizationOptions, NGramOptions, ReadabilityOptions, ReadabilityResult } from './IUtilityAI';
|
|
11
|
-
import { AIModelProviderManager } from '../../../core/llm/providers/AIModelProviderManager';
|
|
12
|
-
import { IPromptEngineUtilityAI, ModelTargetInfo } from '../../../core/llm/IPromptEngine';
|
|
13
|
-
import { ConversationMessage as Message } from '../../../core/conversation/ConversationMessage';
|
|
10
|
+
import { IUtilityAI, UtilityAIConfigBase, ParseJsonOptions, SummarizationOptions, ClassificationOptions, ClassificationResult, KeywordExtractionOptions, TokenizationOptions, StemmingOptions, SimilarityOptions, SentimentAnalysisOptions, SentimentResult, LanguageDetectionOptions, LanguageDetectionResult, TextNormalizationOptions, NGramOptions, ReadabilityOptions, ReadabilityResult } from './IUtilityAI.js';
|
|
11
|
+
import { AIModelProviderManager } from '../../../core/llm/providers/AIModelProviderManager.js';
|
|
12
|
+
import { IPromptEngineUtilityAI, ModelTargetInfo } from '../../../core/llm/IPromptEngine.js';
|
|
13
|
+
import { ConversationMessage as Message } from '../../../core/conversation/ConversationMessage.js';
|
|
14
14
|
export interface LLMUtilityAIConfig extends UtilityAIConfigBase {
|
|
15
15
|
llmProviderManager: AIModelProviderManager;
|
|
16
16
|
defaultModelId?: string;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @see ./IUtilityAI.ts
|
|
9
9
|
* @see 'natural' library documentation
|
|
10
10
|
*/
|
|
11
|
-
import { IUtilityAI, UtilityAIConfigBase, ParseJsonOptions, SummarizationOptions, ClassificationOptions, ClassificationResult, KeywordExtractionOptions, TokenizationOptions, StemmingOptions, SimilarityOptions, SentimentAnalysisOptions, SentimentResult, LanguageDetectionOptions, LanguageDetectionResult, TextNormalizationOptions, NGramOptions, ReadabilityOptions, ReadabilityResult } from './IUtilityAI';
|
|
11
|
+
import { IUtilityAI, UtilityAIConfigBase, ParseJsonOptions, SummarizationOptions, ClassificationOptions, ClassificationResult, KeywordExtractionOptions, TokenizationOptions, StemmingOptions, SimilarityOptions, SentimentAnalysisOptions, SentimentResult, LanguageDetectionOptions, LanguageDetectionResult, TextNormalizationOptions, NGramOptions, ReadabilityOptions, ReadabilityResult } from './IUtilityAI.js';
|
|
12
12
|
/** A sentiment lexicon `natural` ships. AFINN scores a word from -5 to 5; pattern and senticon from -1 to 1. */
|
|
13
13
|
export type SentimentLexiconName = 'afinn' | 'afinnFinancialMarketNews' | 'pattern' | 'senticon';
|
|
14
14
|
export interface StatisticalUtilityAIConfig extends UtilityAIConfigBase {
|