@framers/agentos 0.15.63 → 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 +2 -2
- 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
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* or a remote configuration service.
|
|
6
6
|
* @module backend/agentos/cognitive_substrate/personas/IPersonaLoader
|
|
7
7
|
*/
|
|
8
|
-
import { IPersonaDefinition } from './IPersonaDefinition';
|
|
8
|
+
import { IPersonaDefinition } from './IPersonaDefinition.js';
|
|
9
9
|
/**
|
|
10
10
|
* Configuration for the PersonaLoader.
|
|
11
11
|
* @interface PersonaLoaderConfig
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IPersonaDefinition } from './IPersonaDefinition';
|
|
2
|
-
import type { IPersonaLoader, PersonaLoaderConfig } from './IPersonaLoader';
|
|
1
|
+
import type { IPersonaDefinition } from './IPersonaDefinition.js';
|
|
2
|
+
import type { IPersonaLoader, PersonaLoaderConfig } from './IPersonaLoader.js';
|
|
3
3
|
/** The `personaLoaderConfig` the runtime records when personas come from an inline list. */
|
|
4
4
|
export declare const INLINE_PERSONA_LOADER_CONFIG: PersonaLoaderConfig;
|
|
5
5
|
/**
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* @see ./IPersonaDefinition.ts
|
|
8
8
|
* @see ./IPersonaLoader.ts
|
|
9
9
|
*/
|
|
10
|
-
import { IPersonaDefinition } from './IPersonaDefinition';
|
|
11
|
-
import { IPersonaLoader, PersonaLoaderConfig } from './IPersonaLoader';
|
|
10
|
+
import { IPersonaDefinition } from './IPersonaDefinition.js';
|
|
11
|
+
import { IPersonaLoader, PersonaLoaderConfig } from './IPersonaLoader.js';
|
|
12
12
|
/**
|
|
13
13
|
* Configuration specific to the FileSystemPersonaLoader.
|
|
14
14
|
* @interface FileSystemPersonaLoaderConfig
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IPersonaDefinition } from '../IPersonaDefinition';
|
|
1
|
+
import type { IPersonaDefinition } from '../IPersonaDefinition.js';
|
|
2
2
|
/**
|
|
3
3
|
* Canonical catalogue of persona definitions shipped with AgentOS.
|
|
4
4
|
* Consumers can use this list to seed custom loaders or expose the
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Load-time transformations every persona source shares, so a definition loads
|
|
4
4
|
* identically from a JSON file, an inline list or a custom loader.
|
|
5
5
|
*/
|
|
6
|
-
import type { IPersonaDefinition } from './IPersonaDefinition';
|
|
6
|
+
import type { IPersonaDefinition } from './IPersonaDefinition.js';
|
|
7
7
|
/** Short preset names accepted in `sentimentTracking.presets`, mapped to the metaprompt ids they expand to. */
|
|
8
8
|
export declare const SENTIMENT_PRESET_IDS: Record<string, string>;
|
|
9
9
|
/**
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* misconfigured persona can neither starve the metaprompts nor grow the trace
|
|
12
12
|
* past the ceilings.
|
|
13
13
|
*/
|
|
14
|
-
import type { IPersonaDefinition } from './personas/IPersonaDefinition';
|
|
15
|
-
import type { GMIBaseConfig } from './IGMI';
|
|
14
|
+
import type { IPersonaDefinition } from './personas/IPersonaDefinition.js';
|
|
15
|
+
import type { GMIBaseConfig } from './IGMI.js';
|
|
16
16
|
/** Entries kept when neither the persona nor the runtime sets a limit. */
|
|
17
17
|
export declare const DEFAULT_REASONING_TRACE_MAX_ENTRIES = 500;
|
|
18
18
|
/** Characters kept per entry message when neither the persona nor the runtime sets a limit. */
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview The refused tool result recorded for a call a tool-call gate refuses.
|
|
3
3
|
* @module cognition/substrate/toolCallGate
|
|
4
4
|
*/
|
|
5
|
-
import type { GMIToolCallRefusal, ToolCallRequest, ToolCallResult } from './IGMI';
|
|
5
|
+
import type { GMIToolCallRefusal, ToolCallRequest, ToolCallResult } from './IGMI.js';
|
|
6
6
|
/** The `errorDetails.reason` of a call a tool-call gate refused. */
|
|
7
7
|
export declare const TOOL_CALL_REFUSED_REASON = "Refused by an output guardrail";
|
|
8
8
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AudioInputData, GMITurnInput, VisionInputData } from './IGMI';
|
|
1
|
+
import type { AudioInputData, GMITurnInput, VisionInputData } from './IGMI.js';
|
|
2
2
|
/** A part of a user message, in the shape the providers take. */
|
|
3
3
|
export type TurnContentPart = {
|
|
4
4
|
type: 'text';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Multi-provider web search orchestrator.
|
|
5
5
|
* Pipeline: parallel search → semantic dedup → RRF fusion → optional neural reranking.
|
|
6
6
|
*/
|
|
7
|
-
import type { IWebSearchProvider, WebSearchConfig, EnrichedSearchResult } from './types';
|
|
7
|
+
import type { IWebSearchProvider, WebSearchConfig, EnrichedSearchResult } from './types.js';
|
|
8
8
|
export declare class WebSearchService {
|
|
9
9
|
private providers;
|
|
10
10
|
private readonly config;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RRFCandidate } from './types';
|
|
1
|
+
import type { RRFCandidate } from './types.js';
|
|
2
2
|
/** Build vocabulary index from all texts. */
|
|
3
3
|
export declare function buildVocabulary(texts: string[]): Map<string, number>;
|
|
4
4
|
/** Build a TF vector normalized by document length. */
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* URL normalization and Reciprocal Rank Fusion (RRF) scoring.
|
|
5
5
|
* Pure functions, no IO.
|
|
6
6
|
*/
|
|
7
|
-
import type { RRFCandidate } from './types';
|
|
7
|
+
import type { RRFCandidate } from './types.js';
|
|
8
8
|
/**
|
|
9
9
|
* A URL in the form dedup compares: without its `http://` or `https://`, a leading `www.`, the slashes its path ends
|
|
10
10
|
* with and its tracking parameters. The query parameters that stay keep their order behind one `?`, and a fragment
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
* // Results are deduped, RRF-scored, and optionally reranked
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
export type { IWebSearchProvider, WebSearchResult, EnrichedSearchResult, WebSearchConfig, RRFCandidate, } from './types';
|
|
20
|
-
export { WebSearchService } from './WebSearchService';
|
|
21
|
-
export { FirecrawlProvider } from './providers/FirecrawlProvider';
|
|
22
|
-
export { TavilyProvider } from './providers/TavilyProvider';
|
|
23
|
-
export { SerperProvider } from './providers/SerperProvider';
|
|
24
|
-
export { BraveProvider } from './providers/BraveProvider';
|
|
25
|
-
export { normalizeUrl, computeRRF, computeWeightedRRF } from './fusion';
|
|
26
|
-
export { semanticDedup, buildVocabulary, buildTfVector } from './dedup';
|
|
19
|
+
export type { IWebSearchProvider, WebSearchResult, EnrichedSearchResult, WebSearchConfig, RRFCandidate, } from './types.js';
|
|
20
|
+
export { WebSearchService } from './WebSearchService.js';
|
|
21
|
+
export { FirecrawlProvider } from './providers/FirecrawlProvider.js';
|
|
22
|
+
export { TavilyProvider } from './providers/TavilyProvider.js';
|
|
23
|
+
export { SerperProvider } from './providers/SerperProvider.js';
|
|
24
|
+
export { BraveProvider } from './providers/BraveProvider.js';
|
|
25
|
+
export { normalizeUrl, computeRRF, computeWeightedRRF } from './fusion.js';
|
|
26
|
+
export { semanticDedup, buildVocabulary, buildTfVector } from './dedup.js';
|
|
27
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Brave Search API provider.
|
|
5
5
|
*/
|
|
6
|
-
import type { IWebSearchProvider, WebSearchResult } from '../types';
|
|
6
|
+
import type { IWebSearchProvider, WebSearchResult } from '../types.js';
|
|
7
7
|
export declare class BraveProvider implements IWebSearchProvider {
|
|
8
8
|
readonly providerId: "brave";
|
|
9
9
|
readonly weight = 1;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Returns full extracted markdown content alongside search results.
|
|
6
6
|
* Primary provider with 1.5x RRF weight.
|
|
7
7
|
*/
|
|
8
|
-
import type { IWebSearchProvider, WebSearchResult } from '../types';
|
|
8
|
+
import type { IWebSearchProvider, WebSearchResult } from '../types.js';
|
|
9
9
|
export declare class FirecrawlProvider implements IWebSearchProvider {
|
|
10
10
|
readonly providerId: "firecrawl";
|
|
11
11
|
readonly weight = 1.5;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Serper (Google Search) provider.
|
|
5
5
|
*/
|
|
6
|
-
import type { IWebSearchProvider, WebSearchResult } from '../types';
|
|
6
|
+
import type { IWebSearchProvider, WebSearchResult } from '../types.js';
|
|
7
7
|
export declare class SerperProvider implements IWebSearchProvider {
|
|
8
8
|
readonly providerId: "serper";
|
|
9
9
|
readonly weight = 1;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Tavily AI-optimized search provider.
|
|
5
5
|
*/
|
|
6
|
-
import type { IWebSearchProvider, WebSearchResult } from '../types';
|
|
6
|
+
import type { IWebSearchProvider, WebSearchResult } from '../types.js';
|
|
7
7
|
export declare class TavilyProvider implements IWebSearchProvider {
|
|
8
8
|
readonly providerId: "tavily";
|
|
9
9
|
readonly weight = 1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { FirecrawlProvider } from './FirecrawlProvider';
|
|
2
|
-
export { TavilyProvider } from './TavilyProvider';
|
|
3
|
-
export { SerperProvider } from './SerperProvider';
|
|
4
|
-
export { BraveProvider } from './BraveProvider';
|
|
1
|
+
export { FirecrawlProvider } from './FirecrawlProvider.js';
|
|
2
|
+
export { TavilyProvider } from './TavilyProvider.js';
|
|
3
|
+
export { SerperProvider } from './SerperProvider.js';
|
|
4
|
+
export { BraveProvider } from './BraveProvider.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Core types for the AgentOS multi-provider web search pipeline.
|
|
5
5
|
*/
|
|
6
|
-
import type { RerankChainStage } from '../rag/reranking/IRerankerService';
|
|
7
|
-
import type { RerankerService } from '../rag/reranking/RerankerService';
|
|
6
|
+
import type { RerankChainStage } from '../rag/reranking/IRerankerService.js';
|
|
7
|
+
import type { RerankerService } from '../rag/reranking/RerankerService.js';
|
|
8
8
|
/** A single raw result from a search provider. */
|
|
9
9
|
export interface WebSearchResult {
|
|
10
10
|
url: string;
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* @see ./ConversationMessage.ts For ConversationMessage and MessageRole definitions.
|
|
9
9
|
* @see ../ai_utilities/IUtilityAI.ts For IUtilityAI and SummarizationOptions definitions.
|
|
10
10
|
*/
|
|
11
|
-
import { ConversationMessage, MessageRole } from './ConversationMessage';
|
|
12
|
-
import { IUtilityAI, SummarizationOptions } from '../../cognition/nlp/ai_utilities/IUtilityAI';
|
|
11
|
+
import { ConversationMessage, MessageRole } from './ConversationMessage.js';
|
|
12
|
+
import { IUtilityAI, SummarizationOptions } from '../../cognition/nlp/ai_utilities/IUtilityAI.js';
|
|
13
13
|
/**
|
|
14
14
|
* Configuration for the ConversationContext, defining its behavior and limits. Each of the four counts of messages
|
|
15
15
|
* (`maxHistoryLengthMessages`, `messagesToKeepVerbatimTail`, `messagesToKeepVerbatimHead`, `summarizationChunkSize`)
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* @see ../../ai_utilities/IUtilityAI.ts
|
|
10
10
|
* @see @framers/sql-storage-adapter
|
|
11
11
|
*/
|
|
12
|
-
import { ConversationContext, ConversationContextConfig } from './ConversationContext';
|
|
13
|
-
import { IUtilityAI } from '../../cognition/nlp/ai_utilities/IUtilityAI';
|
|
12
|
+
import { ConversationContext, ConversationContextConfig } from './ConversationContext.js';
|
|
13
|
+
import { IUtilityAI } from '../../cognition/nlp/ai_utilities/IUtilityAI.js';
|
|
14
14
|
import type { StorageAdapter } from '@framers/sql-storage-adapter';
|
|
15
15
|
/**
|
|
16
16
|
* Configuration for the ConversationManager.
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* @see ../../cognitive_substrate/IGMI.ts for ToolCallRequest definition.
|
|
10
10
|
* @see ../ai_utilities/IUtilityAI.ts for SentimentResult.
|
|
11
11
|
*/
|
|
12
|
-
import { ToolCallRequest as GMIToolCallRequest } from '../../cognition/substrate/IGMI';
|
|
13
|
-
import { SentimentResult } from '../../cognition/nlp/ai_utilities/IUtilityAI';
|
|
14
|
-
import type { ThinkingBlock } from '../llm/providers/IProvider';
|
|
12
|
+
import { ToolCallRequest as GMIToolCallRequest } from '../../cognition/substrate/IGMI.js';
|
|
13
|
+
import { SentimentResult } from '../../cognition/nlp/ai_utilities/IUtilityAI.js';
|
|
14
|
+
import type { ThinkingBlock } from '../llm/providers/IProvider.js';
|
|
15
15
|
/**
|
|
16
16
|
* Represents the role of the entity that produced the message.
|
|
17
17
|
* Critical for LLM interpretation and system logic.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ResolvedLongTermMemoryPolicy } from './LongTermMemoryPolicy';
|
|
1
|
+
import type { ResolvedLongTermMemoryPolicy } from './LongTermMemoryPolicy.js';
|
|
2
2
|
import type { MemoryRetrievalPolicy } from '../../cognition/rag/unified/policy.js';
|
|
3
3
|
export interface LongTermMemoryRetrievalInput {
|
|
4
4
|
userId: string;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* AgentOS keeps the rolling summary inside the per-conversation `ConversationContext` metadata for
|
|
6
6
|
* prompt compaction. This sink is for *cross-conversation* retrieval and analytics.
|
|
7
7
|
*/
|
|
8
|
-
import type { ResolvedLongTermMemoryPolicy } from './LongTermMemoryPolicy';
|
|
8
|
+
import type { ResolvedLongTermMemoryPolicy } from './LongTermMemoryPolicy.js';
|
|
9
9
|
export interface RollingSummaryMemoryUpdate {
|
|
10
10
|
userId: string;
|
|
11
11
|
/** Optional organization context (multi-tenant / org-scoped memory). */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ChatMessage, ModelCompletionOptions } from '../llm/providers/IProvider';
|
|
2
|
-
import type { ConversationMessage } from './ConversationMessage';
|
|
1
|
+
import type { ChatMessage, ModelCompletionOptions } from '../llm/providers/IProvider.js';
|
|
2
|
+
import type { ConversationMessage } from './ConversationMessage.js';
|
|
3
3
|
export interface RollingSummaryCompactionConfig {
|
|
4
4
|
enabled: boolean;
|
|
5
5
|
/**
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* @see ../llm/providers/AIModelProviderManager.ts
|
|
16
16
|
* @see ../../rag/EmbeddingManager.ts for a concrete implementation.
|
|
17
17
|
*/
|
|
18
|
-
import { AIModelProviderManager } from '../llm/providers/AIModelProviderManager';
|
|
18
|
+
import { AIModelProviderManager } from '../llm/providers/AIModelProviderManager.js';
|
|
19
19
|
import { EmbeddingManagerConfig, EmbeddingModelConfig } from '../config/EmbeddingManagerConfiguration.js';
|
|
20
20
|
/**
|
|
21
21
|
* Represents a request to generate embeddings.
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
* See `docs/PROMPTS.MD` for detailed architectural documentation.
|
|
22
22
|
* @see {@link IPersonaDefinition} for persona-driven prompting.
|
|
23
23
|
*/
|
|
24
|
-
import { IPersonaDefinition, ContextualPromptElement, ContextualPromptElementCriteria } from '../../cognition/substrate/personas/IPersonaDefinition';
|
|
25
|
-
import { IWorkingMemory } from '../../cognition/substrate/memory/IWorkingMemory';
|
|
26
|
-
import { ITool } from '../tools/ITool';
|
|
27
|
-
import { VisionInputData, AudioInputData } from '../../cognition/substrate/IGMI';
|
|
28
|
-
import { ConversationMessage as Message } from '../conversation/ConversationMessage';
|
|
29
|
-
import { ChatMessage } from './providers/IProvider';
|
|
24
|
+
import { IPersonaDefinition, ContextualPromptElement, ContextualPromptElementCriteria } from '../../cognition/substrate/personas/IPersonaDefinition.js';
|
|
25
|
+
import { IWorkingMemory } from '../../cognition/substrate/memory/IWorkingMemory.js';
|
|
26
|
+
import { ITool } from '../tools/ITool.js';
|
|
27
|
+
import { VisionInputData, AudioInputData } from '../../cognition/substrate/IGMI.js';
|
|
28
|
+
import { ConversationMessage as Message } from '../conversation/ConversationMessage.js';
|
|
29
|
+
import { ChatMessage } from './providers/IProvider.js';
|
|
30
30
|
/**
|
|
31
31
|
* Represents different types of contextual prompt elements that can be dynamically
|
|
32
32
|
* selected and integrated into prompts based on execution context.
|
|
@@ -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
|