@gaia-framework/backend-core 6.0.1 → 7.0.0
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/CHANGELOG.md +66 -0
- package/README.md +1 -1
- package/build/openapi/openapi.json +1392 -428
- package/build/openapi/openapi.yaml +940 -303
- package/build/openapi/voice-media-worker.json +1 -1
- package/build/openapi/voice-media-worker.yaml +1 -1
- package/build/openapi/worker-health.json +1 -1
- package/build/openapi/worker-health.yaml +1 -1
- package/build/src/config/VoiceMediaConfig.d.ts +1 -0
- package/build/src/config/VoiceMediaConfig.d.ts.map +1 -1
- package/build/src/config/VoiceMediaConfig.js +5 -0
- package/build/src/config/VoiceMediaConfig.js.map +1 -1
- package/build/src/config/schema.d.ts +19 -7
- package/build/src/config/schema.d.ts.map +1 -1
- package/build/src/config/schema.js +23 -7
- package/build/src/config/schema.js.map +1 -1
- package/build/src/core/application/dtos/messages/responses/MessageDto.d.ts +2 -1
- package/build/src/core/application/dtos/messages/responses/MessageDto.d.ts.map +1 -1
- package/build/src/core/application/dtos/runs/CreateRunRequestDto.d.ts +2 -0
- package/build/src/core/application/dtos/runs/CreateRunRequestDto.d.ts.map +1 -1
- package/build/src/core/application/mappers/messages/MessageMapper.d.ts.map +1 -1
- package/build/src/core/application/mappers/messages/MessageMapper.js +2 -0
- package/build/src/core/application/mappers/messages/MessageMapper.js.map +1 -1
- package/build/src/core/application/services/media/DefaultContentMediaService.d.ts +1 -1
- package/build/src/core/application/services/media/DefaultContentMediaService.d.ts.map +1 -1
- package/build/src/core/application/services/media/DefaultContentMediaService.js +48 -15
- package/build/src/core/application/services/media/DefaultContentMediaService.js.map +1 -1
- package/build/src/core/application/services/media/ImageAppServiceImpl.js +1 -1
- package/build/src/core/application/services/media/ImageAppServiceImpl.js.map +1 -1
- package/build/src/core/application/services/media/ImageEditingAppService.d.ts +7 -1
- package/build/src/core/application/services/media/ImageEditingAppService.d.ts.map +1 -1
- package/build/src/core/application/services/media/ImageEditingAppServiceImpl.d.ts +6 -1
- package/build/src/core/application/services/media/ImageEditingAppServiceImpl.d.ts.map +1 -1
- package/build/src/core/application/services/media/ImageEditingAppServiceImpl.js +59 -5
- package/build/src/core/application/services/media/ImageEditingAppServiceImpl.js.map +1 -1
- package/build/src/core/application/services/media/SpeechAppService.d.ts +2 -1
- package/build/src/core/application/services/media/SpeechAppService.d.ts.map +1 -1
- package/build/src/core/application/services/media/SpeechAppServiceImpl.d.ts +1 -0
- package/build/src/core/application/services/media/SpeechAppServiceImpl.d.ts.map +1 -1
- package/build/src/core/application/services/media/SpeechAppServiceImpl.js +3 -0
- package/build/src/core/application/services/media/SpeechAppServiceImpl.js.map +1 -1
- package/build/src/core/application/services/realtime/RealtimeTranscriptSession.d.ts +3 -0
- package/build/src/core/application/services/realtime/RealtimeTranscriptSession.d.ts.map +1 -1
- package/build/src/core/application/services/realtime/RealtimeTranscriptSession.js +62 -0
- package/build/src/core/application/services/realtime/RealtimeTranscriptSession.js.map +1 -1
- package/build/src/core/application/services/runs/RunAppServiceImpl.d.ts +7 -3
- package/build/src/core/application/services/runs/RunAppServiceImpl.d.ts.map +1 -1
- package/build/src/core/application/services/runs/RunAppServiceImpl.js +64 -14
- package/build/src/core/application/services/runs/RunAppServiceImpl.js.map +1 -1
- package/build/src/core/application/services/runs/RunExecutionSessionFactoryImpl.js +1 -1
- package/build/src/core/application/services/runs/RunExecutionSessionFactoryImpl.js.map +1 -1
- package/build/src/core/application/services/voice/intake/VoiceTranscriptService.d.ts +1 -1
- package/build/src/core/application/services/voice/intake/VoiceTranscriptService.d.ts.map +1 -1
- package/build/src/core/application/services/voice/intake/VoiceTranscriptService.js +17 -14
- package/build/src/core/application/services/voice/intake/VoiceTranscriptService.js.map +1 -1
- package/build/src/core/application/services/voice/review/VoiceReviewInput.d.ts +1 -0
- package/build/src/core/application/services/voice/review/VoiceReviewInput.d.ts.map +1 -1
- package/build/src/core/application/services/voice/session/ActiveVoiceSession.d.ts +2 -0
- package/build/src/core/application/services/voice/session/ActiveVoiceSession.d.ts.map +1 -1
- package/build/src/core/application/services/voice/session/ActiveVoiceSession.js +37 -12
- package/build/src/core/application/services/voice/session/ActiveVoiceSession.js.map +1 -1
- package/build/src/core/application/services/voice/session/VoiceSessionAppService.js +1 -1
- package/build/src/core/application/services/voice/session/VoiceSessionAppService.js.map +1 -1
- package/build/src/core/domain/factories/speech/SpeechProviderFactory.d.ts +1 -0
- package/build/src/core/domain/factories/speech/SpeechProviderFactory.d.ts.map +1 -1
- package/build/src/core/domain/factories/speech/SpeechProviderFactory.js +3 -0
- package/build/src/core/domain/factories/speech/SpeechProviderFactory.js.map +1 -1
- package/build/src/core/domain/models/images/ImageEditing.d.ts +9 -0
- package/build/src/core/domain/models/images/ImageEditing.d.ts.map +1 -1
- package/build/src/core/domain/models/images/ImageEditing.js +2 -1
- package/build/src/core/domain/models/images/ImageEditing.js.map +1 -1
- package/build/src/core/domain/models/images/ImageOutputOptions.js +1 -1
- package/build/src/core/domain/models/messages/Message.d.ts +8 -0
- package/build/src/core/domain/models/messages/Message.d.ts.map +1 -1
- package/build/src/core/domain/models/speech/RealtimeTranslationLanguage.d.ts +10 -0
- package/build/src/core/domain/models/speech/RealtimeTranslationLanguage.d.ts.map +1 -1
- package/build/src/core/domain/models/tools/ToolExecutionContext.d.ts +2 -0
- package/build/src/core/domain/models/tools/ToolExecutionContext.d.ts.map +1 -1
- package/build/src/core/domain/models/voice/VoiceSession.d.ts +2 -0
- package/build/src/core/domain/models/voice/VoiceSession.d.ts.map +1 -1
- package/build/src/core/domain/params/chat/LLMExecutionRequest.d.ts +2 -0
- package/build/src/core/domain/params/chat/LLMExecutionRequest.d.ts.map +1 -1
- package/build/src/core/domain/ports/ai/images/ImageEditingProvider.d.ts +2 -0
- package/build/src/core/domain/ports/ai/images/ImageEditingProvider.d.ts.map +1 -1
- package/build/src/core/domain/ports/ai/llm/LLMProvider.d.ts +2 -0
- package/build/src/core/domain/ports/ai/llm/LLMProvider.d.ts.map +1 -1
- package/build/src/core/domain/ports/repositories/voice/VoiceSessionRepository.d.ts +3 -1
- package/build/src/core/domain/ports/repositories/voice/VoiceSessionRepository.d.ts.map +1 -1
- package/build/src/core/domain/ports/services/assurance/AssuranceEvaluationService.d.ts +1 -1
- package/build/src/core/domain/ports/services/assurance/AssuranceEvaluationService.d.ts.map +1 -1
- package/build/src/core/domain/ports/services/media/RemoteMediaFetcher.d.ts +1 -0
- package/build/src/core/domain/ports/services/media/RemoteMediaFetcher.d.ts.map +1 -1
- package/build/src/core/domain/ports/speech/RealtimeTranslationProvider.d.ts +2 -1
- package/build/src/core/domain/ports/speech/RealtimeTranslationProvider.d.ts.map +1 -1
- package/build/src/core/domain/services/chat/LLMExecutionServiceImpl.d.ts.map +1 -1
- package/build/src/core/domain/services/chat/LLMExecutionServiceImpl.js +16 -4
- package/build/src/core/domain/services/chat/LLMExecutionServiceImpl.js.map +1 -1
- package/build/src/core/domain/services/media/ImageEditPolicy.d.ts +14 -1
- package/build/src/core/domain/services/media/ImageEditPolicy.d.ts.map +1 -1
- package/build/src/core/domain/services/media/ImageEditPolicy.js +54 -4
- package/build/src/core/domain/services/media/ImageEditPolicy.js.map +1 -1
- package/build/src/core/domain/services/media/SpeechService.d.ts +2 -1
- package/build/src/core/domain/services/media/SpeechService.d.ts.map +1 -1
- package/build/src/core/domain/services/media/SpeechServiceImpl.d.ts +1 -0
- package/build/src/core/domain/services/media/SpeechServiceImpl.d.ts.map +1 -1
- package/build/src/core/domain/services/media/SpeechServiceImpl.js +3 -0
- package/build/src/core/domain/services/media/SpeechServiceImpl.js.map +1 -1
- package/build/src/core/domain/services/models/ModelServiceImpl.d.ts +1 -0
- package/build/src/core/domain/services/models/ModelServiceImpl.d.ts.map +1 -1
- package/build/src/core/domain/services/models/ModelServiceImpl.js +31 -32
- package/build/src/core/domain/services/models/ModelServiceImpl.js.map +1 -1
- package/build/src/core/domain/services/runs/NativeRunEngine.d.ts.map +1 -1
- package/build/src/core/domain/services/runs/NativeRunEngine.js +6 -1
- package/build/src/core/domain/services/runs/NativeRunEngine.js.map +1 -1
- package/build/src/core/domain/services/runs/RunEngine.d.ts +2 -0
- package/build/src/core/domain/services/runs/RunEngine.d.ts.map +1 -1
- package/build/src/core/domain/services/runs/RunToolApprovalProviderCapability.d.ts +2 -0
- package/build/src/core/domain/services/runs/RunToolApprovalProviderCapability.d.ts.map +1 -1
- package/build/src/core/domain/services/runs/RunToolApprovalProviderCapability.js +6 -2
- package/build/src/core/domain/services/runs/RunToolApprovalProviderCapability.js.map +1 -1
- package/build/src/core/domain/services/tools/ToolExecutionContextPolicy.d.ts +1 -0
- package/build/src/core/domain/services/tools/ToolExecutionContextPolicy.d.ts.map +1 -1
- package/build/src/core/domain/services/tools/ToolExecutionContextPolicy.js +1 -0
- package/build/src/core/domain/services/tools/ToolExecutionContextPolicy.js.map +1 -1
- package/build/src/core/infrastructure/ai/images/AnimatedPngFixture.test-support.d.ts +2 -0
- package/build/src/core/infrastructure/ai/images/AnimatedPngFixture.test-support.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/images/AnimatedPngFixture.test-support.js +5 -0
- package/build/src/core/infrastructure/ai/images/AnimatedPngFixture.test-support.js.map +1 -0
- package/build/src/core/infrastructure/ai/images/ImageOutputBytes.d.ts +1 -0
- package/build/src/core/infrastructure/ai/images/ImageOutputBytes.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/images/ImageOutputBytes.js +9 -3
- package/build/src/core/infrastructure/ai/images/ImageOutputBytes.js.map +1 -1
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageClient.d.ts +20 -0
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageClient.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageClient.js +52 -0
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageClient.js.map +1 -0
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageEditingProvider.d.ts +13 -0
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageEditingProvider.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageEditingProvider.js +137 -0
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageEditingProvider.js.map +1 -0
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageGenerationProvider.d.ts +3 -37
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageGenerationProvider.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageGenerationProvider.js +52 -208
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageGenerationProvider.js.map +1 -1
- package/build/src/core/infrastructure/ai/images/editing/OpenAICompatibleImageEditingProvider.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/images/editing/OpenAICompatibleImageEditingProvider.js +11 -3
- package/build/src/core/infrastructure/ai/images/editing/OpenAICompatibleImageEditingProvider.js.map +1 -1
- package/build/src/core/infrastructure/ai/images/editing/OpenAIImageEditMask.d.ts +12 -0
- package/build/src/core/infrastructure/ai/images/editing/OpenAIImageEditMask.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/images/editing/OpenAIImageEditMask.js +39 -0
- package/build/src/core/infrastructure/ai/images/editing/OpenAIImageEditMask.js.map +1 -0
- package/build/src/core/infrastructure/ai/images/openai/OpenAIImageModels.d.ts +1 -1
- package/build/src/core/infrastructure/ai/llm/base/realtime/NativeRealtimeApprovalStore.d.ts +32 -0
- package/build/src/core/infrastructure/ai/llm/base/realtime/NativeRealtimeApprovalStore.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/base/realtime/NativeRealtimeApprovalStore.js +80 -0
- package/build/src/core/infrastructure/ai/llm/base/realtime/NativeRealtimeApprovalStore.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/base/realtime/RealtimeToolInvocationBuilder.d.ts +23 -0
- package/build/src/core/infrastructure/ai/llm/base/realtime/RealtimeToolInvocationBuilder.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/base/realtime/RealtimeToolInvocationBuilder.js +66 -0
- package/build/src/core/infrastructure/ai/llm/base/realtime/RealtimeToolInvocationBuilder.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/azure/services/AzureFoundryService.d.ts +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/cerebras/CerebrasConfig.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/cerebras/CerebrasConfig.js +11 -15
- package/build/src/core/infrastructure/ai/llm/providers/cerebras/CerebrasConfig.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/cerebras/CerebrasService.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/cerebras/CerebrasService.js +3 -5
- package/build/src/core/infrastructure/ai/llm/providers/cerebras/CerebrasService.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/foundry-local/FoundryLocalService.d.ts +2 -1
- package/build/src/core/infrastructure/ai/llm/providers/foundry-local/FoundryLocalService.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/foundry-local/FoundryLocalService.js +33 -38
- package/build/src/core/infrastructure/ai/llm/providers/foundry-local/FoundryLocalService.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleConfig.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleConfig.js +0 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleConfig.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleStructuredOutputPolicy.js +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleStructuredOutputPolicy.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleLiveSocket.d.ts +6 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleLiveSocket.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleLiveSocket.js +16 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleLiveSocket.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeConfig.d.ts +9 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeConfig.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeConfig.js +17 -4
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeConfig.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeEventHandlerREgistry.d.ts +11 -2
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeEventHandlerREgistry.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeEventHandlerREgistry.js +72 -42
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeEventHandlerREgistry.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeProvider.d.ts +2 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeProvider.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeProvider.js +51 -30
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeProvider.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeSession.d.ts +14 -6
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeSession.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeSession.js +74 -28
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeSession.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolApprovals.d.ts +27 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolApprovals.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolApprovals.js +138 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolApprovals.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolContracts.d.ts +10 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolContracts.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolContracts.js +43 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolContracts.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeTranslationProvider.d.ts +38 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeTranslationProvider.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeTranslationProvider.js +138 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeTranslationProvider.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/types.d.ts +9 -2
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/types.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/types.js +4 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/types.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/local/LocalLLMChatProviderService.d.ts +2 -3
- package/build/src/core/infrastructure/ai/llm/providers/local/LocalLLMChatProviderService.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/local/LocalLLMChatProviderService.js +11 -7
- package/build/src/core/infrastructure/ai/llm/providers/local/LocalLLMChatProviderService.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/mistral/MistralConfig.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/mistral/MistralConfig.js +18 -13
- package/build/src/core/infrastructure/ai/llm/providers/mistral/MistralConfig.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/mistral/MistralService.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/mistral/MistralService.js +16 -1
- package/build/src/core/infrastructure/ai/llm/providers/mistral/MistralService.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaConfig.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaConfig.js +12 -132
- package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaConfig.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaCloudService.d.ts +40 -0
- package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaCloudService.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaCloudService.js +296 -0
- package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaCloudService.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaLLMProvider.d.ts +14 -4
- package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaLLMProvider.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaLLMProvider.js +35 -5
- package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaLLMProvider.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/chat-completions/OpenAIChatCompletionsService.d.ts +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveConfig.d.ts +5 -2
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveConfig.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveConfig.js +25 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveConfig.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveMediaProvider.js +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveMediaProvider.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveProvider.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveProvider.js +6 -4
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveProvider.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptPlayback.d.ts +3 -4
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptPlayback.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptPlayback.js +13 -51
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptPlayback.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptSpeech.d.ts +4 -0
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptSpeech.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptSpeech.js +163 -0
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptSpeech.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveRtcConnection.d.ts +9 -2
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveRtcConnection.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveRtcConnection.js +24 -9
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveRtcConnection.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveRtcEventMapper.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveRtcEventMapper.js +4 -0
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveRtcEventMapper.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAIRealtimeReceiptSpeech.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAIRealtimeReceiptSpeech.js +12 -4
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAIRealtimeReceiptSpeech.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeDisplayContentBuilder.d.ts +3 -21
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeDisplayContentBuilder.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeDisplayContentBuilder.js +2 -64
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeDisplayContentBuilder.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeEventHandlerRegistry.d.ts +1 -5
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeEventHandlerRegistry.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeEventHandlerRegistry.js +12 -87
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeEventHandlerRegistry.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeTranslationProvider.d.ts +11 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeTranslationProvider.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeTranslationProvider.js +73 -73
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeTranslationProvider.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/responses/OpenAIResponsesApiService.d.ts +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeCatalog.d.ts +25 -0
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeCatalog.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeCatalog.js +152 -0
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeCatalog.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeLLMProvider.d.ts +22 -0
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeLLMProvider.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeLLMProvider.js +54 -0
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeLLMProvider.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeService.d.ts +31 -0
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeService.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeService.js +357 -0
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeService.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/openrouter/OpenRouterConfig.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openrouter/OpenRouterConfig.js +9 -16
- package/build/src/core/infrastructure/ai/llm/providers/openrouter/OpenRouterConfig.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openrouter/OpenRouterService.js +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openrouter/OpenRouterService.js.map +1 -1
- package/build/src/core/infrastructure/ai/tools/executors/FunctionToolExecutor.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/tools/executors/FunctionToolExecutor.js +1 -0
- package/build/src/core/infrastructure/ai/tools/executors/FunctionToolExecutor.js.map +1 -1
- package/build/src/core/infrastructure/ai/tools/implementations/images/ImageEditingTool.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/tools/implementations/images/ImageEditingTool.js +11 -3
- package/build/src/core/infrastructure/ai/tools/implementations/images/ImageEditingTool.js.map +1 -1
- package/build/src/core/infrastructure/ai/tools/implementations/images/ImageGenerationToolService.js +1 -1
- package/build/src/core/infrastructure/ai/tools/implementations/images/ImageGenerationToolService.js.map +1 -1
- package/build/src/core/infrastructure/ai/tools/implementations/images/ImageOutputToolProperties.d.ts +1 -1
- package/build/src/core/infrastructure/ai/tools/implementations/images/schemas.d.ts +4 -4
- package/build/src/core/infrastructure/ai/tools/implementations/images/schemas.js +3 -3
- package/build/src/core/infrastructure/ai/tools/implementations/images/schemas.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/controllers/media/ImageEditingController.d.ts +2 -0
- package/build/src/core/infrastructure/api/v1/controllers/media/ImageEditingController.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/controllers/media/ImageEditingController.js +18 -6
- package/build/src/core/infrastructure/api/v1/controllers/media/ImageEditingController.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/controllers/media/SpeechController.d.ts +1 -0
- package/build/src/core/infrastructure/api/v1/controllers/media/SpeechController.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/controllers/media/SpeechController.js +3 -0
- package/build/src/core/infrastructure/api/v1/controllers/media/SpeechController.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/openapi/coreSchemas.d.ts +32 -12
- package/build/src/core/infrastructure/api/v1/openapi/coreSchemas.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/openapi/coreSchemas.js +8 -8
- package/build/src/core/infrastructure/api/v1/openapi/coreSchemas.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/requests/images/ImageEditRequestSchema.d.ts +6 -1
- package/build/src/core/infrastructure/api/v1/requests/images/ImageEditRequestSchema.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/requests/images/ImageEditRequestSchema.js +8 -1
- package/build/src/core/infrastructure/api/v1/requests/images/ImageEditRequestSchema.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/requests/images/ImageGenerationRequestSchema.d.ts +1 -1
- package/build/src/core/infrastructure/api/v1/requests/images/ImageOutputOptionsSchema.d.ts +1 -1
- package/build/src/core/infrastructure/api/v1/requests/runs/CreateRunRequestSchema.d.ts +5 -0
- package/build/src/core/infrastructure/api/v1/requests/runs/CreateRunRequestSchema.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/requests/runs/CreateRunRequestSchema.js +5 -0
- package/build/src/core/infrastructure/api/v1/requests/runs/CreateRunRequestSchema.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/conversations/openapi/ConversationsRouter.openapi.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/conversations/openapi/ConversationsRouter.openapi.js +4 -1
- package/build/src/core/infrastructure/api/v1/routers/conversations/openapi/ConversationsRouter.openapi.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/media/audio/SpeechRouter.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/media/audio/SpeechRouter.js +1 -0
- package/build/src/core/infrastructure/api/v1/routers/media/audio/SpeechRouter.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/media/audio/openapi/SpeechRouter.openapi.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/media/audio/openapi/SpeechRouter.openapi.js +15 -0
- package/build/src/core/infrastructure/api/v1/routers/media/audio/openapi/SpeechRouter.openapi.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/media/images/ImagesRouter.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/media/images/ImagesRouter.js +1 -0
- package/build/src/core/infrastructure/api/v1/routers/media/images/ImagesRouter.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/media/images/ImagesRouter.openapi.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/media/images/ImagesRouter.openapi.js +11 -2
- package/build/src/core/infrastructure/api/v1/routers/media/images/ImagesRouter.openapi.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/media/live/openapi/VoiceSessionHttpSchemas.d.ts +1 -0
- package/build/src/core/infrastructure/api/v1/routers/media/live/openapi/VoiceSessionHttpSchemas.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/media/live/openapi/VoiceSessionHttpSchemas.js +1 -0
- package/build/src/core/infrastructure/api/v1/routers/media/live/openapi/VoiceSessionHttpSchemas.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/media/shared/openapi/MediaHttpExamples.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/media/shared/openapi/MediaHttpExamples.js +37 -25
- package/build/src/core/infrastructure/api/v1/routers/media/shared/openapi/MediaHttpExamples.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/runs/openapi/DurableRunSchemas.openapi.d.ts +5 -0
- package/build/src/core/infrastructure/api/v1/routers/runs/openapi/DurableRunSchemas.openapi.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/runs/openapi/RunsRouter.openapi.d.ts +24 -9
- package/build/src/core/infrastructure/api/v1/routers/runs/openapi/RunsRouter.openapi.d.ts.map +1 -1
- package/build/src/core/infrastructure/di/builtInLLMProviders.d.ts.map +1 -1
- package/build/src/core/infrastructure/di/builtInLLMProviders.js +4 -3
- package/build/src/core/infrastructure/di/builtInLLMProviders.js.map +1 -1
- package/build/src/core/infrastructure/di/index.d.ts.map +1 -1
- package/build/src/core/infrastructure/di/index.js +12 -2
- package/build/src/core/infrastructure/di/index.js.map +1 -1
- package/build/src/core/infrastructure/di/types.d.ts +3 -1
- package/build/src/core/infrastructure/di/types.d.ts.map +1 -1
- package/build/src/core/infrastructure/di/types.js +3 -1
- package/build/src/core/infrastructure/di/types.js.map +1 -1
- package/build/src/core/infrastructure/models/chat/completions/ChatCompletion.d.ts +1 -0
- package/build/src/core/infrastructure/models/chat/completions/ChatCompletion.d.ts.map +1 -1
- package/build/src/core/infrastructure/models/chat/completions/ChatCompletionMessageCodec.d.ts +1 -0
- package/build/src/core/infrastructure/models/chat/completions/ChatCompletionMessageCodec.d.ts.map +1 -1
- package/build/src/core/infrastructure/models/chat/completions/ChatCompletionResponseValidator.d.ts +4 -1
- package/build/src/core/infrastructure/models/chat/completions/ChatCompletionResponseValidator.d.ts.map +1 -1
- package/build/src/core/infrastructure/models/chat/completions/ChatCompletionResponseValidator.js +16 -14
- package/build/src/core/infrastructure/models/chat/completions/ChatCompletionResponseValidator.js.map +1 -1
- package/build/src/core/infrastructure/models/chat/completions/FetchChatCompletionResponse.d.ts +2 -1
- package/build/src/core/infrastructure/models/chat/completions/FetchChatCompletionResponse.d.ts.map +1 -1
- package/build/src/core/infrastructure/models/chat/completions/FetchChatCompletionResponse.js +2 -2
- package/build/src/core/infrastructure/models/chat/completions/FetchChatCompletionResponse.js.map +1 -1
- package/build/src/core/infrastructure/models/chat/completions/OpenAICompatibleChatCompletionProtocol.d.ts +3 -1
- package/build/src/core/infrastructure/models/chat/completions/OpenAICompatibleChatCompletionProtocol.d.ts.map +1 -1
- package/build/src/core/infrastructure/models/chat/completions/OpenAICompatibleChatCompletionProtocol.js +4 -1
- package/build/src/core/infrastructure/models/chat/completions/OpenAICompatibleChatCompletionProtocol.js.map +1 -1
- package/build/src/core/infrastructure/persistence/repositories/media/KnexMediaReferenceRecorder.d.ts.map +1 -1
- package/build/src/core/infrastructure/persistence/repositories/media/KnexMediaReferenceRecorder.js +13 -0
- package/build/src/core/infrastructure/persistence/repositories/media/KnexMediaReferenceRecorder.js.map +1 -1
- package/build/src/core/infrastructure/persistence/repositories/voice/KnexVoiceMediaLease.d.ts.map +1 -1
- package/build/src/core/infrastructure/persistence/repositories/voice/KnexVoiceMediaLease.js +2 -1
- package/build/src/core/infrastructure/persistence/repositories/voice/KnexVoiceMediaLease.js.map +1 -1
- package/build/src/core/infrastructure/persistence/repositories/voice/KnexVoiceSessionRepository.d.ts +4 -2
- package/build/src/core/infrastructure/persistence/repositories/voice/KnexVoiceSessionRepository.d.ts.map +1 -1
- package/build/src/core/infrastructure/persistence/repositories/voice/KnexVoiceSessionRepository.js +28 -11
- package/build/src/core/infrastructure/persistence/repositories/voice/KnexVoiceSessionRepository.js.map +1 -1
- package/build/src/core/infrastructure/services/chat/ChatCompletionStreamService.d.ts.map +1 -1
- package/build/src/core/infrastructure/services/chat/ChatCompletionStreamService.js +2 -0
- package/build/src/core/infrastructure/services/chat/ChatCompletionStreamService.js.map +1 -1
- package/build/src/core/infrastructure/services/media/ImageEditInputServiceImpl.d.ts +1 -0
- package/build/src/core/infrastructure/services/media/ImageEditInputServiceImpl.d.ts.map +1 -1
- package/build/src/core/infrastructure/services/media/ImageEditInputServiceImpl.js +44 -0
- package/build/src/core/infrastructure/services/media/ImageEditInputServiceImpl.js.map +1 -1
- package/build/src/core/infrastructure/services/media/PngAnimation.d.ts +3 -0
- package/build/src/core/infrastructure/services/media/PngAnimation.d.ts.map +1 -0
- package/build/src/core/infrastructure/services/media/PngAnimation.js +12 -0
- package/build/src/core/infrastructure/services/media/PngAnimation.js.map +1 -0
- package/build/src/core/infrastructure/services/media/SafeHttpRemoteMediaFetcher.d.ts +2 -0
- package/build/src/core/infrastructure/services/media/SafeHttpRemoteMediaFetcher.d.ts.map +1 -1
- package/build/src/core/infrastructure/services/media/SafeHttpRemoteMediaFetcher.js +19 -3
- package/build/src/core/infrastructure/services/media/SafeHttpRemoteMediaFetcher.js.map +1 -1
- package/build/src/core/infrastructure/services/runs/approval/DefaultRunApprovalService.d.ts +0 -2
- package/build/src/core/infrastructure/services/runs/approval/DefaultRunApprovalService.d.ts.map +1 -1
- package/build/src/core/infrastructure/services/runs/approval/DefaultRunApprovalService.js +19 -26
- package/build/src/core/infrastructure/services/runs/approval/DefaultRunApprovalService.js.map +1 -1
- package/build/src/core/infrastructure/services/runs/approval/resolveToolApprovalPolicy.d.ts +8 -0
- package/build/src/core/infrastructure/services/runs/approval/resolveToolApprovalPolicy.d.ts.map +1 -0
- package/build/src/core/infrastructure/services/runs/approval/resolveToolApprovalPolicy.js +18 -0
- package/build/src/core/infrastructure/services/runs/approval/resolveToolApprovalPolicy.js.map +1 -0
- package/build/src/core/infrastructure/services/security/AssuranceEvaluationServiceImpl.d.ts +2 -1
- package/build/src/core/infrastructure/services/security/AssuranceEvaluationServiceImpl.d.ts.map +1 -1
- package/build/src/core/infrastructure/services/security/AssuranceEvaluationServiceImpl.js +23 -18
- package/build/src/core/infrastructure/services/security/AssuranceEvaluationServiceImpl.js.map +1 -1
- package/build/src/core/infrastructure/services/voice/media/VoiceMediaWorkerSession.d.ts +1 -1
- package/build/src/core/infrastructure/services/voice/media/VoiceMediaWorkerSession.d.ts.map +1 -1
- package/build/src/core/infrastructure/services/voice/media/VoiceMediaWorkerSession.js +2 -1
- package/build/src/core/infrastructure/services/voice/media/VoiceMediaWorkerSession.js.map +1 -1
- package/build/src/infrastructure/api/openapi/root.openapi.js +1 -1
- package/build/src/infrastructure/api/openapi/root.openapi.js.map +1 -1
- package/build/src/infrastructure/server/cors.d.ts.map +1 -1
- package/build/src/infrastructure/server/cors.js +0 -1
- package/build/src/infrastructure/server/cors.js.map +1 -1
- package/build/src/infrastructure/websockets/commands/realtime/WebsocketRealtimeTranslationCommand.d.ts.map +1 -1
- package/build/src/infrastructure/websockets/commands/realtime/WebsocketRealtimeTranslationCommand.js +18 -7
- package/build/src/infrastructure/websockets/commands/realtime/WebsocketRealtimeTranslationCommand.js.map +1 -1
- package/build/src/infrastructure/websockets/mediators/WebsocketMediator.d.ts +1 -0
- package/build/src/infrastructure/websockets/mediators/WebsocketMediator.d.ts.map +1 -1
- package/build/src/infrastructure/websockets/mediators/WebsocketMediator.js +20 -1
- package/build/src/infrastructure/websockets/mediators/WebsocketMediator.js.map +1 -1
- package/build/src/infrastructure/workers/voice/startVoiceMediaHostFromContainer.d.ts.map +1 -1
- package/build/src/infrastructure/workers/voice/startVoiceMediaHostFromContainer.js +4 -1
- package/build/src/infrastructure/workers/voice/startVoiceMediaHostFromContainer.js.map +1 -1
- package/build/src/modules/admin/infrastructure/api/v1/AdminController.d.ts +2 -0
- package/build/src/modules/admin/infrastructure/api/v1/AdminController.d.ts.map +1 -1
- package/build/src/modules/admin/infrastructure/api/v1/AdminController.js +18 -3
- package/build/src/modules/admin/infrastructure/api/v1/AdminController.js.map +1 -1
- package/build/src/modules/admin/infrastructure/api/v1/AdminRouter.d.ts.map +1 -1
- package/build/src/modules/admin/infrastructure/api/v1/AdminRouter.js +1 -0
- package/build/src/modules/admin/infrastructure/api/v1/AdminRouter.js.map +1 -1
- package/build/src/modules/admin/infrastructure/api/v1/openapi/AdminExamples.openapi.d.ts.map +1 -1
- package/build/src/modules/admin/infrastructure/api/v1/openapi/AdminExamples.openapi.js +3 -0
- package/build/src/modules/admin/infrastructure/api/v1/openapi/AdminExamples.openapi.js.map +1 -1
- package/build/src/modules/admin/infrastructure/api/v1/openapi/AdminRouter.openapi.d.ts.map +1 -1
- package/build/src/modules/admin/infrastructure/api/v1/openapi/AdminRouter.openapi.js +18 -0
- package/build/src/modules/admin/infrastructure/api/v1/openapi/AdminRouter.openapi.js.map +1 -1
- package/build/src/modules/code-review/infrastructure/auth/GitHubActionsWorkflowApprovalConfig.d.ts.map +1 -1
- package/build/src/modules/code-review/infrastructure/auth/GitHubActionsWorkflowApprovalConfig.js +17 -45
- package/build/src/modules/code-review/infrastructure/auth/GitHubActionsWorkflowApprovalConfig.js.map +1 -1
- package/build/src/modules/code-review/infrastructure/persistence/repositories/KnexCodeReviewRepository.d.ts.map +1 -1
- package/build/src/modules/code-review/infrastructure/persistence/repositories/KnexCodeReviewRepository.js +8 -2
- package/build/src/modules/code-review/infrastructure/persistence/repositories/KnexCodeReviewRepository.js.map +1 -1
- package/package.json +3 -3
- package/resources/prompts/live-conversation.md +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsConfig.d.ts +0 -3
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsConfig.d.ts.map +0 -1
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsConfig.js +0 -64
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsConfig.js.map +0 -1
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsLLMProvider.d.ts +0 -26
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsLLMProvider.d.ts.map +0 -1
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsLLMProvider.js +0 -121
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsLLMProvider.js.map +0 -1
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsService.d.ts +0 -18
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsService.d.ts.map +0 -1
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsService.js +0 -73
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsService.js.map +0 -1
|
@@ -1,147 +1,27 @@
|
|
|
1
1
|
export const nvidiaModelInfo = [
|
|
2
2
|
{
|
|
3
|
-
id:
|
|
4
|
-
providerModel:
|
|
5
|
-
displayName:
|
|
6
|
-
provider: `Nvidia`,
|
|
7
|
-
type: 'llm',
|
|
8
|
-
defaultSettings: { maxTokens: 500, temperature: 0.7 }
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
id: `nvidia/google/gemma-7b`,
|
|
12
|
-
providerModel: `google/gemma-7b`,
|
|
13
|
-
displayName: `Gemma 7B (Nvidia)`,
|
|
14
|
-
provider: `Nvidia`,
|
|
15
|
-
type: 'llm',
|
|
16
|
-
defaultSettings: { maxTokens: 500, temperature: 0.7 }
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
id: `nvidia/google/gemma-2b`,
|
|
20
|
-
providerModel: `google/gemma-2b`,
|
|
21
|
-
displayName: `Gemma 2B (Nvidia)`,
|
|
22
|
-
provider: `Nvidia`,
|
|
23
|
-
type: 'llm',
|
|
24
|
-
defaultSettings: { maxTokens: 500, temperature: 0.7 }
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
id: `nvidia/google/codegemma-7b`,
|
|
28
|
-
providerModel: `google/codegemma-7b`,
|
|
29
|
-
displayName: `CodeGemma 7B (Nvidia)`,
|
|
30
|
-
provider: `Nvidia`,
|
|
31
|
-
type: 'llm',
|
|
32
|
-
defaultSettings: { maxTokens: 1024, temperature: 0.2 }
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
id: `nvidia/google/recurrentgemma-2b`,
|
|
36
|
-
providerModel: `google/recurrentgemma-2b`,
|
|
37
|
-
displayName: `RecurrentGemma 2B (Nvidia)`,
|
|
38
|
-
provider: `Nvidia`,
|
|
39
|
-
type: 'llm',
|
|
40
|
-
defaultSettings: { maxTokens: 1024, temperature: 0.2 }
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
id: `nvidia/meta/llama3-70b-instruct`,
|
|
44
|
-
providerModel: `meta/llama3-70b-instruct`,
|
|
45
|
-
displayName: `Llama3 70B Instruct (Nvidia)`,
|
|
46
|
-
provider: `Nvidia`,
|
|
47
|
-
type: 'llm',
|
|
48
|
-
defaultSettings: { maxTokens: 1024, temperature: 0.2 }
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
id: `nvidia/meta/llama3-8b-instruct`,
|
|
52
|
-
providerModel: `meta/llama3-8b-instruct`,
|
|
53
|
-
displayName: `Llama3 8B Instruct (Nvidia)`,
|
|
54
|
-
provider: `Nvidia`,
|
|
55
|
-
type: 'llm',
|
|
56
|
-
defaultSettings: { maxTokens: 1024, temperature: 0.2 }
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
id: `nvidia/snowflake/arctic`,
|
|
60
|
-
providerModel: `snowflake/arctic`,
|
|
61
|
-
displayName: `Arctic (Nvidia)`,
|
|
62
|
-
provider: `Nvidia`,
|
|
63
|
-
type: 'llm',
|
|
64
|
-
defaultSettings: { maxTokens: 1024, temperature: 0.2 }
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
id: `nvidia/microsoft/phi-3-mini-128k-instruct`,
|
|
68
|
-
providerModel: `microsoft/phi-3-mini-128k-instruct`,
|
|
69
|
-
displayName: `Phi 3 Mini 128K Instruct (Nvidia)`,
|
|
70
|
-
provider: `Nvidia`,
|
|
71
|
-
type: 'llm',
|
|
72
|
-
defaultSettings: { maxTokens: 1024, temperature: 0.2 }
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
id: `nvidia/mistralai/mixtral-8x22b-instruct-v0.1`,
|
|
76
|
-
providerModel: `mistralai/mixtral-8x22b-instruct-v0.1`,
|
|
77
|
-
displayName: `Mixtral 8x22B Instruct v0.1 (Nvidia)`,
|
|
78
|
-
provider: `Nvidia`,
|
|
79
|
-
type: 'llm',
|
|
80
|
-
defaultSettings: { maxTokens: 1024, temperature: 0.2 }
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
id: `nvidia/nemotron-4-340b-instruct`,
|
|
84
|
-
providerModel: `nvidia/nemotron-4-340b-instruct`,
|
|
85
|
-
displayName: `Nemotron 4 340B Instruct (Nvidia)`,
|
|
86
|
-
provider: `Nvidia`,
|
|
87
|
-
type: 'llm',
|
|
88
|
-
defaultSettings: { maxTokens: 1024, temperature: 0.2 }
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
id: `nvidia/google/gemma-2-27b-it`,
|
|
92
|
-
providerModel: `google/gemma-2-27b-it`,
|
|
93
|
-
displayName: `Gemma 2 27B IT (Nvidia)`,
|
|
94
|
-
provider: 'Nvidia',
|
|
95
|
-
type: 'llm',
|
|
96
|
-
defaultSettings: { maxTokens: 1024, temperature: 0.2 }
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
id: `nvidia/google/gemma-2-9b-it`,
|
|
100
|
-
providerModel: `google/gemma-2-9b-it`,
|
|
101
|
-
displayName: `Gemma 2 9B IT (Nvidia)`,
|
|
102
|
-
provider: 'Nvidia',
|
|
103
|
-
type: 'llm',
|
|
104
|
-
defaultSettings: { maxTokens: 1024, temperature: 0.2 }
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
id: 'nvidia/meta/llama-3.1-405b-instruct',
|
|
108
|
-
providerModel: 'meta/llama-3.1-405b-instruct',
|
|
109
|
-
displayName: 'Llama 3.1 405B Instruct (Nvidia)',
|
|
110
|
-
provider: 'Nvidia',
|
|
111
|
-
type: 'llm',
|
|
112
|
-
defaultSettings: { maxTokens: 1024, temperature: 0.2 }
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
id: 'nvidia/meta/llama-3.1-8b-instruct',
|
|
116
|
-
providerModel: 'meta/llama-3.1-8b-instruct',
|
|
117
|
-
displayName: 'Llama 3.1 8B Instruct (Nvidia)',
|
|
3
|
+
id: 'nvidia/nvidia/nemotron-3.5-lightning-30b-a3b',
|
|
4
|
+
providerModel: 'nvidia/nemotron-3.5-lightning-30b-a3b',
|
|
5
|
+
displayName: 'Nemotron 3.5 Lightning',
|
|
118
6
|
provider: 'Nvidia',
|
|
119
7
|
type: 'llm',
|
|
120
|
-
defaultSettings: { maxTokens: 1024, temperature: 0.2 }
|
|
8
|
+
defaultSettings: { maxTokens: 1024, temperature: 0.2 },
|
|
121
9
|
},
|
|
122
10
|
{
|
|
123
|
-
id: 'nvidia/
|
|
124
|
-
providerModel: '
|
|
125
|
-
displayName: '
|
|
11
|
+
id: 'nvidia/nvidia/nemotron-3.5-bolt-e4b',
|
|
12
|
+
providerModel: 'nvidia/nemotron-3.5-bolt-e4b',
|
|
13
|
+
displayName: 'Nemotron 3.5 Bolt',
|
|
126
14
|
provider: 'Nvidia',
|
|
127
15
|
type: 'llm',
|
|
128
|
-
defaultSettings: { maxTokens: 1024, temperature: 0.2 }
|
|
16
|
+
defaultSettings: { maxTokens: 1024, temperature: 0.2 },
|
|
129
17
|
},
|
|
130
18
|
{
|
|
131
|
-
id: 'nvidia/
|
|
132
|
-
providerModel: '
|
|
133
|
-
displayName: '
|
|
19
|
+
id: 'nvidia/nvidia/nemotron-3.5-super-vl-120b-a12b',
|
|
20
|
+
providerModel: 'nvidia/nemotron-3.5-super-vl-120b-a12b',
|
|
21
|
+
displayName: 'Nemotron 3.5 Super VL',
|
|
134
22
|
provider: 'Nvidia',
|
|
135
23
|
type: 'llm',
|
|
136
|
-
defaultSettings: { maxTokens: 1024, temperature: 0.2 }
|
|
24
|
+
defaultSettings: { maxTokens: 1024, temperature: 0.2 },
|
|
137
25
|
},
|
|
138
|
-
{
|
|
139
|
-
id: 'nvidia/deepseek-ai/deepseek-r1',
|
|
140
|
-
providerModel: 'nvidia/deepseek-ai/deepseek-r1',
|
|
141
|
-
displayName: 'DeepSeek R1 (Nvidia)',
|
|
142
|
-
provider: 'Nvidia',
|
|
143
|
-
type: 'llm',
|
|
144
|
-
defaultSettings: { maxTokens: 1024, temperature: 0.2 }
|
|
145
|
-
}
|
|
146
26
|
];
|
|
147
27
|
//# sourceMappingURL=NvidiaConfig.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NvidiaConfig.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/llm/providers/nvidia/NvidiaConfig.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAc;IACxC;QACE,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"NvidiaConfig.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/llm/providers/nvidia/NvidiaConfig.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAc;IACxC;QACE,EAAE,EAAE,8CAA8C;QAClD,aAAa,EAAE,uCAAuC;QACtD,WAAW,EAAE,wBAAwB;QACrC,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,KAAK;QACX,eAAe,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE;KACvD;IACD;QACE,EAAE,EAAE,qCAAqC;QACzC,aAAa,EAAE,8BAA8B;QAC7C,WAAW,EAAE,mBAAmB;QAChC,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,KAAK;QACX,eAAe,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE;KACvD;IACD;QACE,EAAE,EAAE,+CAA+C;QACnD,aAAa,EAAE,wCAAwC;QACvD,WAAW,EAAE,uBAAuB;QACpC,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,KAAK;QACX,eAAe,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE;KACvD;CACF,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ConfigService } from "@gaia-framework/config";
|
|
2
|
+
import type { ChatCompletion, ChatCompletionMessageParam } from "openai/resources/chat/completions.js";
|
|
3
|
+
import type { LLMInfo } from "../../../../../domain/models/llms/LLMInfo.js";
|
|
4
|
+
import type { LLMResponseOptions } from "../../../../../domain/ports/ai/llm/LLMProvider.js";
|
|
5
|
+
import type { LoggerService } from "../../../../../domain/ports/services/LoggerService.js";
|
|
6
|
+
import type { OpenAICompatibleChatCompletionChunk } from "../../../../models/chat/completions/OpenAICompatibleChatCompletionProtocol.js";
|
|
7
|
+
import type { ToolProcessor } from "../../../tools/processing/ToolProcessor.js";
|
|
8
|
+
import type { LocalLLMChatAdapter } from "../local/LocalLLMChatProviderService.js";
|
|
9
|
+
export declare class OllamaCloudService implements LocalLLMChatAdapter {
|
|
10
|
+
private readonly logger;
|
|
11
|
+
private readonly config;
|
|
12
|
+
private readonly toolProcessor;
|
|
13
|
+
readonly providerId = "ollama-cloud";
|
|
14
|
+
readonly preserveToolCallReasoning = true;
|
|
15
|
+
private readonly details;
|
|
16
|
+
private readonly apiKey?;
|
|
17
|
+
private readonly timeout;
|
|
18
|
+
private readonly defaultContextLength;
|
|
19
|
+
private client?;
|
|
20
|
+
private catalog?;
|
|
21
|
+
private loadingCatalog?;
|
|
22
|
+
constructor(logger: LoggerService, config: ConfigService, toolProcessor: ToolProcessor);
|
|
23
|
+
getModels(filter?: string): Promise<LLMInfo[]>;
|
|
24
|
+
isValidModel(model: string): Promise<boolean>;
|
|
25
|
+
getModelInfo(model: string): Promise<LLMInfo>;
|
|
26
|
+
validateRequest(model: LLMInfo, options: LLMResponseOptions): Promise<void>;
|
|
27
|
+
validateSettings(model: LLMInfo, settings?: LLMResponseOptions["settings"]): void;
|
|
28
|
+
complete(messages: readonly ChatCompletionMessageParam[], model: LLMInfo, options: LLMResponseOptions): Promise<ChatCompletion>;
|
|
29
|
+
stream(messages: readonly ChatCompletionMessageParam[], model: LLMInfo, options: LLMResponseOptions): Promise<AsyncIterable<OpenAICompatibleChatCompletionChunk>>;
|
|
30
|
+
private chatParams;
|
|
31
|
+
private requestOptions;
|
|
32
|
+
private isConfigured;
|
|
33
|
+
private getClient;
|
|
34
|
+
private metadata;
|
|
35
|
+
private getTags;
|
|
36
|
+
private loadTags;
|
|
37
|
+
private cachedDetails;
|
|
38
|
+
private modelInfo;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=OllamaCloudService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OllamaCloudService.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/llm/providers/ollama/OllamaCloudService.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAuB,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAG5H,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8CAA8C,CAAC;AAE5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mDAAmD,CAAC;AAC5F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAC;AAG3F,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,+EAA+E,CAAC;AACzI,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAEhF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAmBnF,qBACa,kBAAmB,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CAAC,aAAa,CAAC,mCAAmC,CAAC,CAAC;IAavK,OAAO,CAAC,UAAU;IAwBlB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,SAAS;YAiBH,QAAQ;IAYtB,OAAO,CAAC,OAAO;YAMD,QAAQ;IAYtB,OAAO,CAAC,aAAa;IAKrB,OAAO,CAAC,SAAS;CAmBlB"}
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
+
};
|
|
13
|
+
import { inject, injectable } from "inversify";
|
|
14
|
+
import { AIExecutionFailure, classifyAIExecutionFailure, createAIExecutionFailure } from "../../../../../domain/errors/AIExecutionFailure.js";
|
|
15
|
+
import { LLMResponseIncompleteError } from "../../../../../domain/errors/LLMResponseIncompleteError.js";
|
|
16
|
+
import CoreTypes from "../../../../di/types.js";
|
|
17
|
+
import { normalizeProviderImageUrl } from "../../../../mappers/chat/normalizeProviderImageUrl.js";
|
|
18
|
+
import { delegatedOutputCap, modelRequestOptions } from "../../execution/ModelRequestPolicy.js";
|
|
19
|
+
import { OpenAIClient } from "../openai/OpenAIClient.js";
|
|
20
|
+
const CLOUD_ORIGIN = "https://ollama.com";
|
|
21
|
+
const CONFIG = "ai.llm.providers.ollama-cloud";
|
|
22
|
+
const TAG_CACHE_MS = 60_000;
|
|
23
|
+
let OllamaCloudService = class OllamaCloudService {
|
|
24
|
+
logger;
|
|
25
|
+
config;
|
|
26
|
+
toolProcessor;
|
|
27
|
+
providerId = "ollama-cloud";
|
|
28
|
+
preserveToolCallReasoning = true;
|
|
29
|
+
details = new Map();
|
|
30
|
+
apiKey;
|
|
31
|
+
timeout;
|
|
32
|
+
defaultContextLength;
|
|
33
|
+
client;
|
|
34
|
+
catalog;
|
|
35
|
+
loadingCatalog;
|
|
36
|
+
constructor(logger, config, toolProcessor) {
|
|
37
|
+
this.logger = logger;
|
|
38
|
+
this.config = config;
|
|
39
|
+
this.toolProcessor = toolProcessor;
|
|
40
|
+
this.apiKey = config.getOptionalString(`${CONFIG}.apiKey`)?.trim();
|
|
41
|
+
this.timeout = config.getNumber(`${CONFIG}.requestTimeoutMs`);
|
|
42
|
+
this.defaultContextLength = config.getNumber(`${CONFIG}.defaultContextLength`);
|
|
43
|
+
}
|
|
44
|
+
async getModels(filter) {
|
|
45
|
+
if (!this.isConfigured())
|
|
46
|
+
return [];
|
|
47
|
+
try {
|
|
48
|
+
const search = filter?.trim().toLowerCase();
|
|
49
|
+
return (await this.getTags())
|
|
50
|
+
.filter(tag => !search || tag.name.toLowerCase().includes(search))
|
|
51
|
+
.map(tag => this.modelInfo(tag, this.cachedDetails(tag)));
|
|
52
|
+
}
|
|
53
|
+
catch (error) {
|
|
54
|
+
this.logger.warn(`Ollama Cloud catalog unavailable category=${classifyAIExecutionFailure(error).category}`);
|
|
55
|
+
return [];
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
async isValidModel(model) {
|
|
59
|
+
return model.startsWith("ollama-cloud/")
|
|
60
|
+
&& (await this.getModels()).some(candidate => candidate.id === model);
|
|
61
|
+
}
|
|
62
|
+
async getModelInfo(model) {
|
|
63
|
+
const prefix = "ollama-cloud/";
|
|
64
|
+
if (!this.isConfigured() || !model.startsWith(prefix))
|
|
65
|
+
throw createAIExecutionFailure("provider_model_unavailable");
|
|
66
|
+
const tag = (await this.getTags()).find(candidate => candidate.name === model.slice(prefix.length));
|
|
67
|
+
if (!tag)
|
|
68
|
+
throw createAIExecutionFailure("provider_model_unavailable");
|
|
69
|
+
let details = this.cachedDetails(tag);
|
|
70
|
+
if (!details) {
|
|
71
|
+
try {
|
|
72
|
+
details = await this.metadata("/api/show", { model: tag.name });
|
|
73
|
+
if (tag.digest)
|
|
74
|
+
this.details.set(tag.name, { digest: tag.digest, details });
|
|
75
|
+
}
|
|
76
|
+
catch (error) {
|
|
77
|
+
// Tags already established the model's chat capabilities. Show adds context and named efforts.
|
|
78
|
+
this.logger.warn(`Ollama Cloud model details unavailable category=${classifyAIExecutionFailure(error).category}`);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return this.modelInfo(tag, details);
|
|
82
|
+
}
|
|
83
|
+
async validateRequest(model, options) {
|
|
84
|
+
if (options.outputSchema || options.outputFormat) {
|
|
85
|
+
throw rejectedCloudRequest("Ollama Cloud does not support structured outputs.");
|
|
86
|
+
}
|
|
87
|
+
if (!model.supportsTools && this.toolProcessor.toTools(options.tools).length) {
|
|
88
|
+
throw rejectedCloudRequest("The selected Ollama Cloud model does not support tools.");
|
|
89
|
+
}
|
|
90
|
+
for (const message of options.messages) {
|
|
91
|
+
for (const item of message.content) {
|
|
92
|
+
if (item.type === "image")
|
|
93
|
+
validateCloudImage(model, normalizeProviderImageUrl(item.url));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
this.validateSettings(model, options.settings);
|
|
97
|
+
}
|
|
98
|
+
validateSettings(model, settings) {
|
|
99
|
+
const effort = settings?.reasoningEffort;
|
|
100
|
+
if (!effort || (!model.supportsReasoning && effort === "none"))
|
|
101
|
+
return;
|
|
102
|
+
if (!model.supportsReasoning || !model.supportedReasoningEfforts?.includes(effort)) {
|
|
103
|
+
throw rejectedCloudRequest("The selected Ollama Cloud model does not support the requested reasoning effort.");
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
async complete(messages, model, options) {
|
|
107
|
+
const params = this.chatParams(messages, model, options);
|
|
108
|
+
const request = this.requestOptions(options);
|
|
109
|
+
try {
|
|
110
|
+
const response = await this.getClient().chat.completions.create({ ...params, stream: false }, request);
|
|
111
|
+
const choice = response.choices[0];
|
|
112
|
+
if (!choice || (!choice.message.content && !choice.message.tool_calls?.length)
|
|
113
|
+
|| (options.requireCompleteOutput && choice.finish_reason !== "stop" && choice.finish_reason !== "tool_calls")) {
|
|
114
|
+
throw new LLMResponseIncompleteError("Ollama Cloud returned an incomplete chat response");
|
|
115
|
+
}
|
|
116
|
+
return response;
|
|
117
|
+
}
|
|
118
|
+
catch (error) {
|
|
119
|
+
throw cloudError(error, request.signal);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
async stream(messages, model, options) {
|
|
123
|
+
const params = this.chatParams(messages, model, options);
|
|
124
|
+
const request = this.requestOptions(options);
|
|
125
|
+
try {
|
|
126
|
+
const stream = await this.getClient().chat.completions.create({
|
|
127
|
+
...params, stream: true, stream_options: { include_usage: true },
|
|
128
|
+
}, request);
|
|
129
|
+
return readCloudStream(stream, request.signal);
|
|
130
|
+
}
|
|
131
|
+
catch (error) {
|
|
132
|
+
throw cloudError(error, request.signal);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
chatParams(messages, model, options) {
|
|
136
|
+
if (options.outputSchema || options.outputFormat)
|
|
137
|
+
throw rejectedCloudRequest("Ollama Cloud does not support structured outputs.");
|
|
138
|
+
for (const message of messages) {
|
|
139
|
+
if (!Array.isArray(message.content))
|
|
140
|
+
continue;
|
|
141
|
+
for (const part of message.content) {
|
|
142
|
+
if (part.type === "image_url")
|
|
143
|
+
validateCloudImage(model, part.image_url.url);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
const settings = { ...model.defaultSettings, ...options.settings };
|
|
147
|
+
this.validateSettings(model, settings);
|
|
148
|
+
const tools = this.toolProcessor.toTools(options.tools);
|
|
149
|
+
return {
|
|
150
|
+
model: model.providerModel,
|
|
151
|
+
messages: [...messages],
|
|
152
|
+
tools: tools.length ? tools : undefined,
|
|
153
|
+
max_tokens: delegatedOutputCap(settings.maxTokens, options.toolExecutionContext),
|
|
154
|
+
temperature: settings.temperature,
|
|
155
|
+
top_p: settings.topP,
|
|
156
|
+
frequency_penalty: settings.frequencyPenalty,
|
|
157
|
+
presence_penalty: settings.presencePenalty,
|
|
158
|
+
reasoning_effort: model.supportsReasoning ? settings.reasoningEffort : undefined,
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
requestOptions(options) {
|
|
162
|
+
const timeout = AbortSignal.timeout(this.timeout);
|
|
163
|
+
const signal = options.abortSignal ? AbortSignal.any([timeout, options.abortSignal]) : timeout;
|
|
164
|
+
return { ...modelRequestOptions(signal, options.toolExecutionContext), signal };
|
|
165
|
+
}
|
|
166
|
+
isConfigured() {
|
|
167
|
+
return Boolean(this.apiKey) && this.config.getBoolean(`${CONFIG}.enabled`);
|
|
168
|
+
}
|
|
169
|
+
getClient() {
|
|
170
|
+
const apiKey = this.apiKey;
|
|
171
|
+
if (!apiKey || !this.isConfigured())
|
|
172
|
+
throw createAIExecutionFailure("provider_authentication_failed");
|
|
173
|
+
return this.client ??= new OpenAIClient({
|
|
174
|
+
apiKey, baseURL: `${CLOUD_ORIGIN}/v1`, logLevel: "off",
|
|
175
|
+
maxRetries: this.config.getNumber(`${CONFIG}.maximumRetries`), timeout: this.timeout,
|
|
176
|
+
// The SDK can inherit arbitrary OPENAI_CUSTOM_HEADERS. Only Ollama's credential belongs on this request.
|
|
177
|
+
fetch: (url, init) => {
|
|
178
|
+
if (String(url) !== `${CLOUD_ORIGIN}/v1/chat/completions`)
|
|
179
|
+
throw new Error("Unexpected Ollama Cloud endpoint.");
|
|
180
|
+
return fetch(url, {
|
|
181
|
+
...init, redirect: "error",
|
|
182
|
+
headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json", Accept: "application/json" },
|
|
183
|
+
});
|
|
184
|
+
},
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
async metadata(path, body) {
|
|
188
|
+
const response = await fetch(`${CLOUD_ORIGIN}${path}`, {
|
|
189
|
+
method: body ? "POST" : "GET", redirect: "error", signal: AbortSignal.timeout(this.timeout),
|
|
190
|
+
...(body && { headers: { "Content-Type": "application/json" }, body: JSON.stringify(body) }),
|
|
191
|
+
});
|
|
192
|
+
if (!response.ok) {
|
|
193
|
+
await response.body?.cancel();
|
|
194
|
+
throw cloudError({ status: response.status });
|
|
195
|
+
}
|
|
196
|
+
return response.json();
|
|
197
|
+
}
|
|
198
|
+
getTags() {
|
|
199
|
+
if (this.catalog && Date.now() < this.catalog.expiresAt)
|
|
200
|
+
return Promise.resolve(this.catalog.tags);
|
|
201
|
+
this.loadingCatalog ??= this.loadTags().finally(() => { this.loadingCatalog = undefined; });
|
|
202
|
+
return this.loadingCatalog;
|
|
203
|
+
}
|
|
204
|
+
async loadTags() {
|
|
205
|
+
const { models } = await this.metadata("/api/tags");
|
|
206
|
+
const tags = models.filter(tag => typeof tag.name === "string" && tag.name.length > 0
|
|
207
|
+
&& Array.isArray(tag.capabilities) && tag.capabilities.includes("completion"));
|
|
208
|
+
const digests = new Map(tags.map(tag => [tag.name, tag.digest]));
|
|
209
|
+
for (const [name, entry] of this.details) {
|
|
210
|
+
if (entry.digest !== digests.get(name))
|
|
211
|
+
this.details.delete(name);
|
|
212
|
+
}
|
|
213
|
+
this.catalog = { tags, expiresAt: Date.now() + TAG_CACHE_MS };
|
|
214
|
+
return tags;
|
|
215
|
+
}
|
|
216
|
+
cachedDetails(tag) {
|
|
217
|
+
const entry = this.details.get(tag.name);
|
|
218
|
+
return entry && entry.digest === tag.digest ? entry.details : undefined;
|
|
219
|
+
}
|
|
220
|
+
modelInfo(tag, details) {
|
|
221
|
+
const context = Object.entries(details?.model_info ?? {}).find(([key, value]) => key.endsWith(".context_length") && typeof value === "number" && Number.isSafeInteger(value) && value > 0)?.[1];
|
|
222
|
+
const maxContextLength = typeof context === "number" ? context : this.defaultContextLength;
|
|
223
|
+
const values = details?.thinking?.values;
|
|
224
|
+
const efforts = ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
225
|
+
const supported = values && efforts.filter(effort => values.includes(effort)
|
|
226
|
+
|| (effort === "none" && values.includes(false)) || (effort === "low" && values.includes(true)));
|
|
227
|
+
return {
|
|
228
|
+
id: `ollama-cloud/${tag.name}`, provider: this.providerId, providerModel: tag.model || tag.name,
|
|
229
|
+
displayName: tag.name, type: "llm", supportsInstructions: true,
|
|
230
|
+
supportsTools: tag.capabilities?.includes("tools") ?? false,
|
|
231
|
+
supportsReasoning: tag.capabilities?.includes("thinking") ?? false,
|
|
232
|
+
...(supported && { supportedReasoningEfforts: supported }),
|
|
233
|
+
inputModalities: tag.capabilities?.includes("vision") ? ["text", "image"] : ["text"],
|
|
234
|
+
outputModalities: ["text"], maxContextLength,
|
|
235
|
+
defaultSettings: { maxTokens: Math.min(2048, Math.max(1, Math.floor(maxContextLength / 2))) },
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
OllamaCloudService = __decorate([
|
|
240
|
+
injectable(),
|
|
241
|
+
__param(0, inject(CoreTypes.LoggerService)),
|
|
242
|
+
__param(1, inject(CoreTypes.ConfigService)),
|
|
243
|
+
__param(2, inject(CoreTypes.ToolProcessor)),
|
|
244
|
+
__metadata("design:paramtypes", [Object, Function, Function])
|
|
245
|
+
], OllamaCloudService);
|
|
246
|
+
export { OllamaCloudService };
|
|
247
|
+
async function* readCloudStream(stream, signal) {
|
|
248
|
+
try {
|
|
249
|
+
let terminal = false;
|
|
250
|
+
for await (const chunk of stream) {
|
|
251
|
+
if (!hasOnlyFunctionTools(chunk))
|
|
252
|
+
throw createAIExecutionFailure("provider_request_rejected");
|
|
253
|
+
terminal ||= Boolean(chunk.choices[0]?.finish_reason);
|
|
254
|
+
yield chunk;
|
|
255
|
+
}
|
|
256
|
+
signal.throwIfAborted();
|
|
257
|
+
if (!terminal)
|
|
258
|
+
throw new LLMResponseIncompleteError("Ollama Cloud stream ended without a finish reason");
|
|
259
|
+
}
|
|
260
|
+
catch (error) {
|
|
261
|
+
throw cloudError(error, signal);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
function hasOnlyFunctionTools(chunk) {
|
|
265
|
+
return chunk.choices.every(choice => choice.delta.tool_calls?.every(call => call.type === undefined || call.type === "function") !== false);
|
|
266
|
+
}
|
|
267
|
+
function rejectedCloudRequest(message) {
|
|
268
|
+
return new AIExecutionFailure({
|
|
269
|
+
code: "provider_request_rejected", category: "request_rejected", statusCode: 422, retryable: false, message,
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
function validateCloudImage(model, url) {
|
|
273
|
+
if (!model.inputModalities?.includes("image")) {
|
|
274
|
+
throw rejectedCloudRequest("The selected Ollama Cloud model does not support images.");
|
|
275
|
+
}
|
|
276
|
+
const match = /^data:image\/(?:jpeg|jpg|png|webp);base64,([A-Za-z0-9+/]+={0,2})$/.exec(url);
|
|
277
|
+
if (!match || match[1].length % 4 !== 0) {
|
|
278
|
+
throw rejectedCloudRequest("Ollama Cloud requires inline base64 image data in JPEG, PNG, or WebP format.");
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
function cloudError(error, signal) {
|
|
282
|
+
if (error instanceof LLMResponseIncompleteError && !signal?.aborted)
|
|
283
|
+
return error;
|
|
284
|
+
if (signal?.aborted)
|
|
285
|
+
return createAIExecutionFailure(signal.reason?.name === "TimeoutError" ? "provider_timeout" : "operation_cancelled");
|
|
286
|
+
const status = error && typeof error === "object" && "status" in error ? error.status : undefined;
|
|
287
|
+
if (status === 401)
|
|
288
|
+
return createAIExecutionFailure("provider_authentication_failed");
|
|
289
|
+
if (status === 403)
|
|
290
|
+
return createAIExecutionFailure("provider_access_denied");
|
|
291
|
+
if (status === 404)
|
|
292
|
+
return createAIExecutionFailure("provider_model_unavailable");
|
|
293
|
+
// SDK error bodies may echo inputs. Keep only the classified failure.
|
|
294
|
+
return createAIExecutionFailure(classifyAIExecutionFailure(error).code);
|
|
295
|
+
}
|
|
296
|
+
//# sourceMappingURL=OllamaCloudService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OllamaCloudService.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/llm/providers/ollama/OllamaCloudService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAI/C,OAAO,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,wBAAwB,EAAE,MAAM,oDAAoD,CAAC;AAC9I,OAAO,EAAE,0BAA0B,EAAE,MAAM,4DAA4D,CAAC;AAKxG,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,yBAAyB,EAAE,MAAM,uDAAuD,CAAC;AAGlG,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAEhG,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,MAAM,YAAY,GAAG,oBAAoB,CAAC;AAC1C,MAAM,MAAM,GAAG,+BAA+B,CAAC;AAC/C,MAAM,YAAY,GAAG,MAAM,CAAC;AAerB,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAYuB;IACA;IACA;IAb3C,UAAU,GAAG,cAAc,CAAC;IAC5B,yBAAyB,GAAG,IAAI,CAAC;IACzB,OAAO,GAAG,IAAI,GAAG,EAAqD,CAAC;IACvE,MAAM,CAAU;IAChB,OAAO,CAAS;IAChB,oBAAoB,CAAS;IACtC,MAAM,CAAU;IAChB,OAAO,CAA2C;IAClD,cAAc,CAAuB;IAE7C,YACoD,MAAqB,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AAC;IACD,MAAM,KAAK,GAAG,mEAAmE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC5F,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;QACxC,MAAM,oBAAoB,CAAC,8EAA8E,CAAC,CAAC;IAC7G,CAAC;AACH,CAAC;AAED,SAAS,UAAU,CAAC,KAAc,EAAE,MAAoB;IACtD,IAAI,KAAK,YAAY,0BAA0B,IAAI,CAAC,MAAM,EAAE,OAAO;QAAE,OAAO,KAAK,CAAC;IAClF,IAAI,MAAM,EAAE,OAAO;QAAE,OAAO,wBAAwB,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,KAAK,cAAc,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC;IAC1I,MAAM,MAAM,GAAG,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,QAAQ,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;IAClG,IAAI,MAAM,KAAK,GAAG;QAAE,OAAO,wBAAwB,CAAC,gCAAgC,CAAC,CAAC;IACtF,IAAI,MAAM,KAAK,GAAG;QAAE,OAAO,wBAAwB,CAAC,wBAAwB,CAAC,CAAC;IAC9E,IAAI,MAAM,KAAK,GAAG;QAAE,OAAO,wBAAwB,CAAC,4BAA4B,CAAC,CAAC;IAClF,sEAAsE;IACtE,OAAO,wBAAwB,CAAC,0BAA0B,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC;AAC1E,CAAC"}
|
|
@@ -4,18 +4,28 @@ import type { LLMResponse, LLMResponseOptions } from "../../../../../domain/port
|
|
|
4
4
|
import type { ConfigService } from "@gaia-framework/config";
|
|
5
5
|
import { BaseLLMProvider } from "../../base/BaseLLMProvider.js";
|
|
6
6
|
import { LocalLLMChatProviderService } from "../local/LocalLLMChatProviderService.js";
|
|
7
|
+
import { OllamaCloudService } from "./OllamaCloudService.js";
|
|
7
8
|
import { OllamaService } from "./OllamaService.js";
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
declare abstract class OllamaProvider<Service extends OllamaService | OllamaCloudService> extends BaseLLMProvider {
|
|
10
|
+
readonly id: "ollama" | "ollama-cloud";
|
|
11
|
+
protected readonly ollamaService: Service;
|
|
10
12
|
private readonly chatProviderService;
|
|
11
13
|
private readonly configService;
|
|
12
|
-
readonly id = "ollama";
|
|
13
14
|
supportsBoundedSubagentExecution: (_model: string) => boolean;
|
|
14
|
-
constructor(ollamaService:
|
|
15
|
+
protected constructor(id: "ollama" | "ollama-cloud", ollamaService: Service, chatProviderService: LocalLLMChatProviderService, configService: ConfigService);
|
|
15
16
|
getResponse(options: LLMResponseOptions): Promise<LLMResponse>;
|
|
16
17
|
getResponseStream(options: LLMResponseOptions): AsyncGenerator<LLMExecutionEvent>;
|
|
17
18
|
getResponseEvents(options: LLMResponseOptions): AsyncGenerator<LLMExecutionEvent>;
|
|
18
19
|
getModels(): Promise<LLMInfo[]>;
|
|
19
20
|
isValidModel(model: string): Promise<boolean>;
|
|
20
21
|
}
|
|
22
|
+
export declare class OllamaLLMProvider extends OllamaProvider<OllamaService> {
|
|
23
|
+
constructor(service: OllamaService, chat: LocalLLMChatProviderService, config: ConfigService);
|
|
24
|
+
}
|
|
25
|
+
export declare class OllamaCloudLLMProvider extends OllamaProvider<OllamaCloudService> {
|
|
26
|
+
constructor(service: OllamaCloudService, chat: LocalLLMChatProviderService, config: ConfigService);
|
|
27
|
+
getModelDetails(model: string): Promise<LLMInfo>;
|
|
28
|
+
validateSettings(model: string, settings?: LLMResponseOptions["settings"]): Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
21
31
|
//# sourceMappingURL=OllamaLLMProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OllamaLLMProvider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/llm/providers/ollama/OllamaLLMProvider.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAC/F,OAAO,KAAK,EACV,WAAW,EACX,kBAAkB,EACnB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,
|
|
1
|
+
{"version":3,"file":"OllamaLLMProvider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/llm/providers/ollama/OllamaLLMProvider.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAC/F,OAAO,KAAK,EACV,WAAW,EACX,kBAAkB,EACnB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,uBAAe,cAAc,CAAC,OAAO,SAAS,aAAa,GAAG,kBAAkB,CAAE,SAAQ,eAAe;IAIrG,QAAQ,CAAC,EAAE,EAAE,QAAQ,GAAG,cAAc;IACtC,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,OAAO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