@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
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* @module backend/agentos/core/llm/PromptEngine
|
|
16
16
|
* @implements {IPromptEngine}
|
|
17
17
|
*/
|
|
18
|
-
import { IPromptEngine, PromptEngineConfig, PromptComponents, ModelTargetInfo, PromptExecutionContext, PromptEngineResult, PromptTemplateFunction, IPromptEngineUtilityAI } from './IPromptEngine';
|
|
19
|
-
import { ContextualPromptElementCriteria } from '../../cognition/substrate/personas/IPersonaDefinition';
|
|
18
|
+
import { IPromptEngine, PromptEngineConfig, PromptComponents, ModelTargetInfo, PromptExecutionContext, PromptEngineResult, PromptTemplateFunction, IPromptEngineUtilityAI } from './IPromptEngine.js';
|
|
19
|
+
import { ContextualPromptElementCriteria } from '../../cognition/substrate/personas/IPersonaDefinition.js';
|
|
20
20
|
/**
|
|
21
21
|
* Comprehensive implementation of the IPromptEngine interface, providing
|
|
22
22
|
* sophisticated adaptive prompting capabilities for AgentOS GMIs.
|
|
@@ -16,20 +16,20 @@
|
|
|
16
16
|
*
|
|
17
17
|
* @module backend/agentos/core/llm/providers/AIModelProviderManager
|
|
18
18
|
*/
|
|
19
|
-
import { IProvider, ModelInfo } from './IProvider';
|
|
20
|
-
import { OpenAIProviderConfig } from './implementations/OpenAIProvider';
|
|
21
|
-
import { OpenRouterProviderConfig } from './implementations/OpenRouterProvider';
|
|
22
|
-
import { RequestyProviderConfig } from './implementations/RequestyProvider';
|
|
23
|
-
import { OllamaProviderConfig } from './implementations/OllamaProvider';
|
|
24
|
-
import { AnthropicProviderConfig } from './implementations/AnthropicProvider';
|
|
25
|
-
import { GroqProviderConfig } from './implementations/GroqProvider';
|
|
26
|
-
import { TogetherProviderConfig } from './implementations/TogetherProvider';
|
|
27
|
-
import { MistralProviderConfig } from './implementations/MistralProvider';
|
|
28
|
-
import { XAIProviderConfig } from './implementations/XAIProvider';
|
|
29
|
-
import { GeminiProviderConfig } from './implementations/GeminiProvider';
|
|
30
|
-
import { ClaudeCodeProviderConfig } from './implementations/ClaudeCodeProvider';
|
|
31
|
-
import { GeminiCLIProviderConfig } from './implementations/GeminiCLIProvider';
|
|
32
|
-
import { MiniMaxProviderConfig } from './implementations/MiniMaxProvider';
|
|
19
|
+
import { IProvider, ModelInfo } from './IProvider.js';
|
|
20
|
+
import { OpenAIProviderConfig } from './implementations/OpenAIProvider.js';
|
|
21
|
+
import { OpenRouterProviderConfig } from './implementations/OpenRouterProvider.js';
|
|
22
|
+
import { RequestyProviderConfig } from './implementations/RequestyProvider.js';
|
|
23
|
+
import { OllamaProviderConfig } from './implementations/OllamaProvider.js';
|
|
24
|
+
import { AnthropicProviderConfig } from './implementations/AnthropicProvider.js';
|
|
25
|
+
import { GroqProviderConfig } from './implementations/GroqProvider.js';
|
|
26
|
+
import { TogetherProviderConfig } from './implementations/TogetherProvider.js';
|
|
27
|
+
import { MistralProviderConfig } from './implementations/MistralProvider.js';
|
|
28
|
+
import { XAIProviderConfig } from './implementations/XAIProvider.js';
|
|
29
|
+
import { GeminiProviderConfig } from './implementations/GeminiProvider.js';
|
|
30
|
+
import { ClaudeCodeProviderConfig } from './implementations/ClaudeCodeProvider.js';
|
|
31
|
+
import { GeminiCLIProviderConfig } from './implementations/GeminiCLIProvider.js';
|
|
32
|
+
import { MiniMaxProviderConfig } from './implementations/MiniMaxProvider.js';
|
|
33
33
|
/**
|
|
34
34
|
* Configuration for a single AI model provider entry within the manager.
|
|
35
35
|
* @interface ProviderConfigEntry
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @module backend/agentos/core/llm/providers/errors/AnthropicProviderError
|
|
8
8
|
* @see {@link ProviderError}
|
|
9
9
|
*/
|
|
10
|
-
import { ProviderError } from './ProviderError';
|
|
10
|
+
import { ProviderError } from './ProviderError.js';
|
|
11
11
|
/**
|
|
12
12
|
* Represents an error specific to the Anthropic provider.
|
|
13
13
|
* It includes additional context like HTTP status codes and Anthropic-specific
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @module agentos/core/llm/providers/errors/ClaudeCodeProviderError
|
|
6
6
|
* @see {@link CLISubprocessError}
|
|
7
7
|
*/
|
|
8
|
-
import { CLISubprocessError } from '../../../../safety/sandbox/subprocess/errors';
|
|
8
|
+
import { CLISubprocessError } from '../../../../safety/sandbox/subprocess/errors.js';
|
|
9
9
|
/**
|
|
10
10
|
* All recognized error codes for the Claude Code CLI provider.
|
|
11
11
|
* Combines generic CLI error codes with Claude-specific ones.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @module agentos/core/llm/providers/errors/GeminiCLIProviderError
|
|
6
6
|
* @see {@link CLISubprocessError}
|
|
7
7
|
*/
|
|
8
|
-
import { CLISubprocessError } from '../../../../safety/sandbox/subprocess/errors';
|
|
8
|
+
import { CLISubprocessError } from '../../../../safety/sandbox/subprocess/errors.js';
|
|
9
9
|
/**
|
|
10
10
|
* All recognized error codes for the Gemini CLI provider.
|
|
11
11
|
* Combines generic CLI error codes with Gemini-specific ones.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module backend/agentos/core/llm/providers/errors/GeminiProviderError
|
|
7
7
|
* @see {@link ProviderError}
|
|
8
8
|
*/
|
|
9
|
-
import { ProviderError } from './ProviderError';
|
|
9
|
+
import { ProviderError } from './ProviderError.js';
|
|
10
10
|
/**
|
|
11
11
|
* Represents an error originating from the Google Gemini provider.
|
|
12
12
|
*
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @module backend/agentos/core/llm/providers/errors/OllamaProviderError
|
|
5
5
|
* @see {@link ProviderError}
|
|
6
6
|
*/
|
|
7
|
-
import { ProviderError } from './ProviderError';
|
|
7
|
+
import { ProviderError } from './ProviderError.js';
|
|
8
8
|
/**
|
|
9
9
|
* Represents an error specific to the Ollama provider.
|
|
10
10
|
* It can include additional context like HTTP status codes or specific Ollama error messages.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @module backend/agentos/core/llm/providers/errors/OpenAIProviderError
|
|
5
5
|
* @see {@link ProviderError}
|
|
6
6
|
*/
|
|
7
|
-
import { ProviderError } from './ProviderError';
|
|
7
|
+
import { ProviderError } from './ProviderError.js';
|
|
8
8
|
/**
|
|
9
9
|
* Represents an error specific to the OpenAI provider.
|
|
10
10
|
* It includes additional context like OpenAI-specific error codes, types, and HTTP status.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @module backend/agentos/core/llm/providers/errors/OpenRouterProviderError
|
|
5
5
|
* @see {@link ProviderError}
|
|
6
6
|
*/
|
|
7
|
-
import { ProviderError } from './ProviderError';
|
|
7
|
+
import { ProviderError } from './ProviderError.js';
|
|
8
8
|
/**
|
|
9
9
|
* Represents an error specific to the OpenRouter provider.
|
|
10
10
|
* It can include additional context like HTTP status codes or specific OpenRouter error messages.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @module backend/agentos/core/llm/providers/errors/RequestyProviderError
|
|
5
5
|
* @see {@link ProviderError}
|
|
6
6
|
*/
|
|
7
|
-
import { ProviderError } from './ProviderError';
|
|
7
|
+
import { ProviderError } from './ProviderError.js';
|
|
8
8
|
/**
|
|
9
9
|
* Represents an error specific to the Requesty provider.
|
|
10
10
|
* It can include additional context like HTTP status codes or specific Requesty error messages.
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* @module backend/agentos/core/llm/providers/implementations/AnthropicProvider
|
|
17
17
|
* @implements {IProvider}
|
|
18
18
|
*/
|
|
19
|
-
import { IProvider, ChatMessage, ModelCompletionOptions, ModelCompletionResponse, ModelInfo, ProviderEmbeddingOptions, ProviderEmbeddingResponse, CacheDiagnostics } from '../IProvider';
|
|
19
|
+
import { IProvider, ChatMessage, ModelCompletionOptions, ModelCompletionResponse, ModelInfo, ProviderEmbeddingOptions, ProviderEmbeddingResponse, CacheDiagnostics } from '../IProvider.js';
|
|
20
20
|
import { type ApiKeyPoolConfig } from '../../../providers/ApiKeyPool.js';
|
|
21
21
|
import { modelSupportsForcedToolChoice } from '../model-forced-tool-choice.js';
|
|
22
22
|
import { anthropicModelPricing, estimateAnthropicCostUSD, resolveAnthropicModelEntry, resolveModelCatalogEntry, type AnthropicCacheCreationBreakdown, type AnthropicModelInfo, type AnthropicModelPrice, type AnthropicUsageForCost } from './anthropicCatalog.js';
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
* @see CLISubprocessBridge
|
|
12
12
|
* @see ClaudeCodeProvider
|
|
13
13
|
*/
|
|
14
|
-
import { CLISubprocessBridge } from '../../../../safety/sandbox/subprocess/CLISubprocessBridge';
|
|
15
|
-
import { ClaudeCodeProviderError } from '../errors/ClaudeCodeProviderError';
|
|
16
|
-
import type { BridgeOptions, BridgeResult, StreamEvent, OutputFormat } from '../../../../safety/sandbox/subprocess/types';
|
|
17
|
-
export type { BridgeOptions as CLIBridgeOptions, BridgeResult as CLIBridgeResult, StreamEvent } from '../../../../safety/sandbox/subprocess/types';
|
|
18
|
-
export type { InstallCheckResult } from '../../../../safety/sandbox/subprocess/types';
|
|
14
|
+
import { CLISubprocessBridge } from '../../../../safety/sandbox/subprocess/CLISubprocessBridge.js';
|
|
15
|
+
import { ClaudeCodeProviderError } from '../errors/ClaudeCodeProviderError.js';
|
|
16
|
+
import type { BridgeOptions, BridgeResult, StreamEvent, OutputFormat } from '../../../../safety/sandbox/subprocess/types.js';
|
|
17
|
+
export type { BridgeOptions as CLIBridgeOptions, BridgeResult as CLIBridgeResult, StreamEvent } from '../../../../safety/sandbox/subprocess/types.js';
|
|
18
|
+
export type { InstallCheckResult } from '../../../../safety/sandbox/subprocess/types.js';
|
|
19
19
|
/**
|
|
20
20
|
* Claude Code CLI subprocess bridge.
|
|
21
21
|
*
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* @module agentos/core/llm/providers/implementations/ClaudeCodeProvider
|
|
14
14
|
* @see ClaudeCodeCLIBridge
|
|
15
15
|
*/
|
|
16
|
-
import { type IProvider, type ChatMessage, type ModelCompletionOptions, type ModelCompletionResponse, type ModelInfo, type ProviderEmbeddingOptions, type ProviderEmbeddingResponse } from '../IProvider';
|
|
16
|
+
import { type IProvider, type ChatMessage, type ModelCompletionOptions, type ModelCompletionResponse, type ModelInfo, type ProviderEmbeddingOptions, type ProviderEmbeddingResponse } from '../IProvider.js';
|
|
17
17
|
/** Configuration for the Claude Code CLI provider. */
|
|
18
18
|
export interface ClaudeCodeProviderConfig {
|
|
19
19
|
/** Override the default model. Defaults to `claude-sonnet-4-6`. */
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
* @see CLISubprocessBridge
|
|
14
14
|
* @see GeminiCLIProvider
|
|
15
15
|
*/
|
|
16
|
-
import { CLISubprocessBridge } from '../../../../safety/sandbox/subprocess/CLISubprocessBridge';
|
|
17
|
-
import { GeminiCLIProviderError } from '../errors/GeminiCLIProviderError';
|
|
18
|
-
import type { BridgeOptions, BridgeResult, StreamEvent, StreamParseContext, OutputFormat } from '../../../../safety/sandbox/subprocess/types';
|
|
19
|
-
export type { BridgeOptions, BridgeResult, StreamEvent } from '../../../../safety/sandbox/subprocess/types';
|
|
20
|
-
export type { InstallCheckResult } from '../../../../safety/sandbox/subprocess/types';
|
|
16
|
+
import { CLISubprocessBridge } from '../../../../safety/sandbox/subprocess/CLISubprocessBridge.js';
|
|
17
|
+
import { GeminiCLIProviderError } from '../errors/GeminiCLIProviderError.js';
|
|
18
|
+
import type { BridgeOptions, BridgeResult, StreamEvent, StreamParseContext, OutputFormat } from '../../../../safety/sandbox/subprocess/types.js';
|
|
19
|
+
export type { BridgeOptions, BridgeResult, StreamEvent } from '../../../../safety/sandbox/subprocess/types.js';
|
|
20
|
+
export type { InstallCheckResult } from '../../../../safety/sandbox/subprocess/types.js';
|
|
21
21
|
/**
|
|
22
22
|
* Gemini CLI subprocess bridge.
|
|
23
23
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @module agentos/core/llm/providers/implementations/GeminiCLIProvider
|
|
8
8
|
* @see GeminiCLIBridge
|
|
9
9
|
*/
|
|
10
|
-
import { type IProvider, type ChatMessage, type ModelCompletionOptions, type ModelCompletionResponse, type ModelInfo, type ProviderEmbeddingOptions, type ProviderEmbeddingResponse } from '../IProvider';
|
|
10
|
+
import { type IProvider, type ChatMessage, type ModelCompletionOptions, type ModelCompletionResponse, type ModelInfo, type ProviderEmbeddingOptions, type ProviderEmbeddingResponse } from '../IProvider.js';
|
|
11
11
|
/** Configuration for the Gemini CLI provider. */
|
|
12
12
|
export interface GeminiCLIProviderConfig {
|
|
13
13
|
/** Override the default model. Defaults to `gemini-3.5-flash`. */
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* @module backend/agentos/core/llm/providers/implementations/GeminiProvider
|
|
19
19
|
* @implements {IProvider}
|
|
20
20
|
*/
|
|
21
|
-
import { IProvider, ChatMessage, ModelCompletionOptions, ModelCompletionResponse, ModelInfo, ProviderEmbeddingOptions, ProviderEmbeddingResponse } from '../IProvider';
|
|
21
|
+
import { IProvider, ChatMessage, ModelCompletionOptions, ModelCompletionResponse, ModelInfo, ProviderEmbeddingOptions, ProviderEmbeddingResponse } from '../IProvider.js';
|
|
22
22
|
import { type ApiKeyPoolConfig } from '../../../providers/ApiKeyPool.js';
|
|
23
23
|
/**
|
|
24
24
|
* Configuration for the GeminiProvider.
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* @module backend/agentos/core/llm/providers/implementations/GroqProvider
|
|
12
12
|
* @implements {IProvider}
|
|
13
13
|
*/
|
|
14
|
-
import { IProvider, ChatMessage, ModelCompletionOptions, ModelCompletionResponse, ModelInfo, ProviderEmbeddingOptions, ProviderEmbeddingResponse } from '../IProvider';
|
|
15
|
-
import { type OpenAIProviderConfig } from './OpenAIProvider';
|
|
14
|
+
import { IProvider, ChatMessage, ModelCompletionOptions, ModelCompletionResponse, ModelInfo, ProviderEmbeddingOptions, ProviderEmbeddingResponse } from '../IProvider.js';
|
|
15
|
+
import { type OpenAIProviderConfig } from './OpenAIProvider.js';
|
|
16
16
|
/**
|
|
17
17
|
* Configuration for the GroqProvider.
|
|
18
18
|
*
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* @module backend/agentos/core/llm/providers/implementations/LiteLLMProvider
|
|
12
12
|
* @implements {IProvider}
|
|
13
13
|
*/
|
|
14
|
-
import { IProvider, ChatMessage, ModelCompletionOptions, ModelCompletionResponse, ModelInfo, ProviderEmbeddingOptions, ProviderEmbeddingResponse } from '../IProvider';
|
|
15
|
-
import { type OpenAIProviderConfig } from './OpenAIProvider';
|
|
14
|
+
import { IProvider, ChatMessage, ModelCompletionOptions, ModelCompletionResponse, ModelInfo, ProviderEmbeddingOptions, ProviderEmbeddingResponse } from '../IProvider.js';
|
|
15
|
+
import { type OpenAIProviderConfig } from './OpenAIProvider.js';
|
|
16
16
|
/**
|
|
17
17
|
* Configuration for the LiteLLMProvider.
|
|
18
18
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ChatMessage, ModelCompletionOptions, ModelInfo, ProviderEmbeddingOptions, ProviderEmbeddingResponse } from '../IProvider';
|
|
2
|
-
import { OpenAIProvider, OpenAIProviderConfig } from './OpenAIProvider';
|
|
1
|
+
import type { ChatMessage, ModelCompletionOptions, ModelInfo, ProviderEmbeddingOptions, ProviderEmbeddingResponse } from '../IProvider.js';
|
|
2
|
+
import { OpenAIProvider, OpenAIProviderConfig } from './OpenAIProvider.js';
|
|
3
3
|
/** Configuration for MiniMax's OpenAI-compatible Chat Completions transport. */
|
|
4
4
|
export type MiniMaxProviderConfig = OpenAIProviderConfig;
|
|
5
5
|
/**
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* @module backend/agentos/core/llm/providers/implementations/MistralProvider
|
|
10
10
|
* @implements {IProvider}
|
|
11
11
|
*/
|
|
12
|
-
import { IProvider, ChatMessage, ModelCompletionOptions, ModelCompletionResponse, ModelInfo, ProviderEmbeddingOptions, ProviderEmbeddingResponse } from '../IProvider';
|
|
13
|
-
import { type OpenAIProviderConfig } from './OpenAIProvider';
|
|
12
|
+
import { IProvider, ChatMessage, ModelCompletionOptions, ModelCompletionResponse, ModelInfo, ProviderEmbeddingOptions, ProviderEmbeddingResponse } from '../IProvider.js';
|
|
13
|
+
import { type OpenAIProviderConfig } from './OpenAIProvider.js';
|
|
14
14
|
/**
|
|
15
15
|
* A tool call id in the form Mistral accepts. Mistral rejects any other id
|
|
16
16
|
* with HTTP 400, and a conversation can carry ids another provider issued
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IProvider, ChatMessage, ModelCompletionOptions, ModelCompletionResponse, ModelInfo, ProviderEmbeddingOptions, ProviderEmbeddingResponse } from '../IProvider';
|
|
1
|
+
import { IProvider, ChatMessage, ModelCompletionOptions, ModelCompletionResponse, ModelInfo, ProviderEmbeddingOptions, ProviderEmbeddingResponse } from '../IProvider.js';
|
|
2
2
|
/**
|
|
3
3
|
* Configuration specific to the OllamaProvider.
|
|
4
4
|
*/
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* @module backend/agentos/core/llm/providers/implementations/OpenAIProvider
|
|
19
19
|
* @implements {IProvider}
|
|
20
20
|
*/
|
|
21
|
-
import { IProvider, ChatMessage, ModelCompletionOptions, ModelCompletionResponse, ModelInfo, ProviderEmbeddingOptions, ProviderEmbeddingResponse } from '../IProvider';
|
|
21
|
+
import { IProvider, ChatMessage, ModelCompletionOptions, ModelCompletionResponse, ModelInfo, ProviderEmbeddingOptions, ProviderEmbeddingResponse } from '../IProvider.js';
|
|
22
22
|
import { type ApiKeyPoolConfig } from '../../../providers/ApiKeyPool.js';
|
|
23
23
|
/**
|
|
24
24
|
* The OpenAI API's base URL, which requests go to when the config names no `baseURL`. `embedText` posts OpenAI
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @module backend/agentos/core/llm/providers/implementations/OpenRouterProvider
|
|
6
6
|
* @implements {IProvider}
|
|
7
7
|
*/
|
|
8
|
-
import { IProvider, ChatMessage, ModelCompletionOptions, ModelCompletionResponse, ModelInfo, ModelUsage, ProviderEmbeddingOptions, ProviderEmbeddingResponse } from '../IProvider';
|
|
8
|
+
import { IProvider, ChatMessage, ModelCompletionOptions, ModelCompletionResponse, ModelInfo, ModelUsage, ProviderEmbeddingOptions, ProviderEmbeddingResponse } from '../IProvider.js';
|
|
9
9
|
import { type ApiKeyPoolConfig } from '../../../providers/ApiKeyPool.js';
|
|
10
10
|
/**
|
|
11
11
|
* OpenRouter's API base URL, which requests go to when the config names no `baseURL`. `embedText` posts OpenRouter
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module backend/agentos/core/llm/providers/implementations/RequestyProvider
|
|
7
7
|
* @implements {IProvider}
|
|
8
8
|
*/
|
|
9
|
-
import { IProvider, ChatMessage, ModelCompletionOptions, ModelCompletionResponse, ModelInfo, ProviderEmbeddingOptions, ProviderEmbeddingResponse } from '../IProvider';
|
|
9
|
+
import { IProvider, ChatMessage, ModelCompletionOptions, ModelCompletionResponse, ModelInfo, ProviderEmbeddingOptions, ProviderEmbeddingResponse } from '../IProvider.js';
|
|
10
10
|
import { type ApiKeyPoolConfig } from '../../../providers/ApiKeyPool.js';
|
|
11
11
|
/**
|
|
12
12
|
* Requesty's router base URL, which requests go to when the config names no `baseURL`. `embedText` posts Requesty
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* @module backend/agentos/core/llm/providers/implementations/TogetherProvider
|
|
10
10
|
* @implements {IProvider}
|
|
11
11
|
*/
|
|
12
|
-
import { IProvider, ChatMessage, ModelCompletionOptions, ModelCompletionResponse, ModelInfo, ProviderEmbeddingOptions, ProviderEmbeddingResponse } from '../IProvider';
|
|
13
|
-
import { type OpenAIProviderConfig } from './OpenAIProvider';
|
|
12
|
+
import { IProvider, ChatMessage, ModelCompletionOptions, ModelCompletionResponse, ModelInfo, ProviderEmbeddingOptions, ProviderEmbeddingResponse } from '../IProvider.js';
|
|
13
|
+
import { type OpenAIProviderConfig } from './OpenAIProvider.js';
|
|
14
14
|
/**
|
|
15
15
|
* Configuration for the TogetherProvider.
|
|
16
16
|
*
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* @module backend/agentos/core/llm/providers/implementations/XAIProvider
|
|
10
10
|
* @implements {IProvider}
|
|
11
11
|
*/
|
|
12
|
-
import { IProvider, ChatMessage, ModelCompletionOptions, ModelCompletionResponse, ModelInfo, ProviderEmbeddingOptions, ProviderEmbeddingResponse } from '../IProvider';
|
|
13
|
-
import { type OpenAIProviderConfig } from './OpenAIProvider';
|
|
12
|
+
import { IProvider, ChatMessage, ModelCompletionOptions, ModelCompletionResponse, ModelInfo, ProviderEmbeddingOptions, ProviderEmbeddingResponse } from '../IProvider.js';
|
|
13
|
+
import { type OpenAIProviderConfig } from './OpenAIProvider.js';
|
|
14
14
|
/**
|
|
15
15
|
* Configuration for the XAIProvider.
|
|
16
16
|
*
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* free models; https://openrouter.ai/docs/api-reference/limits, read
|
|
10
10
|
* 19 October 2026), so the probe must go to a model with a price.
|
|
11
11
|
*/
|
|
12
|
-
import type { ModelInfo } from '../IProvider';
|
|
12
|
+
import type { ModelInfo } from '../IProvider.js';
|
|
13
13
|
/**
|
|
14
14
|
* The cheapest chat model of a catalog that lists a price above zero, by its
|
|
15
15
|
* listed input and output prices together. A model with either price missing,
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* to more sophisticated LLM-driven or learning-based routing systems.
|
|
10
10
|
* @module backend/agentos/core/llm/routing/IModelRouter
|
|
11
11
|
*/
|
|
12
|
-
import { IProvider, ModelInfo } from '../providers/IProvider';
|
|
13
|
-
import { IPersonaDefinition } from '../../../cognition/substrate/personas/IPersonaDefinition';
|
|
14
|
-
import type { ISubscriptionTier } from '../../types/auth';
|
|
12
|
+
import { IProvider, ModelInfo } from '../providers/IProvider.js';
|
|
13
|
+
import { IPersonaDefinition } from '../../../cognition/substrate/personas/IPersonaDefinition.js';
|
|
14
|
+
import type { ISubscriptionTier } from '../../types/auth.js';
|
|
15
15
|
/**
|
|
16
16
|
* Parameters provided to the model router to aid in its selection process.
|
|
17
17
|
* This context allows the router to make informed decisions.
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
* @module backend/agentos/core/llm/routing/ModelRouter
|
|
12
12
|
* @implements {IModelRouter}
|
|
13
13
|
*/
|
|
14
|
-
import { IModelRouter, ModelRouteParams, ModelRouteResult } from './IModelRouter';
|
|
15
|
-
import { ModelInfo } from '../providers/IProvider';
|
|
16
|
-
import { AIModelProviderManager } from '../providers/AIModelProviderManager';
|
|
14
|
+
import { IModelRouter, ModelRouteParams, ModelRouteResult } from './IModelRouter.js';
|
|
15
|
+
import { ModelInfo } from '../providers/IProvider.js';
|
|
16
|
+
import { AIModelProviderManager } from '../providers/AIModelProviderManager.js';
|
|
17
17
|
/**
|
|
18
18
|
* Custom error class for ModelRouter specific operational errors.
|
|
19
19
|
* @class ModelRouterError
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
*
|
|
11
11
|
* @module core/llm/routing/PolicyAwareRouter
|
|
12
12
|
*/
|
|
13
|
-
import type { IModelRouter, ModelRouteParams, ModelRouteResult } from './IModelRouter';
|
|
14
|
-
import type { ModelInfo } from '../providers/IProvider';
|
|
15
|
-
import type { UncensoredModelCatalog, PolicyTier } from './UncensoredModelCatalog';
|
|
13
|
+
import type { IModelRouter, ModelRouteParams, ModelRouteResult } from './IModelRouter.js';
|
|
14
|
+
import type { ModelInfo } from '../providers/IProvider.js';
|
|
15
|
+
import type { UncensoredModelCatalog, PolicyTier } from './UncensoredModelCatalog.js';
|
|
16
16
|
/**
|
|
17
17
|
* Manual override map: policyTier -> fixed modelId.
|
|
18
18
|
* When provided, bypasses catalog lookup for the specified tier.
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
*
|
|
25
25
|
* NOTE: This is an optional optimization layer. Consumers requiring raw per-token latency should bypass batching.
|
|
26
26
|
*/
|
|
27
|
-
import { ModelCompletionResponse } from '../providers/IProvider';
|
|
27
|
+
import { ModelCompletionResponse } from '../providers/IProvider.js';
|
|
28
28
|
/** Configuration options for StreamingBatcher. */
|
|
29
29
|
export interface StreamingBatcherOptions {
|
|
30
30
|
/** Max wall-clock latency before forcing a flush (milliseconds). */
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* This module centralizes reconstruction logic so UI code, tests, and higher-level orchestration
|
|
11
11
|
* avoid duplicating fragile merge routines.
|
|
12
12
|
*/
|
|
13
|
-
import { ModelCompletionResponse } from '../providers/IProvider';
|
|
13
|
+
import { ModelCompletionResponse } from '../providers/IProvider.js';
|
|
14
14
|
/** Reconstructed tool call structure after merging streamed argument deltas. */
|
|
15
15
|
export interface ReconstructedToolCall {
|
|
16
16
|
index: number;
|
|
@@ -56,7 +56,7 @@ export declare class StreamingReconstructor {
|
|
|
56
56
|
/** Final chunk if received. */
|
|
57
57
|
getFinalChunk(): ModelCompletionResponse | undefined;
|
|
58
58
|
/** Aggregate usage only reliable after final chunk. */
|
|
59
|
-
getUsage(): import("../providers/IProvider").ModelUsage | undefined;
|
|
59
|
+
getUsage(): import("../providers/IProvider.js").ModelUsage | undefined;
|
|
60
60
|
/** Error if surfaced on final chunk. */
|
|
61
61
|
getError(): {
|
|
62
62
|
message: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Logger, LoggerOptions } from 'pino';
|
|
2
|
-
import { ILogger } from './ILogger';
|
|
2
|
+
import { ILogger } from './ILogger.js';
|
|
3
3
|
/**
|
|
4
4
|
* An {@link ILogger} on pino: structured JSON records, trace ids in their fields when configured, and an optional
|
|
5
5
|
* OpenTelemetry copy of each record. While content-safe telemetry is on (`enableContentSafeTelemetry`), each record
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Bridges the push-based StreamingManager to a pull-based AsyncGenerator
|
|
5
5
|
* consumable by AgentOS.processRequest and similar facades.
|
|
6
6
|
*/
|
|
7
|
-
import type { IStreamClient, StreamClientId } from './IStreamClient';
|
|
8
|
-
import type { AgentOSResponse } from '../../api/types/AgentOSResponse';
|
|
7
|
+
import type { IStreamClient, StreamClientId } from './IStreamClient.js';
|
|
8
|
+
import type { AgentOSResponse } from '../../api/types/AgentOSResponse.js';
|
|
9
9
|
/**
|
|
10
10
|
* Acts as an IStreamClient to bridge push-based data flow from StreamingManager
|
|
11
11
|
* to a pull-based AsyncGenerator. Queues incoming chunks and uses promises to
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module backend/core/streaming/IStreamClient
|
|
9
9
|
*/
|
|
10
|
-
import { AgentOSResponse } from '../../api/types/AgentOSResponse';
|
|
10
|
+
import { AgentOSResponse } from '../../api/types/AgentOSResponse.js';
|
|
11
11
|
/**
|
|
12
12
|
* Represents a unique identifier for a stream client.
|
|
13
13
|
* This could be a WebSocket connection ID, a unique user session sub-ID, etc.
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* @see ./IStreamClient.ts For the client contract.
|
|
9
9
|
* @see ../../api/types/AgentOSResponse.ts For the data chunk structure.
|
|
10
10
|
*/
|
|
11
|
-
import { AgentOSResponse } from '../../api/types/AgentOSResponse';
|
|
12
|
-
import { IStreamClient, StreamClientId } from './IStreamClient';
|
|
11
|
+
import { AgentOSResponse } from '../../api/types/AgentOSResponse.js';
|
|
12
|
+
import { IStreamClient, StreamClientId } from './IStreamClient.js';
|
|
13
13
|
import { GMIError, GMIErrorCode } from '../utils/errors.js';
|
|
14
14
|
/**
|
|
15
15
|
* Represents a unique identifier for a data stream.
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @module backend/agentos/core/tools/ITool
|
|
8
8
|
*/
|
|
9
|
-
import { UserContext } from '../../cognition/substrate/IGMI';
|
|
10
|
-
import type { CallerTurnContext } from '../../api/runtime/agencyLaunch/types';
|
|
9
|
+
import { UserContext } from '../../cognition/substrate/IGMI.js';
|
|
10
|
+
import type { CallerTurnContext } from '../../api/runtime/agencyLaunch/types.js';
|
|
11
11
|
/**
|
|
12
12
|
* Represents a JSON schema definition.
|
|
13
13
|
* This type is used to define the expected structure for tool inputs and outputs,
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
* @see ../config/ToolOrchestratorConfig.ts
|
|
11
11
|
* @see ../cognitive_substrate/IGMI.ts for ToolCallRequest, ToolCallResult, UserContext
|
|
12
12
|
*/
|
|
13
|
-
import { ITool, JSONSchemaObject } from './ITool';
|
|
14
|
-
import { IToolPermissionManager } from './permissions/IToolPermissionManager';
|
|
15
|
-
import { ToolExecutor, ToolExecutionRequestDetails } from './ToolExecutor';
|
|
16
|
-
import { ToolOrchestratorConfig } from '../config/ToolOrchestratorConfig';
|
|
17
|
-
import { ToolCallResult, UserContext } from '../../cognition/substrate/IGMI';
|
|
18
|
-
import type { IHumanInteractionManager } from '../../orchestration/hitl/IHumanInteractionManager';
|
|
19
|
-
import type { CapabilityDiscoveryResult } from '../../cognition/discovery/types';
|
|
13
|
+
import { ITool, JSONSchemaObject } from './ITool.js';
|
|
14
|
+
import { IToolPermissionManager } from './permissions/IToolPermissionManager.js';
|
|
15
|
+
import { ToolExecutor, ToolExecutionRequestDetails } from './ToolExecutor.js';
|
|
16
|
+
import { ToolOrchestratorConfig } from '../config/ToolOrchestratorConfig.js';
|
|
17
|
+
import { ToolCallResult, UserContext } from '../../cognition/substrate/IGMI.js';
|
|
18
|
+
import type { IHumanInteractionManager } from '../../orchestration/hitl/IHumanInteractionManager.js';
|
|
19
|
+
import type { CapabilityDiscoveryResult } from '../../cognition/discovery/types.js';
|
|
20
20
|
import type { EmergentConfig, EmergentTool } from '../../cognition/emergent/types.js';
|
|
21
21
|
import type { EmergentCapabilityEngine } from '../../cognition/emergent/EmergentCapabilityEngine.js';
|
|
22
22
|
import type { SelfImprovementToolDeps } from '../../cognition/emergent/EmergentCapabilityEngine.js';
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
* @see ../cognitive_substrate/IGMI.ts for ToolCallRequest, UserContext.
|
|
10
10
|
* @see @framers/agentos/utils/errors.ts for GMIError, GMIErrorCode, createGMIErrorFromError.
|
|
11
11
|
*/
|
|
12
|
-
import { ITool, ToolExecutionResult } from './ITool';
|
|
13
|
-
import { ToolCallRequest, UserContext } from '../../cognition/substrate/IGMI';
|
|
14
|
-
import type { IAuthService, ISubscriptionService } from '../types/auth';
|
|
15
|
-
import { ExtensionRegistry } from '../../extensions';
|
|
12
|
+
import { ITool, ToolExecutionResult } from './ITool.js';
|
|
13
|
+
import { ToolCallRequest, UserContext } from '../../cognition/substrate/IGMI.js';
|
|
14
|
+
import type { IAuthService, ISubscriptionService } from '../types/auth.js';
|
|
15
|
+
import { ExtensionRegistry } from '../../extensions/index.js';
|
|
16
16
|
import type { CallerTurnContext } from '../../api/runtime/agencyLaunch/types.js';
|
|
17
17
|
/**
|
|
18
18
|
* @interface ToolExecutionRequestDetails
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
* @see ../../config/ToolOrchestratorConfig.ts for configuration options.
|
|
27
27
|
* @see ../../cognitive_substrate/IGMI.ts for GMI-related types like ToolCallRequest, ToolCallResult, UserContext.
|
|
28
28
|
*/
|
|
29
|
-
import { IToolOrchestrator, ToolDefinitionForLLM } from './IToolOrchestrator';
|
|
30
|
-
import { ITool } from './ITool';
|
|
31
|
-
import { IToolPermissionManager } from './permissions/IToolPermissionManager';
|
|
32
|
-
import { ToolExecutor, ToolExecutionRequestDetails } from './ToolExecutor';
|
|
33
|
-
import { ToolOrchestratorConfig } from '../config/ToolOrchestratorConfig';
|
|
34
|
-
import { ToolCallResult, UserContext } from '../../cognition/substrate/IGMI';
|
|
35
|
-
import type { IHumanInteractionManager } from '../../orchestration/hitl/IHumanInteractionManager';
|
|
29
|
+
import { IToolOrchestrator, ToolDefinitionForLLM } from './IToolOrchestrator.js';
|
|
30
|
+
import { ITool } from './ITool.js';
|
|
31
|
+
import { IToolPermissionManager } from './permissions/IToolPermissionManager.js';
|
|
32
|
+
import { ToolExecutor, ToolExecutionRequestDetails } from './ToolExecutor.js';
|
|
33
|
+
import { ToolOrchestratorConfig } from '../config/ToolOrchestratorConfig.js';
|
|
34
|
+
import { ToolCallResult, UserContext } from '../../cognition/substrate/IGMI.js';
|
|
35
|
+
import type { IHumanInteractionManager } from '../../orchestration/hitl/IHumanInteractionManager.js';
|
|
36
36
|
import type { EmergentConfig, EmergentTool } from '../../cognition/emergent/types.js';
|
|
37
37
|
import { EmergentCapabilityEngine } from '../../cognition/emergent/EmergentCapabilityEngine.js';
|
|
38
38
|
import type { IStorageAdapter as EmergentStorageAdapter } from '../../cognition/emergent/EmergentToolRegistry.js';
|
|
@@ -167,7 +167,7 @@ export declare class ToolOrchestrator implements IToolOrchestrator {
|
|
|
167
167
|
* This dramatically reduces the tool list sent to the LLM,
|
|
168
168
|
* preventing context rot from unused tool schemas.
|
|
169
169
|
*/
|
|
170
|
-
listDiscoveredTools(discoveryResult: import('../../cognition/discovery/types').CapabilityDiscoveryResult, context?: {
|
|
170
|
+
listDiscoveredTools(discoveryResult: import('../../cognition/discovery/types.js').CapabilityDiscoveryResult, context?: {
|
|
171
171
|
personaId?: string;
|
|
172
172
|
personaCapabilities?: string[];
|
|
173
173
|
userContext?: UserContext;
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* @see ../cognitive_substrate/IGMI.ts for UserContext.
|
|
9
9
|
* @see ../../../types/auth.ts for authentication and subscription type definitions.
|
|
10
10
|
*/
|
|
11
|
-
import { ITool } from '../ITool';
|
|
12
|
-
import { UserContext } from '../../../cognition/substrate/IGMI';
|
|
13
|
-
import type { IAuthService, ISubscriptionService } from '../../types/auth';
|
|
11
|
+
import { ITool } from '../ITool.js';
|
|
12
|
+
import { UserContext } from '../../../cognition/substrate/IGMI.js';
|
|
13
|
+
import type { IAuthService, ISubscriptionService } from '../../types/auth.js';
|
|
14
14
|
/**
|
|
15
15
|
* @interface FeatureFlag
|
|
16
16
|
* @description Defines the structure for a feature flag, used to gate access to tools
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
* See `ISubscriptionService` and `ISubscriptionTier` in `types/auth`.
|
|
42
42
|
* See `GMIError` and `GMIErrorCode` in `@framers/agentos/utils/errors`.
|
|
43
43
|
*/
|
|
44
|
-
import { IToolPermissionManager, PermissionCheckContext, PermissionCheckResult, ToolPermissionManagerConfig, FeatureFlag } from './IToolPermissionManager';
|
|
45
|
-
import type { IAuthService, ISubscriptionService } from '../../types/auth';
|
|
44
|
+
import { IToolPermissionManager, PermissionCheckContext, PermissionCheckResult, ToolPermissionManagerConfig, FeatureFlag } from './IToolPermissionManager.js';
|
|
45
|
+
import type { IAuthService, ISubscriptionService } from '../../types/auth.js';
|
|
46
46
|
/**
|
|
47
47
|
* @class ToolPermissionManager
|
|
48
48
|
* @implements {IToolPermissionManager}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* 3. Query Flexibility: Summaries per session, persona, provider, model.
|
|
9
9
|
* 4. Cost Normalization: Uses `ModelUsage.costUSD` when present; can apply fallback pricing from a model catalog.
|
|
10
10
|
*/
|
|
11
|
-
import { ModelCompletionResponse, ModelUsage } from '../../llm/providers/IProvider';
|
|
11
|
+
import { ModelCompletionResponse, ModelUsage } from '../../llm/providers/IProvider.js';
|
|
12
12
|
/** Canonical key dimensions tracked for each usage record. */
|
|
13
13
|
export interface UsageDimensions {
|
|
14
14
|
sessionId: string;
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* @see ./IVectorStore.ts for the underlying vector store interface.
|
|
10
10
|
* @see ../../config/VectorStoreConfiguration.ts for the `VectorStoreManagerConfig` structure.
|
|
11
11
|
*/
|
|
12
|
-
import { IVectorStore } from './IVectorStore';
|
|
13
|
-
import { VectorStoreManagerConfig, RagDataSourceConfig } from '../config/VectorStoreConfiguration';
|
|
12
|
+
import { IVectorStore } from './IVectorStore.js';
|
|
13
|
+
import { VectorStoreManagerConfig, RagDataSourceConfig } from '../config/VectorStoreConfiguration.js';
|
|
14
14
|
/**
|
|
15
15
|
* Represents the health status of managed vector store providers.
|
|
16
16
|
*
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Extension Registry Loader
|
|
3
3
|
* Automatically discovers and loads extensions from npm and local registry
|
|
4
4
|
*/
|
|
5
|
-
import { ExtensionManager } from './ExtensionManager';
|
|
6
|
-
import { ExtensionPack } from './manifest';
|
|
5
|
+
import { ExtensionManager } from './ExtensionManager.js';
|
|
6
|
+
import { ExtensionPack } from './manifest.js';
|
|
7
7
|
/**
|
|
8
8
|
* npm package-name grammar (the install-relevant subset of npm's
|
|
9
9
|
* validate-npm-package-name). A name that passes contains no shell
|