@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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview The checks `parseJsonSafe()` makes against a `targetSchema`, one set for StatisticalUtilityAI and
|
|
3
3
|
* LLMUtilityAI, so the two classes read a schema alike.
|
|
4
4
|
*/
|
|
5
|
-
import { SchemaChecks } from '../../../core/utils/schemaChecks';
|
|
5
|
+
import { SchemaChecks } from '../../../core/utils/schemaChecks.js';
|
|
6
6
|
/**
|
|
7
7
|
* The compiled `targetSchema` checks of both utility classes.
|
|
8
8
|
*
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* @fileoverview Removes tokens that match a configurable stop word list.
|
|
3
3
|
* @module agentos/nlp/filters/StopWordFilter
|
|
4
4
|
*/
|
|
5
|
-
import type { Token } from '../types';
|
|
6
|
-
import type { ITextProcessor } from '../ITextProcessor';
|
|
7
|
-
export { CODE_STOP_WORDS, ENGLISH_STOP_WORDS } from './stopWordLists';
|
|
5
|
+
import type { Token } from '../types.js';
|
|
6
|
+
import type { ITextProcessor } from '../ITextProcessor.js';
|
|
7
|
+
export { CODE_STOP_WORDS, ENGLISH_STOP_WORDS } from './stopWordLists.js';
|
|
8
8
|
export declare function getNaturalStopWords(): ReadonlySet<string>;
|
|
9
9
|
/**
|
|
10
10
|
* Filters tokens whose `.text` appears in the provided stop word set.
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module agentos/nlp
|
|
6
6
|
*/
|
|
7
|
-
export { TextProcessingPipeline } from './TextProcessingPipeline';
|
|
8
|
-
export type { ITextProcessor, ITokenizer } from './ITextProcessor';
|
|
9
|
-
export type { Token } from './types';
|
|
10
|
-
export { StandardTokenizer } from './tokenizers/StandardTokenizer';
|
|
11
|
-
export { CodeTokenizer } from './tokenizers/CodeTokenizer';
|
|
12
|
-
export { LowercaseNormalizer } from './normalizers/LowercaseNormalizer';
|
|
13
|
-
export { AccentStripper } from './normalizers/AccentStripper';
|
|
14
|
-
export { StopWordFilter, ENGLISH_STOP_WORDS, CODE_STOP_WORDS, getNaturalStopWords } from './filters/StopWordFilter';
|
|
15
|
-
export { PorterStemmer } from './stemmers/PorterStemmer';
|
|
16
|
-
export { NoOpStemmer } from './stemmers/NoOpStemmer';
|
|
17
|
-
export { WordNetLemmatizer } from './lemmatizers/WordNetLemmatizer';
|
|
18
|
-
export { NoOpLemmatizer } from './lemmatizers/NoOpLemmatizer';
|
|
19
|
-
export { createProsePipeline, createCodePipeline, createRagPipeline } from './presets';
|
|
7
|
+
export { TextProcessingPipeline } from './TextProcessingPipeline.js';
|
|
8
|
+
export type { ITextProcessor, ITokenizer } from './ITextProcessor.js';
|
|
9
|
+
export type { Token } from './types.js';
|
|
10
|
+
export { StandardTokenizer } from './tokenizers/StandardTokenizer.js';
|
|
11
|
+
export { CodeTokenizer } from './tokenizers/CodeTokenizer.js';
|
|
12
|
+
export { LowercaseNormalizer } from './normalizers/LowercaseNormalizer.js';
|
|
13
|
+
export { AccentStripper } from './normalizers/AccentStripper.js';
|
|
14
|
+
export { StopWordFilter, ENGLISH_STOP_WORDS, CODE_STOP_WORDS, getNaturalStopWords } from './filters/StopWordFilter.js';
|
|
15
|
+
export { PorterStemmer } from './stemmers/PorterStemmer.js';
|
|
16
|
+
export { NoOpStemmer } from './stemmers/NoOpStemmer.js';
|
|
17
|
+
export { WordNetLemmatizer } from './lemmatizers/WordNetLemmatizer.js';
|
|
18
|
+
export { NoOpLemmatizer } from './lemmatizers/NoOpLemmatizer.js';
|
|
19
|
+
export { createProsePipeline, createCodePipeline, createRagPipeline } from './presets.js';
|
|
20
20
|
export * from './ai_utilities/index.js';
|
|
21
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @file LanguageService.ts
|
|
3
3
|
* @description Lightweight reference implementation of a multilingual orchestration service.
|
|
4
4
|
*/
|
|
5
|
-
import { ILanguageService, DetectedLanguageResult, LanguageNegotiationParams, LanguageNegotiationResult, TranslationResult } from './interfaces';
|
|
5
|
+
import { ILanguageService, DetectedLanguageResult, LanguageNegotiationParams, LanguageNegotiationResult, TranslationResult } from './interfaces.js';
|
|
6
6
|
export interface AgentOSLanguageConfig {
|
|
7
7
|
defaultLanguage: string;
|
|
8
8
|
supportedLanguages: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './interfaces';
|
|
2
|
-
export * from './LanguageService';
|
|
3
|
-
export * from './providers/OpenAITranslationProvider';
|
|
4
|
-
export * from './providers/DeepLTranslationProvider';
|
|
5
|
-
export * from './providers/WhisperDetectionProvider';
|
|
1
|
+
export * from './interfaces.js';
|
|
2
|
+
export * from './LanguageService.js';
|
|
3
|
+
export * from './providers/OpenAITranslationProvider.js';
|
|
4
|
+
export * from './providers/DeepLTranslationProvider.js';
|
|
5
|
+
export * from './providers/WhisperDetectionProvider.js';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @fileoverview Pass-through lemmatizer that does nothing.
|
|
3
3
|
* @module agentos/nlp/lemmatizers/NoOpLemmatizer
|
|
4
4
|
*/
|
|
5
|
-
import type { Token } from '../types';
|
|
6
|
-
import type { ITextProcessor } from '../ITextProcessor';
|
|
5
|
+
import type { Token } from '../types.js';
|
|
6
|
+
import type { ITextProcessor } from '../ITextProcessor.js';
|
|
7
7
|
export declare class NoOpLemmatizer implements ITextProcessor {
|
|
8
8
|
readonly name = "NoOpLemmatizer";
|
|
9
9
|
process(tokens: Token[]): Token[];
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module agentos/nlp/lemmatizers/WordNetLemmatizer
|
|
9
9
|
*/
|
|
10
|
-
import type { Token } from '../types';
|
|
11
|
-
import type { ITextProcessor } from '../ITextProcessor';
|
|
10
|
+
import type { Token } from '../types.js';
|
|
11
|
+
import type { ITextProcessor } from '../ITextProcessor.js';
|
|
12
12
|
/**
|
|
13
13
|
* Sets `token.lemma`, and `token.text`, to the Lancaster stem of the token's text. Despite its name it does not look
|
|
14
14
|
* words up in WordNet, so it gives no dictionary forms; see the module comment.
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module agentos/nlp/normalizers/AccentStripper
|
|
6
6
|
*/
|
|
7
|
-
import type { Token } from '../types';
|
|
8
|
-
import type { ITextProcessor } from '../ITextProcessor';
|
|
7
|
+
import type { Token } from '../types.js';
|
|
8
|
+
import type { ITextProcessor } from '../ITextProcessor.js';
|
|
9
9
|
/**
|
|
10
10
|
* Removes combining diacritical marks after Unicode NFD decomposition.
|
|
11
11
|
* This makes accent-insensitive search possible.
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @fileoverview Lowercases all token text. Preserves original.
|
|
3
3
|
* @module agentos/nlp/normalizers/LowercaseNormalizer
|
|
4
4
|
*/
|
|
5
|
-
import type { Token } from '../types';
|
|
6
|
-
import type { ITextProcessor } from '../ITextProcessor';
|
|
5
|
+
import type { Token } from '../types.js';
|
|
6
|
+
import type { ITextProcessor } from '../ITextProcessor.js';
|
|
7
7
|
export declare class LowercaseNormalizer implements ITextProcessor {
|
|
8
8
|
readonly name = "LowercaseNormalizer";
|
|
9
9
|
process(tokens: Token[]): Token[];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview Pre-built pipeline configurations for common use cases.
|
|
3
3
|
* @module agentos/nlp/presets
|
|
4
4
|
*/
|
|
5
|
-
import { TextProcessingPipeline } from './TextProcessingPipeline';
|
|
5
|
+
import { TextProcessingPipeline } from './TextProcessingPipeline.js';
|
|
6
6
|
/**
|
|
7
7
|
* Pipeline for English prose text.
|
|
8
8
|
* Standard tokenizer → lowercase → strip accents → remove stop words → Porter stem.
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @module agentos/nlp/stemmers/NoOpStemmer
|
|
7
7
|
*/
|
|
8
|
-
import type { Token } from '../types';
|
|
9
|
-
import type { ITextProcessor } from '../ITextProcessor';
|
|
8
|
+
import type { Token } from '../types.js';
|
|
9
|
+
import type { ITextProcessor } from '../ITextProcessor.js';
|
|
10
10
|
export declare class NoOpStemmer implements ITextProcessor {
|
|
11
11
|
readonly name = "NoOpStemmer";
|
|
12
12
|
process(tokens: Token[]): Token[];
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module agentos/nlp/stemmers/PorterStemmer
|
|
6
6
|
*/
|
|
7
|
-
import type { Token } from '../types';
|
|
8
|
-
import type { ITextProcessor } from '../ITextProcessor';
|
|
7
|
+
import type { Token } from '../types.js';
|
|
8
|
+
import type { ITextProcessor } from '../ITextProcessor.js';
|
|
9
9
|
/**
|
|
10
10
|
* Porter stemmer — reduces words to their morphological root.
|
|
11
11
|
* `running` → `run`, `foxes` → `fox`, `connected` → `connect`.
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module agentos/nlp/tokenizers/CodeTokenizer
|
|
6
6
|
*/
|
|
7
|
-
import type { Token } from '../types';
|
|
8
|
-
import type { ITokenizer } from '../ITextProcessor';
|
|
7
|
+
import type { Token } from '../types.js';
|
|
8
|
+
import type { ITokenizer } from '../ITextProcessor.js';
|
|
9
9
|
/**
|
|
10
10
|
* Code-aware tokenizer.
|
|
11
11
|
*
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @module agentos/nlp/tokenizers/StandardTokenizer
|
|
7
7
|
*/
|
|
8
|
-
import type { Token } from '../types';
|
|
9
|
-
import type { ITokenizer } from '../ITextProcessor';
|
|
8
|
+
import type { Token } from '../types.js';
|
|
9
|
+
import type { ITokenizer } from '../ITextProcessor.js';
|
|
10
10
|
/**
|
|
11
11
|
* Standard tokenizer that splits text on Unicode word boundaries.
|
|
12
12
|
* Handles punctuation, whitespace, hyphens, and special characters.
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
* @see ../core/llm/providers/AIModelProviderManager.ts for provider management.
|
|
16
16
|
* @see ../core/llm/providers/IProvider.ts for the provider contract.
|
|
17
17
|
*/
|
|
18
|
-
import { IEmbeddingManager, EmbeddingRequest, EmbeddingResponse } from './IEmbeddingManager';
|
|
19
|
-
import { EmbeddingManagerConfig, EmbeddingModelConfig } from '../../core/config/EmbeddingManagerConfiguration';
|
|
20
|
-
import { AIModelProviderManager } from '../../core/llm/providers/AIModelProviderManager';
|
|
18
|
+
import { IEmbeddingManager, EmbeddingRequest, EmbeddingResponse } from './IEmbeddingManager.js';
|
|
19
|
+
import { EmbeddingManagerConfig, EmbeddingModelConfig } from '../../core/config/EmbeddingManagerConfiguration.js';
|
|
20
|
+
import { AIModelProviderManager } from '../../core/llm/providers/AIModelProviderManager.js';
|
|
21
21
|
/**
|
|
22
22
|
* Implements the `IEmbeddingManager` interface to provide robust embedding generation services.
|
|
23
23
|
*
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @module backend/agentos/rag/IRetrievalAugmentor
|
|
8
8
|
*/
|
|
9
|
-
import { IEmbeddingManager } from './IEmbeddingManager';
|
|
10
|
-
import { MetadataFilter, MetadataValue } from './IVectorStore';
|
|
11
|
-
import { IVectorStoreManager } from './IVectorStoreManager';
|
|
12
|
-
import { RetrievalAugmentorServiceConfig } from '../../core/config/RetrievalAugmentorConfiguration';
|
|
13
|
-
import type { RAGAuditTrail } from './audit/RAGAuditTypes';
|
|
9
|
+
import { IEmbeddingManager } from './IEmbeddingManager.js';
|
|
10
|
+
import { MetadataFilter, MetadataValue } from './IVectorStore.js';
|
|
11
|
+
import { IVectorStoreManager } from './IVectorStoreManager.js';
|
|
12
|
+
import { RetrievalAugmentorServiceConfig } from '../../core/config/RetrievalAugmentorConfiguration.js';
|
|
13
|
+
import type { RAGAuditTrail } from './audit/RAGAuditTypes.js';
|
|
14
14
|
import type { RetrievalConfidenceSummary } from './unified/confidence.js';
|
|
15
15
|
import type { MemoryRetrievalPolicy, MemoryRetrievalProfile } from './unified/policy.js';
|
|
16
16
|
/**
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
* @see ./IEmbeddingManager.ts
|
|
19
19
|
* @see ./IVectorStoreManager.ts
|
|
20
20
|
*/
|
|
21
|
-
import { IRetrievalAugmentor, RagDocumentInput, RagIngestionOptions, RagIngestionResult, RagRetrievalOptions, RagRetrievalResult } from './IRetrievalAugmentor';
|
|
22
|
-
import { RetrievalAugmentorServiceConfig } from '../../core/config/RetrievalAugmentorConfiguration';
|
|
23
|
-
import { IEmbeddingManager } from './IEmbeddingManager';
|
|
24
|
-
import { IVectorStoreManager } from './IVectorStoreManager';
|
|
25
|
-
import { type HydeLlmCaller } from './HydeRetriever';
|
|
21
|
+
import { IRetrievalAugmentor, RagDocumentInput, RagIngestionOptions, RagIngestionResult, RagRetrievalOptions, RagRetrievalResult } from './IRetrievalAugmentor.js';
|
|
22
|
+
import { RetrievalAugmentorServiceConfig } from '../../core/config/RetrievalAugmentorConfiguration.js';
|
|
23
|
+
import { IEmbeddingManager } from './IEmbeddingManager.js';
|
|
24
|
+
import { IVectorStoreManager } from './IVectorStoreManager.js';
|
|
25
|
+
import { type HydeLlmCaller } from './HydeRetriever.js';
|
|
26
26
|
/**
|
|
27
27
|
* @class RetrievalAugmentor
|
|
28
28
|
* @implements {IRetrievalAugmentor}
|
|
@@ -89,7 +89,7 @@ export declare class RetrievalAugmentor implements IRetrievalAugmentor {
|
|
|
89
89
|
* }));
|
|
90
90
|
* ```
|
|
91
91
|
*/
|
|
92
|
-
registerRerankerProvider(provider: import('./reranking/IRerankerService').IRerankerProvider): void;
|
|
92
|
+
registerRerankerProvider(provider: import('./reranking/IRerankerService.js').IRerankerProvider): void;
|
|
93
93
|
/**
|
|
94
94
|
* Register an LLM caller for HyDE hypothesis generation.
|
|
95
95
|
*
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
* @see ../config/VectorStoreConfiguration.ts for configuration structures.
|
|
15
15
|
* @see ./vector_stores/InMemoryVectorStore.ts for an example provider.
|
|
16
16
|
*/
|
|
17
|
-
import { IVectorStoreManager, VectorStoreManagerHealthReport } from './IVectorStoreManager';
|
|
18
|
-
import { IVectorStore } from './IVectorStore';
|
|
19
|
-
import { VectorStoreManagerConfig, RagDataSourceConfig } from '../../core/config/VectorStoreConfiguration';
|
|
17
|
+
import { IVectorStoreManager, VectorStoreManagerHealthReport } from './IVectorStoreManager.js';
|
|
18
|
+
import { IVectorStore } from './IVectorStore.js';
|
|
19
|
+
import { VectorStoreManagerConfig, RagDataSourceConfig } from '../../core/config/VectorStoreConfiguration.js';
|
|
20
20
|
/**
|
|
21
21
|
* Implements the `IVectorStoreManager` interface.
|
|
22
22
|
*
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @module backend/agentos/rag/reranking/IRerankerService
|
|
7
7
|
*/
|
|
8
|
-
import type { MetadataValue } from '../IVectorStore';
|
|
8
|
+
import type { MetadataValue } from '../IVectorStore.js';
|
|
9
9
|
/**
|
|
10
10
|
* A document to be reranked along with its original retrieval score.
|
|
11
11
|
*/
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module backend/agentos/rag/reranking/RerankerService
|
|
6
6
|
*/
|
|
7
|
-
import type { ILogger } from '../../../core/logging/ILogger';
|
|
8
|
-
import type { RagRetrievedChunk } from '../IRetrievalAugmentor';
|
|
9
|
-
import type { IRerankerProvider, RerankerInput, RerankerOutput, RerankerRequestConfig, RerankerServiceConfig, RerankChainStage, RerankerProviderConfig } from './IRerankerService';
|
|
7
|
+
import type { ILogger } from '../../../core/logging/ILogger.js';
|
|
8
|
+
import type { RagRetrievedChunk } from '../IRetrievalAugmentor.js';
|
|
9
|
+
import type { IRerankerProvider, RerankerInput, RerankerOutput, RerankerRequestConfig, RerankerServiceConfig, RerankChainStage, RerankerProviderConfig } from './IRerankerService.js';
|
|
10
10
|
/**
|
|
11
11
|
* Configuration for the RerankerService constructor.
|
|
12
12
|
*/
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
* });
|
|
49
49
|
* ```
|
|
50
50
|
*/
|
|
51
|
-
export type { IRerankerProvider, RerankerInput, RerankerOutput, RerankerDocument, RerankedDocument, RerankerRequestConfig, RerankerProviderConfig, RerankerServiceConfig, RerankerDiagnostics, } from './IRerankerService';
|
|
52
|
-
export { RerankerService, type RerankerServiceOptions } from './RerankerService';
|
|
53
|
-
export { CohereReranker, type CohereRerankerConfig, COHERE_RERANKER_MODELS, type CohereRerankerModel, } from './providers/CohereReranker';
|
|
54
|
-
export { LocalCrossEncoderReranker, type LocalCrossEncoderConfig, LOCAL_RERANKER_MODELS, type LocalRerankerModel, } from './providers/LocalCrossEncoderReranker';
|
|
55
|
-
export { LlmJudgeReranker, type LlmJudgeRerankerConfig, } from './providers/LlmJudgeReranker';
|
|
56
|
-
export type { RerankChainStage } from './IRerankerService';
|
|
51
|
+
export type { IRerankerProvider, RerankerInput, RerankerOutput, RerankerDocument, RerankedDocument, RerankerRequestConfig, RerankerProviderConfig, RerankerServiceConfig, RerankerDiagnostics, } from './IRerankerService.js';
|
|
52
|
+
export { RerankerService, type RerankerServiceOptions } from './RerankerService.js';
|
|
53
|
+
export { CohereReranker, type CohereRerankerConfig, COHERE_RERANKER_MODELS, type CohereRerankerModel, } from './providers/CohereReranker.js';
|
|
54
|
+
export { LocalCrossEncoderReranker, type LocalCrossEncoderConfig, LOCAL_RERANKER_MODELS, type LocalRerankerModel, } from './providers/LocalCrossEncoderReranker.js';
|
|
55
|
+
export { LlmJudgeReranker, type LlmJudgeRerankerConfig, } from './providers/LlmJudgeReranker.js';
|
|
56
|
+
export type { RerankChainStage } from './IRerankerService.js';
|
|
57
57
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @module backend/agentos/rag/reranking/providers/CohereReranker
|
|
6
6
|
* @see https://docs.cohere.com/reference/rerank
|
|
7
7
|
*/
|
|
8
|
-
import type { IRerankerProvider, RerankerInput, RerankerOutput, RerankerRequestConfig, RerankerProviderConfig } from '../IRerankerService';
|
|
8
|
+
import type { IRerankerProvider, RerankerInput, RerankerOutput, RerankerRequestConfig, RerankerProviderConfig } from '../IRerankerService.js';
|
|
9
9
|
/**
|
|
10
10
|
* Cohere-specific provider configuration.
|
|
11
11
|
*/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module backend/agentos/rag/reranking/providers/LocalCrossEncoderReranker
|
|
6
6
|
*/
|
|
7
|
-
import type { IRerankerProvider, RerankerInput, RerankerOutput, RerankerRequestConfig, RerankerProviderConfig } from '../IRerankerService';
|
|
7
|
+
import type { IRerankerProvider, RerankerInput, RerankerOutput, RerankerRequestConfig, RerankerProviderConfig } from '../IRerankerService.js';
|
|
8
8
|
/**
|
|
9
9
|
* Local reranker configuration.
|
|
10
10
|
*/
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module @framers/agentos/cognition/rag/reranking/providers
|
|
5
5
|
*/
|
|
6
|
-
export { CohereReranker, type CohereRerankerConfig, COHERE_RERANKER_MODELS, type CohereRerankerModel } from './CohereReranker';
|
|
7
|
-
export { LocalCrossEncoderReranker, type LocalCrossEncoderConfig, LOCAL_RERANKER_MODELS, type LocalRerankerModel } from './LocalCrossEncoderReranker';
|
|
6
|
+
export { CohereReranker, type CohereRerankerConfig, COHERE_RERANKER_MODELS, type CohereRerankerModel } from './CohereReranker.js';
|
|
7
|
+
export { LocalCrossEncoderReranker, type LocalCrossEncoderConfig, LOCAL_RERANKER_MODELS, type LocalRerankerModel } from './LocalCrossEncoderReranker.js';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @module agentos/rag/vector-search/HnswIndexSidecar
|
|
10
10
|
*/
|
|
11
|
-
import type { HnswSidecarConfig, HnswSidecarStats, HnswSearchResult } from './types';
|
|
11
|
+
import type { HnswSidecarConfig, HnswSidecarStats, HnswSearchResult } from './types.js';
|
|
12
12
|
/**
|
|
13
13
|
* HNSW index sidecar — manages an hnswlib-node index file alongside
|
|
14
14
|
* a primary data store (SQLite, etc.).
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* @fileoverview Shared vector search utilities — HNSW index sidecar.
|
|
3
3
|
* @module agentos/rag/vector-search
|
|
4
4
|
*/
|
|
5
|
-
export { HnswIndexSidecar } from './HnswIndexSidecar';
|
|
6
|
-
export type { HnswSidecarConfig, HnswSidecarStats, HnswSearchResult, } from './types';
|
|
5
|
+
export { HnswIndexSidecar } from './HnswIndexSidecar.js';
|
|
6
|
+
export type { HnswSidecarConfig, HnswSidecarStats, HnswSearchResult, } from './types.js';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* @see ../../IVectorStore.ts for the interface definition.
|
|
19
19
|
* @see ../../../config/VectorStoreConfiguration.ts for `InMemoryVectorStoreConfig`.
|
|
20
20
|
*/
|
|
21
|
-
import { IVectorStore, VectorStoreProviderConfig, VectorDocument, QueryOptions, QueryResult, MetadataScanOptions, MetadataScanResult, UpsertOptions, UpsertResult, DeleteOptions, DeleteResult, CreateCollectionOptions } from '../IVectorStore';
|
|
21
|
+
import { IVectorStore, VectorStoreProviderConfig, VectorDocument, QueryOptions, QueryResult, MetadataScanOptions, MetadataScanResult, UpsertOptions, UpsertResult, DeleteOptions, DeleteResult, CreateCollectionOptions } from '../IVectorStore.js';
|
|
22
22
|
/**
|
|
23
23
|
* Implements the `IVectorStore` interface using in-memory data structures.
|
|
24
24
|
* Provides a simple, fast vector store primarily for development and testing.
|
|
@@ -77,7 +77,7 @@ export interface SqlVectorStoreConfig extends VectorStoreProviderConfig {
|
|
|
77
77
|
* lemmatization, and stop word handling.
|
|
78
78
|
* @see createRagPipeline from nlp
|
|
79
79
|
*/
|
|
80
|
-
pipeline?: import('../../nlp/TextProcessingPipeline').TextProcessingPipeline;
|
|
80
|
+
pipeline?: import('../../nlp/TextProcessingPipeline.js').TextProcessingPipeline;
|
|
81
81
|
/**
|
|
82
82
|
* Document count threshold before HNSW sidecar activates.
|
|
83
83
|
* Below this count, brute-force cosine similarity is used.
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
import type { ICognitiveMemoryManager } from '../memory/CognitiveMemoryManager.js';
|
|
14
14
|
import type { PADState } from '../memory/core/config.js';
|
|
15
15
|
import type { AssembledMemoryContext, MemoryScope, MemorySourceType, MemoryType } from '../memory/core/types.js';
|
|
16
|
-
import { GMIMood } from './IGMI';
|
|
17
|
-
import type { UserContext, GMITurnInput } from './IGMI';
|
|
16
|
+
import { GMIMood } from './IGMI.js';
|
|
17
|
+
import type { UserContext, GMITurnInput } from './IGMI.js';
|
|
18
18
|
/**
|
|
19
19
|
* Identity of the turn a memory retrieval runs for. The bridge combines it
|
|
20
20
|
* with the GMI's user and persona to decide which memory scopes a turn may
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @module cognitive_substrate/ConversationHistoryManager
|
|
11
11
|
*/
|
|
12
|
-
import { ChatMessage } from '../../core/llm/providers/IProvider';
|
|
13
|
-
import { ConversationMessage } from '../../core/conversation/ConversationMessage';
|
|
14
|
-
import { GMITurnInput, ToolCallResult } from './IGMI';
|
|
12
|
+
import { ChatMessage } from '../../core/llm/providers/IProvider.js';
|
|
13
|
+
import { ConversationMessage } from '../../core/conversation/ConversationMessage.js';
|
|
14
|
+
import { GMITurnInput, ToolCallResult } from './IGMI.js';
|
|
15
15
|
/**
|
|
16
16
|
* Encapsulates all conversation history state and operations for a GMI instance.
|
|
17
17
|
*
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
* @see ../core/tools/IToolOrchestrator.ts for tool orchestration.
|
|
12
12
|
* @see ../nlp/ai_utilities/IUtilityAI.ts for utility functions.
|
|
13
13
|
*/
|
|
14
|
-
import { IGMI, GMIBaseConfig, GMITurnInput, GMIOutputChunk, GMIPrimeState, ReasoningTrace, GMIHealthReport, MemoryLifecycleEvent, LifecycleActionResponse, ToolCallResult, ToolResultPayload, GMIOutput } from './IGMI';
|
|
15
|
-
import type { GMIToolResultOptions } from './IGMI';
|
|
16
|
-
import { IPersonaDefinition } from './personas/IPersonaDefinition';
|
|
14
|
+
import { IGMI, GMIBaseConfig, GMITurnInput, GMIOutputChunk, GMIPrimeState, ReasoningTrace, GMIHealthReport, MemoryLifecycleEvent, LifecycleActionResponse, ToolCallResult, ToolResultPayload, GMIOutput } from './IGMI.js';
|
|
15
|
+
import type { GMIToolResultOptions } from './IGMI.js';
|
|
16
|
+
import { IPersonaDefinition } from './personas/IPersonaDefinition.js';
|
|
17
17
|
import type { ILearnerSession } from '../learning/types.js';
|
|
18
|
-
import { ConversationMessage } from '../../core/conversation/ConversationMessage';
|
|
18
|
+
import { ConversationMessage } from '../../core/conversation/ConversationMessage.js';
|
|
19
19
|
import type { ICognitiveMemoryManager } from '../memory/CognitiveMemoryManager.js';
|
|
20
|
-
import { type NormalizedUserFeedback } from './userFeedback';
|
|
20
|
+
import { type NormalizedUserFeedback } from './userFeedback.js';
|
|
21
21
|
/**
|
|
22
22
|
* @class GMI
|
|
23
23
|
* @implements {IGMI}
|
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
* a crucial component in AgentOS responsible for the lifecycle management of GMIs.
|
|
4
4
|
* @module backend/agentos/cognitive_substrate/GMIManager
|
|
5
5
|
*/
|
|
6
|
-
import { IGMI, GMIBaseConfig } from './IGMI';
|
|
7
|
-
import { IPersonaDefinition } from './personas/IPersonaDefinition';
|
|
8
|
-
import { PersonaValidationStrictConfig } from './personas/PersonaValidation';
|
|
9
|
-
import { IPersonaLoader, PersonaLoaderConfig } from './personas/IPersonaLoader';
|
|
10
|
-
import type { IAuthService, ISubscriptionService } from '../../core/types/auth';
|
|
11
|
-
import { InMemoryWorkingMemory } from './memory/InMemoryWorkingMemory';
|
|
12
|
-
import { ConversationManager } from '../../core/conversation/ConversationManager';
|
|
13
|
-
import { ConversationContext } from '../../core/conversation/ConversationContext';
|
|
6
|
+
import { IGMI, GMIBaseConfig } from './IGMI.js';
|
|
7
|
+
import { IPersonaDefinition } from './personas/IPersonaDefinition.js';
|
|
8
|
+
import { PersonaValidationStrictConfig } from './personas/PersonaValidation.js';
|
|
9
|
+
import { IPersonaLoader, PersonaLoaderConfig } from './personas/IPersonaLoader.js';
|
|
10
|
+
import type { IAuthService, ISubscriptionService } from '../../core/types/auth.js';
|
|
11
|
+
import { InMemoryWorkingMemory } from './memory/InMemoryWorkingMemory.js';
|
|
12
|
+
import { ConversationManager } from '../../core/conversation/ConversationManager.js';
|
|
13
|
+
import { ConversationContext } from '../../core/conversation/ConversationContext.js';
|
|
14
14
|
import { GMIError, GMIErrorCode } from '../../core/utils/errors.js';
|
|
15
|
-
import { IPromptEngine } from '../../core/llm/IPromptEngine';
|
|
16
|
-
import { AIModelProviderManager } from '../../core/llm/providers/AIModelProviderManager';
|
|
17
|
-
import { IUtilityAI } from '../nlp/ai_utilities/IUtilityAI';
|
|
18
|
-
import { IToolOrchestrator } from '../../core/tools/IToolOrchestrator';
|
|
19
|
-
import { IRetrievalAugmentor } from '../rag/IRetrievalAugmentor';
|
|
20
|
-
import type { PersonaStateOverlay, PersonaEvolutionContext } from './persona_overlays/PersonaOverlayTypes';
|
|
21
|
-
import type { PersonaEvolutionRule } from '../../orchestration/workflows/WorkflowTypes';
|
|
15
|
+
import { IPromptEngine } from '../../core/llm/IPromptEngine.js';
|
|
16
|
+
import { AIModelProviderManager } from '../../core/llm/providers/AIModelProviderManager.js';
|
|
17
|
+
import { IUtilityAI } from '../nlp/ai_utilities/IUtilityAI.js';
|
|
18
|
+
import { IToolOrchestrator } from '../../core/tools/IToolOrchestrator.js';
|
|
19
|
+
import { IRetrievalAugmentor } from '../rag/IRetrievalAugmentor.js';
|
|
20
|
+
import type { PersonaStateOverlay, PersonaEvolutionContext } from './persona_overlays/PersonaOverlayTypes.js';
|
|
21
|
+
import type { PersonaEvolutionRule } from '../../orchestration/workflows/WorkflowTypes.js';
|
|
22
22
|
import type { ICognitiveMemoryManager } from '../memory/CognitiveMemoryManager.js';
|
|
23
23
|
import type { ILearningLayer } from '../learning/types.js';
|
|
24
24
|
/**
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
* The GMI is the central cognitive engine in AgentOS.
|
|
5
5
|
* @module backend/agentos/cognitive_substrate/IGMI
|
|
6
6
|
*/
|
|
7
|
-
import { IPersonaDefinition } from './personas/IPersonaDefinition';
|
|
8
|
-
import { IWorkingMemory } from './memory/IWorkingMemory';
|
|
9
|
-
import { IPromptEngine } from '../../core/llm/IPromptEngine';
|
|
10
|
-
import { IRetrievalAugmentor } from '../rag/IRetrievalAugmentor';
|
|
11
|
-
import type { ConversationMessage } from '../../core/conversation/ConversationMessage';
|
|
12
|
-
import type { NormalizedUserFeedback } from './userFeedback';
|
|
13
|
-
import { AIModelProviderManager } from '../../core/llm/providers/AIModelProviderManager';
|
|
14
|
-
import { IUtilityAI } from '../nlp/ai_utilities/IUtilityAI';
|
|
15
|
-
import { IToolOrchestrator } from '../../core/tools/IToolOrchestrator';
|
|
16
|
-
import type { ToolEffectRecord } from '../../core/tools/ITool';
|
|
17
|
-
import type { ChatMessage, ModelUsage, ThinkingBlock } from '../../core/llm/providers/IProvider';
|
|
18
|
-
import type { HexacoTraitValues } from './personas/hexaco';
|
|
7
|
+
import { IPersonaDefinition } from './personas/IPersonaDefinition.js';
|
|
8
|
+
import { IWorkingMemory } from './memory/IWorkingMemory.js';
|
|
9
|
+
import { IPromptEngine } from '../../core/llm/IPromptEngine.js';
|
|
10
|
+
import { IRetrievalAugmentor } from '../rag/IRetrievalAugmentor.js';
|
|
11
|
+
import type { ConversationMessage } from '../../core/conversation/ConversationMessage.js';
|
|
12
|
+
import type { NormalizedUserFeedback } from './userFeedback.js';
|
|
13
|
+
import { AIModelProviderManager } from '../../core/llm/providers/AIModelProviderManager.js';
|
|
14
|
+
import { IUtilityAI } from '../nlp/ai_utilities/IUtilityAI.js';
|
|
15
|
+
import { IToolOrchestrator } from '../../core/tools/IToolOrchestrator.js';
|
|
16
|
+
import type { ToolEffectRecord } from '../../core/tools/ITool.js';
|
|
17
|
+
import type { ChatMessage, ModelUsage, ThinkingBlock } from '../../core/llm/providers/IProvider.js';
|
|
18
|
+
import type { HexacoTraitValues } from './personas/hexaco.js';
|
|
19
19
|
import type { ILearnerSession } from '../learning/types.js';
|
|
20
20
|
/**
|
|
21
21
|
* Defines the possible moods a GMI can be in, influencing its behavior and responses.
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @module cognitive_substrate/MetapromptExecutor
|
|
15
15
|
*/
|
|
16
|
-
import { ChatMessage } from '../../core/llm/providers/IProvider';
|
|
17
|
-
import { AIModelProviderManager } from '../../core/llm/providers/AIModelProviderManager';
|
|
18
|
-
import { IUtilityAI } from '../nlp/ai_utilities/IUtilityAI';
|
|
19
|
-
import { IWorkingMemory } from './memory/IWorkingMemory';
|
|
20
|
-
import { GMIMood, GMIPrimeState, UserContext, TaskContext, ReasoningTraceEntry } from './IGMI';
|
|
21
|
-
import type { IPersonaDefinition, MetaPromptDefinition } from './personas/IPersonaDefinition';
|
|
16
|
+
import { ChatMessage } from '../../core/llm/providers/IProvider.js';
|
|
17
|
+
import { AIModelProviderManager } from '../../core/llm/providers/AIModelProviderManager.js';
|
|
18
|
+
import { IUtilityAI } from '../nlp/ai_utilities/IUtilityAI.js';
|
|
19
|
+
import { IWorkingMemory } from './memory/IWorkingMemory.js';
|
|
20
|
+
import { GMIMood, GMIPrimeState, UserContext, TaskContext, ReasoningTraceEntry } from './IGMI.js';
|
|
21
|
+
import type { IPersonaDefinition, MetaPromptDefinition } from './personas/IPersonaDefinition.js';
|
|
22
22
|
import { GMIEventType, GMIEvent } from './GMIEvent.js';
|
|
23
23
|
/**
|
|
24
24
|
* Configuration for the MetapromptExecutor, providing all required dependencies
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
*
|
|
12
12
|
* @module cognitive_substrate/SentimentTracker
|
|
13
13
|
*/
|
|
14
|
-
import { IUtilityAI } from '../nlp/ai_utilities/IUtilityAI';
|
|
15
|
-
import { IWorkingMemory } from './memory/IWorkingMemory';
|
|
16
|
-
import { ChatMessage } from '../../core/llm/providers/IProvider';
|
|
14
|
+
import { IUtilityAI } from '../nlp/ai_utilities/IUtilityAI.js';
|
|
15
|
+
import { IWorkingMemory } from './memory/IWorkingMemory.js';
|
|
16
|
+
import { ChatMessage } from '../../core/llm/providers/IProvider.js';
|
|
17
17
|
import { GMIEventType, GMIEvent, SentimentHistoryState } from './GMIEvent.js';
|
|
18
|
-
import type { ReasoningTraceEntry, UserContext } from './IGMI';
|
|
19
|
-
import type { IPersonaDefinition } from './personas/IPersonaDefinition';
|
|
18
|
+
import type { ReasoningTraceEntry, UserContext } from './IGMI.js';
|
|
19
|
+
import type { IPersonaDefinition } from './personas/IPersonaDefinition.js';
|
|
20
20
|
/**
|
|
21
21
|
* Tracks user sentiment, detects emotional patterns, and emits GMI events.
|
|
22
22
|
*
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* @module backend/agentos/cognitive_substrate/memory/InMemoryWorkingMemory
|
|
18
18
|
* @see {@link IWorkingMemory} for the interface definition.
|
|
19
19
|
*/
|
|
20
|
-
import { IWorkingMemory } from './IWorkingMemory';
|
|
20
|
+
import { IWorkingMemory } from './IWorkingMemory.js';
|
|
21
21
|
/**
|
|
22
22
|
* Implements the {@link IWorkingMemory} interface using a simple in-memory Map.
|
|
23
23
|
* This class provides a non-persistent, session-specific storage mechanism
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IPersonaDefinition } from '../personas/IPersonaDefinition';
|
|
2
|
-
import type { PersonaEvolutionRule } from '../../../orchestration/workflows/WorkflowTypes';
|
|
3
|
-
import { type ApplyPersonaRulesArgs, type PersonaEvolutionContext, type PersonaStateOverlay } from './PersonaOverlayTypes';
|
|
1
|
+
import type { IPersonaDefinition } from '../personas/IPersonaDefinition.js';
|
|
2
|
+
import type { PersonaEvolutionRule } from '../../../orchestration/workflows/WorkflowTypes.js';
|
|
3
|
+
import { type ApplyPersonaRulesArgs, type PersonaEvolutionContext, type PersonaStateOverlay } from './PersonaOverlayTypes.js';
|
|
4
4
|
/**
|
|
5
5
|
* Applies evolution rules to personas and produces runtime overlays that can be persisted
|
|
6
6
|
* alongside workflow instances.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IPersonaDefinition } from '../personas/IPersonaDefinition';
|
|
2
|
-
import type { PersonaEvolutionRule } from '../../../orchestration/workflows/WorkflowTypes';
|
|
1
|
+
import type { IPersonaDefinition } from '../personas/IPersonaDefinition.js';
|
|
2
|
+
import type { PersonaEvolutionRule } from '../../../orchestration/workflows/WorkflowTypes.js';
|
|
3
3
|
/**
|
|
4
4
|
* Captures the overlay state applied to a persona at runtime.
|
|
5
5
|
*/
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* within AgentOS.
|
|
4
4
|
* @module backend/agentos/cognitive_substrate/personas/IPersonaDefinition
|
|
5
5
|
*/
|
|
6
|
-
import { ModelCompletionOptions } from '../../../core/llm/providers/IProvider';
|
|
7
|
-
import { PromptEngineConfig } from '../../../core/llm/IPromptEngine';
|
|
8
|
-
import { ITool } from '../../../core/tools/ITool';
|
|
6
|
+
import { ModelCompletionOptions } from '../../../core/llm/providers/IProvider.js';
|
|
7
|
+
import { PromptEngineConfig } from '../../../core/llm/IPromptEngine.js';
|
|
8
|
+
import { ITool } from '../../../core/tools/ITool.js';
|
|
9
9
|
export interface PersonaUserContextDefaults {
|
|
10
10
|
skillLevel?: string;
|
|
11
11
|
preferences?: Record<string, any>;
|