@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleRealtimeEventHandlerREgistry.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeEventHandlerREgistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0DAA0D,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sEAAsE,CAAC;AACxG,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,
|
|
1
|
+
{"version":3,"file":"GoogleRealtimeEventHandlerREgistry.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeEventHandlerREgistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0DAA0D,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sEAAsE,CAAC;AACxG,OAA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OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IArDvC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyC;IAEhE,SAAS,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,GAAE,SAAS,kBAAkB,EAAO,EAAE,YAAY,UAAQ,GAAG,IAAI;IAmBxG,KAAK,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;IAM3B,0BAA0B,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,iCAAiC,GAAG,OAAO,CAAC,IAAI,CAAC;IAO/G,UAAU,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI;gBAOjC,UAAU,EAAE,eAAe,CAAC,6BAA6B,EAAE,WAAW,CAAC,EACvE,aAAa,EAAE,aAAa,EAC5B,YAAY,EAAE,CAAC,OAAO,EAAE,wBAAwB,KAAK,IAAI,EACzD,SAAS,EAAE,CAAC,OAAO,EAAE,qBAAqB,KAAK,IAAI,EACnD,gBAAgB,EAAE,gBAAgB,EAClC,YAAY,EAAE,YAAY,EAC1B,wBAAwB,EAAE,wBAAwB,EAClD,sBAAsB,EAAE,8BAA8B,EACtD,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,mBAAmB,EACxC,MAAM,EAAE,aAAa,EACrB,KAAK,EAAE,YAAY,EACnB,mBAAmB,CAAC,EAAE,mBAAmB,YAAA;IAI5D;;OAEG;IACU,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;YAOxB,mBAAmB;IA4BjC,OAAO,CAAC,YAAY;IAWpB,OAAO,CAAC,uBAAuB;IAU/B,OAAO,CAAC,aAAa;IASrB;;OAEG;YACW,oBAAoB;YAepB,cAAc;YAwBd,WAAW;YA4CX,kBAAkB;CASjC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { isGoogleTurnComplete } from "./types.js";
|
|
1
2
|
import { createToolExecutionContext } from "../../../../../../domain/services/tools/ToolExecutionContextPolicy.js";
|
|
2
3
|
import { RealtimeTranscriptSession } from "../../../../../../application/services/realtime/RealtimeTranscriptSession.js";
|
|
3
4
|
import { ToolExecutionFailure, toModelVisibleToolFailure } from '../../../../tools/executors/ToolExecutionFailure.js';
|
|
5
|
+
import { GoogleRealtimeToolApprovals } from './GoogleRealtimeToolApprovals.js';
|
|
6
|
+
import { GoogleRealtimeToolContracts } from './GoogleRealtimeToolContracts.js';
|
|
4
7
|
export class GoogleRealtimeEventHandlerRegistry {
|
|
5
8
|
dispatcher;
|
|
6
9
|
loggerService;
|
|
@@ -12,9 +15,11 @@ export class GoogleRealtimeEventHandlerRegistry {
|
|
|
12
15
|
workingContextRegistry;
|
|
13
16
|
messageAppService;
|
|
14
17
|
conversationService;
|
|
18
|
+
config;
|
|
19
|
+
tools;
|
|
15
20
|
contentMediaService;
|
|
16
21
|
states = new Map();
|
|
17
|
-
configure(connectionId,
|
|
22
|
+
configure(connectionId, schemas = [], waitsForIdle = false) {
|
|
18
23
|
const transcript = new RealtimeTranscriptSession({
|
|
19
24
|
connectionId, userId: this.connectionContextService.getUserId(connectionId),
|
|
20
25
|
conversationId: this.connectionContextService.getConversationId(connectionId),
|
|
@@ -27,18 +32,26 @@ export class GoogleRealtimeEventHandlerRegistry {
|
|
|
27
32
|
media: this.contentMediaService,
|
|
28
33
|
onUnavailable: () => this.loggerService.warn('Google realtime audio archive unavailable; streamed playback and transcript retained.'),
|
|
29
34
|
});
|
|
30
|
-
|
|
35
|
+
const approvals = new GoogleRealtimeToolApprovals(connectionId, this.connectionContextService.getUserId(connectionId), this.connectionContextService.getConversationId(connectionId), this.config, this.tools, (id, item) => transcript.projectToolInvocation(id, item));
|
|
36
|
+
this.states.set(connectionId, { approvals, contracts: new GoogleRealtimeToolContracts(schemas), waitsForIdle, calls: new Map(), cancelled: new Set(), responded: new Set(), signatures: new Map(), transcript, resultBytes: 0 });
|
|
31
37
|
}
|
|
32
38
|
clear(connectionId) {
|
|
39
|
+
this.states.get(connectionId)?.approvals.close();
|
|
33
40
|
this.states.get(connectionId)?.transcript.close();
|
|
34
41
|
this.states.delete(connectionId);
|
|
35
42
|
}
|
|
43
|
+
async submitToolApprovalDecision(connectionId, input) {
|
|
44
|
+
const state = this.states.get(connectionId);
|
|
45
|
+
if (!state)
|
|
46
|
+
throw new Error('Realtime call unavailable');
|
|
47
|
+
await state.approvals.decide(input);
|
|
48
|
+
}
|
|
36
49
|
recordText(connectionId, text) {
|
|
37
50
|
const transcript = this.states.get(connectionId)?.transcript;
|
|
38
51
|
transcript?.append('user', text);
|
|
39
52
|
transcript?.finishInput();
|
|
40
53
|
}
|
|
41
|
-
constructor(dispatcher, loggerService, emitResponse, emitError, webSocketService, toolExecutor, connectionContextService, workingContextRegistry, messageAppService, conversationService, contentMediaService) {
|
|
54
|
+
constructor(dispatcher, loggerService, emitResponse, emitError, webSocketService, toolExecutor, connectionContextService, workingContextRegistry, messageAppService, conversationService, config, tools, contentMediaService) {
|
|
42
55
|
this.dispatcher = dispatcher;
|
|
43
56
|
this.loggerService = loggerService;
|
|
44
57
|
this.emitResponse = emitResponse;
|
|
@@ -49,6 +62,8 @@ export class GoogleRealtimeEventHandlerRegistry {
|
|
|
49
62
|
this.workingContextRegistry = workingContextRegistry;
|
|
50
63
|
this.messageAppService = messageAppService;
|
|
51
64
|
this.conversationService = conversationService;
|
|
65
|
+
this.config = config;
|
|
66
|
+
this.tools = tools;
|
|
52
67
|
this.contentMediaService = contentMediaService;
|
|
53
68
|
}
|
|
54
69
|
/**
|
|
@@ -66,14 +81,7 @@ export class GoogleRealtimeEventHandlerRegistry {
|
|
|
66
81
|
if (!state)
|
|
67
82
|
return;
|
|
68
83
|
const emit = (data) => this.emitResponse({ connectionId, data });
|
|
69
|
-
|
|
70
|
-
if (part.inlineData?.mimeType?.startsWith('audio/pcm') && part.inlineData.data) {
|
|
71
|
-
emit({ type: 'response.output_audio.delta', delta: part.inlineData.data });
|
|
72
|
-
if (/^audio\/pcm;\s*rate=24000\s*$/i.test(part.inlineData.mimeType)) {
|
|
73
|
-
state.transcript.appendAssistantAudio(Buffer.from(part.inlineData.data, 'base64'));
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
84
|
+
this.publishAudio(connectionId, state.transcript, content);
|
|
77
85
|
if (content.interrupted) {
|
|
78
86
|
// Co-located output belongs to the interrupted response; input can belong
|
|
79
87
|
// to the new utterance. Google's following turnComplete closes the old turn.
|
|
@@ -81,20 +89,14 @@ export class GoogleRealtimeEventHandlerRegistry {
|
|
|
81
89
|
state.interruptedCompletion = state.transcript.finishTurn(true);
|
|
82
90
|
emit({ type: 'input_audio_buffer.speech_started' });
|
|
83
91
|
}
|
|
84
|
-
|
|
85
|
-
state.transcript.append('user', content.inputTranscription.text);
|
|
86
|
-
}
|
|
87
|
-
if (content.inputTranscription?.finished)
|
|
88
|
-
state.transcript.finishInput();
|
|
89
|
-
if (typeof content.interimInputTranscription?.text === 'string') {
|
|
90
|
-
state.transcript.replaceInputHypothesis(content.interimInputTranscription.text);
|
|
91
|
-
}
|
|
92
|
+
this.applyInputTranscription(state.transcript, content);
|
|
92
93
|
if (!content.interrupted)
|
|
93
94
|
this.publishOutput(connectionId, state, content.outputTranscription?.text);
|
|
94
|
-
//
|
|
95
|
-
//
|
|
96
|
-
const generated = content.generationComplete && !content.interrupted
|
|
97
|
-
|
|
95
|
+
// In ordinary calls generationComplete precedes the playback boundary. During
|
|
96
|
+
// background reasoning it can precede further speech from the same interaction.
|
|
97
|
+
const generated = content.generationComplete && !content.interrupted && !state.waitsForIdle
|
|
98
|
+
? state.transcript.finishGeneration() : undefined;
|
|
99
|
+
if (isGoogleTurnComplete(content, state.waitsForIdle)) {
|
|
98
100
|
const completion = state.interruptedCompletion ?? state.transcript.finishTurn();
|
|
99
101
|
state.interruptedCompletion = undefined;
|
|
100
102
|
await completion;
|
|
@@ -104,6 +106,26 @@ export class GoogleRealtimeEventHandlerRegistry {
|
|
|
104
106
|
else
|
|
105
107
|
await generated;
|
|
106
108
|
}
|
|
109
|
+
publishAudio(connectionId, transcript, content) {
|
|
110
|
+
for (const part of content.modelTurn?.parts ?? []) {
|
|
111
|
+
if (part.inlineData?.mimeType?.startsWith('audio/pcm') && part.inlineData.data) {
|
|
112
|
+
this.emitResponse({ connectionId, data: { type: 'response.output_audio.delta', delta: part.inlineData.data } });
|
|
113
|
+
if (/^audio\/pcm;\s*rate=24000\s*$/i.test(part.inlineData.mimeType)) {
|
|
114
|
+
transcript.appendAssistantAudio(Buffer.from(part.inlineData.data, 'base64'));
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
applyInputTranscription(transcript, content) {
|
|
120
|
+
if (content.inputTranscription?.text) {
|
|
121
|
+
transcript.append('user', content.inputTranscription.text);
|
|
122
|
+
}
|
|
123
|
+
if (content.inputTranscription?.finished)
|
|
124
|
+
transcript.finishInput();
|
|
125
|
+
if (typeof content.interimInputTranscription?.text === 'string') {
|
|
126
|
+
transcript.replaceInputHypothesis(content.interimInputTranscription.text);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
107
129
|
publishOutput(connectionId, state, text) {
|
|
108
130
|
if (!text)
|
|
109
131
|
return;
|
|
@@ -146,7 +168,9 @@ export class GoogleRealtimeEventHandlerRegistry {
|
|
|
146
168
|
}
|
|
147
169
|
const result = await execution;
|
|
148
170
|
// A late completion cannot escape cancellation, logout, or connection ownership.
|
|
149
|
-
if (this.states.get(connectionId) !== state
|
|
171
|
+
if (this.states.get(connectionId) !== state)
|
|
172
|
+
return;
|
|
173
|
+
if (state.cancelled.has(call.id) || state.responded.has(call.id))
|
|
150
174
|
continue;
|
|
151
175
|
state.responded.add(call.id);
|
|
152
176
|
const payload = { toolResponse: { functionResponses: [result] } };
|
|
@@ -155,26 +179,31 @@ export class GoogleRealtimeEventHandlerRegistry {
|
|
|
155
179
|
}
|
|
156
180
|
async executeTool(call, connectionId, state) {
|
|
157
181
|
try {
|
|
158
|
-
|
|
159
|
-
|
|
182
|
+
// Google can omit args for a parameterless function. Missing required fields still fail the declared schema.
|
|
183
|
+
if (call.args === undefined)
|
|
184
|
+
call = { ...call, args: {} };
|
|
185
|
+
const error = state.contracts.error(call.name, call.args);
|
|
186
|
+
if (error)
|
|
187
|
+
return { id: call.id, name: call.name, response: { error } };
|
|
160
188
|
const workingContext = this.workingContextRegistry.snapshot(connectionId);
|
|
161
|
-
const
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
189
|
+
const context = createToolExecutionContext({
|
|
190
|
+
userId: this.connectionContextService.getUserId(connectionId),
|
|
191
|
+
conversationId: workingContext.conversationId,
|
|
192
|
+
workingContext: workingContext.state === 'known' ? { messageIds: workingContext.messageIds } : undefined,
|
|
193
|
+
});
|
|
194
|
+
const output = await state.approvals.run(call, context, async (args, signal) => {
|
|
195
|
+
const result = await this.toolExecutor.execute({
|
|
196
|
+
toolName: call.name, toolArguments: args, providerToolCallId: call.id,
|
|
197
|
+
context: signal ? { ...context, abortSignal: signal } : context,
|
|
198
|
+
});
|
|
199
|
+
// Bound retained results before displaying an approved result or sending it to Google.
|
|
200
|
+
const bytes = Buffer.byteLength(JSON.stringify(result) ?? '');
|
|
201
|
+
if (state.resultBytes + bytes > 2 * 1024 * 1024 - 1024)
|
|
202
|
+
throw new Error('Realtime tool output limit');
|
|
203
|
+
state.resultBytes += bytes;
|
|
204
|
+
return result;
|
|
170
205
|
});
|
|
171
|
-
|
|
172
|
-
// Bound retained results across the call without imposing a small per-tool cap.
|
|
173
|
-
const bytes = Buffer.byteLength(serialized ?? '');
|
|
174
|
-
if (state.resultBytes + bytes > 2 * 1024 * 1024 - 1024)
|
|
175
|
-
throw new Error('Realtime tool output limit');
|
|
176
|
-
state.resultBytes += bytes;
|
|
177
|
-
return { id: call.id, name: call.name, response: { output: serialized } };
|
|
206
|
+
return { id: call.id, name: call.name, response: { output: JSON.stringify(output) } };
|
|
178
207
|
}
|
|
179
208
|
catch (error) {
|
|
180
209
|
this.loggerService.warn('Google realtime tool failed or was not authorized.');
|
|
@@ -193,6 +222,7 @@ export class GoogleRealtimeEventHandlerRegistry {
|
|
|
193
222
|
if (state.cancelled.size >= 256)
|
|
194
223
|
throw new Error('Google realtime cancellation limit reached');
|
|
195
224
|
state.cancelled.add(id);
|
|
225
|
+
state.approvals.cancel(id);
|
|
196
226
|
}
|
|
197
227
|
}
|
|
198
228
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleRealtimeEventHandlerREgistry.js","sourceRoot":"","sources":["../../../../../../../../../src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeEventHandlerREgistry.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,0BAA0B,EAAE,MAAM,uEAAuE,CAAC;AACnH,OAAO,EAAE,yBAAyB,EAAE,MAAM,8EAA8E,CAAC;AAIzH,OAAO,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,qDAAqD,CAAC;AAatH,MAAM,OAAO,kCAAkC;IAgC1B;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IAzCF,MAAM,GAAG,IAAI,GAAG,EAA8B,CAAC;IAEhE,SAAS,CAAC,YAAoB,EAAE,OAA6B;QAC3D,MAAM,UAAU,GAAG,IAAI,yBAAyB,CAAC;YAC/C,YAAY,EAAE,MAAM,EAAE,IAAI,CAAC,wBAAwB,CAAC,SAAS,CAAC,YAAY,CAAC;YAC3E,cAAc,EAAE,IAAI,CAAC,wBAAwB,CAAC,iBAAiB,CAAC,YAAY,CAAC;SAC9E,EAAE,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,mBAAmB,EAAE,IAAI,CAAC,sBAAsB,EAChF,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,EACjD,GAAG,EAAE;YACH,IAAI,CAAC,aAAa,CAAC,IAAI,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AK,EAAE,CAAC;YACf,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,oDAAoD,CAAC,CAAC;YAE9E,OAAO;gBACL,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,YAAY,oBAAoB;oBAC3E,CAAC,CAAC,EAAE,GAAG,yBAAyB,CAAC,KAAK,CAAC,EAAE;oBACzC,CAAC,CAAC,EAAE,KAAK,EAAE,8CAA8C,EAAE;aAC9D,CAAC;QACJ,CAAC;IACH,CAAC;IAEO,KAAK,CAAC,kBAAkB,CAAC,KAAgC,EAAE,YAAoB;QACrF,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAC5C,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,KAAK,MAAM,EAAE,IAAI,KAAK,CAAC,oBAAoB,CAAC,GAAG,EAAE,CAAC;YAChD,IAAI,KAAK,CAAC,SAAS,CAAC,IAAI,IAAI,GAAG;gBAAE,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;YAC/F,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"GoogleRealtimeEventHandlerREgistry.js","sourceRoot":"","sources":["../../../../../../../../../src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeEventHandlerREgistry.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAgK,MAAM,YAAY,CAAC;AAIhN,OAAO,EAAE,0BAA0B,EAAE,MAAM,uEAAuE,CAAC;AACnH,OAAO,EAAE,yBAAyB,EAAE,MAAM,8EAA8E,CAAC;AAIzH,OAAO,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,qDAAqD,CAAC;AAKtH,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAG/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C,aAAa,CAAC,IAAI,CAAC,oDAAoD,CAAC,CAAC;YAE9E,OAAO;gBACL,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,YAAY,oBAAoB;oBAC3E,CAAC,CAAC,EAAE,GAAG,yBAAyB,CAAC,KAAK,CAAC,EAAE;oBACzC,CAAC,CAAC,EAAE,KAAK,EAAE,8CAA8C,EAAE;aAC9D,CAAC;QACJ,CAAC;IACH,CAAC;IAEO,KAAK,CAAC,kBAAkB,CAAC,KAAgC,EAAE,YAAoB;QACrF,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAC5C,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,KAAK,MAAM,EAAE,IAAI,KAAK,CAAC,oBAAoB,CAAC,GAAG,EAAE,CAAC;YAChD,IAAI,KAAK,CAAC,SAAS,CAAC,IAAI,IAAI,GAAG;gBAAE,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;YAC/F,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACxB,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAC7B,CAAC;IACH,CAAC;CACF"}
|
package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeProvider.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import WebSocket, { Data } from "ws";
|
|
2
|
+
import type { RealtimeToolApprovalDecisionInput } from '../../../../../../domain/ports/speech/RealtimeProvider.js';
|
|
2
3
|
import { BaseRealtimeProvider } from "../../../base/realtime/BaseRealtimeProvider.js";
|
|
3
4
|
import { DefaultToolExecutor } from "../../../../tools/executors/DefaultToolExecutor.js";
|
|
4
5
|
import { ToolRegistry } from "../../../../tools/registry/ToolRegistry.js";
|
|
@@ -20,7 +21,6 @@ export declare class GoogleRealtimeProvider extends BaseRealtimeProvider {
|
|
|
20
21
|
private readonly promptTemplates;
|
|
21
22
|
private readonly workingContextRegistry;
|
|
22
23
|
readonly id = "google";
|
|
23
|
-
private readonly DEFAULT_MODEL;
|
|
24
24
|
private readonly DEFAULT_VOICE;
|
|
25
25
|
private readonly openingSessions;
|
|
26
26
|
private readonly openingAttempts;
|
|
@@ -35,6 +35,7 @@ export declare class GoogleRealtimeProvider extends BaseRealtimeProvider {
|
|
|
35
35
|
openConnectionIfNotExists(connectionId: string, config?: RealtimeSessionConfig): Promise<WebSocket>;
|
|
36
36
|
private openConnection;
|
|
37
37
|
protected createSocket(): WebSocket;
|
|
38
|
+
submitToolApprovalDecision(connectionId: string, input: RealtimeToolApprovalDecisionInput): Promise<void>;
|
|
38
39
|
sendText(text: string, connectionId: string): Promise<void>;
|
|
39
40
|
sendAudio(audioData: Uint8Array, connectionId: string): Promise<void>;
|
|
40
41
|
private requireSession;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleRealtimeProvider.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeProvider.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"GoogleRealtimeProvider.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeProvider.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAGrC,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,2DAA2D,CAAC;AAKnH,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAGtF,OAAO,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAC;AAGzF,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAI1E,OAAO,EAA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AE,aAAa,EACtB,eAAe,EAAE,mBAAmB,EACzB,sBAAsB,EAAE,8BAA8B,EACpF,iBAAiB,EAAE,iBAAiB,EAClC,mBAAmB,EAAE,mBAAmB,EACxC,mBAAmB,EAAE,mBAAmB;IAejF,OAAO,CAAC,UAAU;IAoBX,SAAS,IAAI,iBAAiB,EAAE;IAGhC,SAAS,IAAI,oBAAoB,CAAC,QAAQ,CAAC;IAG3C,eAAe,IAAI,oBAAoB;IAIvC,yBAAyB,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,SAAS,CAAC;YAkB5F,cAAc;IAsE5B,SAAS,CAAC,YAAY,IAAI,SAAS;IAI5B,0BAA0B,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,iCAAiC,GAAG,OAAO,CAAC,IAAI,CAAC;IAInG,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAK3D,SAAS,CAAC,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIlF,OAAO,CAAC,cAAc;YAQR,gBAAgB;IAwBjB,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAgBnE,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;CAW5D"}
|
package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeProvider.js
CHANGED
|
@@ -10,7 +10,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
11
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
12
|
};
|
|
13
|
-
import
|
|
13
|
+
import { googleLiveAudioFrame, openGoogleLiveSocket } from './GoogleLiveSocket.js';
|
|
14
|
+
import { configuredToolApprovalPolicy } from '../../../../../services/runs/approval/resolveToolApprovalPolicy.js';
|
|
14
15
|
import { GoogleRealtimeSession } from "./GoogleRealtimeSession.js";
|
|
15
16
|
import { toGoogleFunctionDeclaration } from '../GoogleToolAdapter.js';
|
|
16
17
|
import { AppError } from "../../../../../../../shared/types/errorTypes.js";
|
|
@@ -22,7 +23,7 @@ import { GoogleRealtimeEventHandlerRegistry } from "./GoogleRealtimeEventHandler
|
|
|
22
23
|
import { ToolRegistry } from "../../../../tools/registry/ToolRegistry.js";
|
|
23
24
|
import CoreTypes from "../../../../../di/types.js";
|
|
24
25
|
import { ConfigService } from "@gaia-framework/config";
|
|
25
|
-
import { GOOGLE_REALTIME_VOICES, googleRealtimeModels } from "./GoogleRealtimeConfig.js";
|
|
26
|
+
import { GOOGLE_DEFAULT_REALTIME_MODEL, GOOGLE_REALTIME_VOICES, googleRealtimeModels } from "./GoogleRealtimeConfig.js";
|
|
26
27
|
import { resolveRealtimeInstructions } from "../../../base/realtime/resolveRealtimeInstructions.js";
|
|
27
28
|
import { RealtimeWorkingContextRegistry } from "../../../../../../application/services/realtime/RealtimeWorkingContextRegistry.js";
|
|
28
29
|
let GoogleRealtimeProvider = class GoogleRealtimeProvider extends BaseRealtimeProvider {
|
|
@@ -33,7 +34,6 @@ let GoogleRealtimeProvider = class GoogleRealtimeProvider extends BaseRealtimePr
|
|
|
33
34
|
promptTemplates;
|
|
34
35
|
workingContextRegistry;
|
|
35
36
|
id = "google";
|
|
36
|
-
DEFAULT_MODEL = 'gemini-3.1-flash-live-preview';
|
|
37
37
|
DEFAULT_VOICE = 'Aoede';
|
|
38
38
|
openingSessions = new Map();
|
|
39
39
|
openingAttempts = new Map();
|
|
@@ -50,26 +50,31 @@ let GoogleRealtimeProvider = class GoogleRealtimeProvider extends BaseRealtimePr
|
|
|
50
50
|
this.workingContextRegistry = workingContextRegistry;
|
|
51
51
|
this.eventDispatcher = new EventDispatcher(loggerService, event => Object.keys(event)[0]);
|
|
52
52
|
const transport = { sendMessage: (id, event) => this.sessions.get(id)?.send(event) };
|
|
53
|
-
this.registry = new GoogleRealtimeEventHandlerRegistry(this.eventDispatcher, loggerService, this.emitResponse.bind(this), this.emitError.bind(this), transport, toolExecutor, connectionContextService, workingContextRegistry, messageAppService, conversationService, this.configService.getOptionalBoolean('objectStorage.enabled') ? contentMediaService : undefined);
|
|
53
|
+
this.registry = new GoogleRealtimeEventHandlerRegistry(this.eventDispatcher, loggerService, this.emitResponse.bind(this), this.emitError.bind(this), transport, toolExecutor, connectionContextService, workingContextRegistry, messageAppService, conversationService, this.configService, this.toolRegistry, this.configService.getOptionalBoolean('objectStorage.enabled') ? contentMediaService : undefined);
|
|
54
54
|
void this.registry.register();
|
|
55
55
|
}
|
|
56
|
-
buildTools(
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
buildTools(schemas, behavior, includeSearch) {
|
|
57
|
+
const declarations = schemas.map(schema => {
|
|
58
|
+
const declaration = toGoogleFunctionDeclaration(schema);
|
|
59
|
+
const policy = configuredToolApprovalPolicy(this.configService, schema.name, this.toolRegistry.getApprovalPolicyForFunction(schema.name));
|
|
60
|
+
if (policy?.mode === 'always') {
|
|
61
|
+
declaration.description = `${declaration.description ?? ''} Call this function immediately to open its approval card. Do not wait for permission before requesting it. GAIA executes only after the caller taps Approve. Spoken consent cannot authorize it. Wait for the tool result before reporting success.`.trim();
|
|
62
|
+
}
|
|
63
|
+
return { ...declaration, behavior };
|
|
64
|
+
});
|
|
60
65
|
return [
|
|
61
66
|
...(includeSearch ? [{ googleSearch: {} }] : []),
|
|
62
|
-
...(
|
|
67
|
+
...(declarations.length ? [{ functionDeclarations: declarations }] : []),
|
|
63
68
|
];
|
|
64
69
|
}
|
|
65
70
|
getModels() {
|
|
66
|
-
return googleRealtimeModels.map(
|
|
71
|
+
return googleRealtimeModels.map(({ id, displayName }) => ({ id, displayName }));
|
|
67
72
|
}
|
|
68
73
|
getVoices() {
|
|
69
74
|
return GOOGLE_REALTIME_VOICES.map(voice => ({ ...voice }));
|
|
70
75
|
}
|
|
71
76
|
getProviderInfo() {
|
|
72
|
-
return { name: this.id, enabled: true, defaultModel:
|
|
77
|
+
return { name: this.id, enabled: true, defaultModel: GOOGLE_DEFAULT_REALTIME_MODEL, models: this.getModels(), defaultVoice: this.DEFAULT_VOICE, voices: this.getVoices() };
|
|
73
78
|
}
|
|
74
79
|
openConnectionIfNotExists(connectionId, config) {
|
|
75
80
|
const pending = this.openingSessions.get(connectionId);
|
|
@@ -92,19 +97,27 @@ let GoogleRealtimeProvider = class GoogleRealtimeProvider extends BaseRealtimePr
|
|
|
92
97
|
const existing = this.sessions.get(connectionId);
|
|
93
98
|
if (existing)
|
|
94
99
|
return existing.opened;
|
|
95
|
-
const model = config?.model?.trim() ||
|
|
96
|
-
|
|
100
|
+
const model = config?.model?.trim() || GOOGLE_DEFAULT_REALTIME_MODEL;
|
|
101
|
+
const profile = googleRealtimeModels.find(item => item.id === model);
|
|
102
|
+
if (!profile)
|
|
97
103
|
throw new AppError(400, 'Unsupported Google realtime model.', { code: 'invalid_realtime_model' });
|
|
98
104
|
const voice = this.resolveVoice(config);
|
|
99
105
|
const authorized = await this.toolRegistry.resolveForUser(this.connectionContextService.getUserId(connectionId), config?.tools, this.connectionContextService.getConversationId(connectionId));
|
|
100
106
|
if (this.openingAttempts.get(connectionId) !== attempt)
|
|
101
107
|
throw new Error('Google realtime connection closed during authorization');
|
|
102
|
-
const
|
|
108
|
+
const { functionBehavior, thinkingLevel, waitsForIdle } = profile;
|
|
109
|
+
const references = authorized.filter(tool => !this.toolRegistry.getApprovalPolicyForFunction(tool.name)?.mandatory);
|
|
110
|
+
const schemas = directRealtimeToolSchemas(this.toolRegistry, references);
|
|
111
|
+
const tools = this.buildTools(schemas, functionBehavior, !Array.isArray(config?.tools));
|
|
103
112
|
const setup = {
|
|
104
113
|
setup: {
|
|
105
114
|
// Google's resource prefix belongs only to the upstream wire format.
|
|
106
115
|
model: `models/${model}`,
|
|
107
|
-
generationConfig: {
|
|
116
|
+
generationConfig: {
|
|
117
|
+
responseModalities: ['AUDIO'],
|
|
118
|
+
speechConfig: { voiceConfig: { prebuiltVoiceConfig: { voiceName: voice } } },
|
|
119
|
+
...(thinkingLevel && { thinkingConfig: { thinkingLevel } }),
|
|
120
|
+
},
|
|
108
121
|
systemInstruction: { parts: [{ text: resolveRealtimeInstructions(config?.instructions, this.promptTemplates) }] },
|
|
109
122
|
tools,
|
|
110
123
|
inputAudioTranscription: {},
|
|
@@ -113,7 +126,7 @@ let GoogleRealtimeProvider = class GoogleRealtimeProvider extends BaseRealtimePr
|
|
|
113
126
|
contextWindowCompression: { slidingWindow: {} },
|
|
114
127
|
}
|
|
115
128
|
};
|
|
116
|
-
this.registry.configure(connectionId,
|
|
129
|
+
this.registry.configure(connectionId, schemas, waitsForIdle);
|
|
117
130
|
const session = new GoogleRealtimeSession(setup, () => this.createSocket(), {
|
|
118
131
|
event: event => { void this.dispatchEnvelope(event, connectionId); },
|
|
119
132
|
ready: (socket, resumed) => {
|
|
@@ -133,25 +146,23 @@ let GoogleRealtimeProvider = class GoogleRealtimeProvider extends BaseRealtimePr
|
|
|
133
146
|
}
|
|
134
147
|
});
|
|
135
148
|
},
|
|
136
|
-
});
|
|
149
|
+
}, waitsForIdle);
|
|
137
150
|
this.sessions.set(connectionId, session);
|
|
138
151
|
session.start();
|
|
139
152
|
return session.opened;
|
|
140
153
|
}
|
|
141
154
|
createSocket() {
|
|
142
|
-
return
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
155
|
+
return openGoogleLiveSocket(this.configService);
|
|
156
|
+
}
|
|
157
|
+
submitToolApprovalDecision(connectionId, input) {
|
|
158
|
+
return this.registry.submitToolApprovalDecision(connectionId, input);
|
|
146
159
|
}
|
|
147
160
|
async sendText(text, connectionId) {
|
|
148
161
|
this.requireSession(connectionId).send({ realtimeInput: { text } });
|
|
149
162
|
this.registry.recordText(connectionId, text);
|
|
150
163
|
}
|
|
151
164
|
async sendAudio(audioData, connectionId) {
|
|
152
|
-
|
|
153
|
-
throw new AppError(400, 'Invalid PCM16 audio frame.');
|
|
154
|
-
this.requireSession(connectionId).send({ realtimeInput: { audio: { data: this.encodeAudioToBase64(audioData), mimeType: 'audio/pcm;rate=24000' } } });
|
|
165
|
+
this.requireSession(connectionId).send(googleLiveAudioFrame(audioData));
|
|
155
166
|
}
|
|
156
167
|
requireSession(connectionId) {
|
|
157
168
|
const session = this.sessions.get(connectionId);
|
|
@@ -160,16 +171,26 @@ let GoogleRealtimeProvider = class GoogleRealtimeProvider extends BaseRealtimePr
|
|
|
160
171
|
return session;
|
|
161
172
|
}
|
|
162
173
|
async dispatchEnvelope(event, connectionId) {
|
|
174
|
+
const session = this.sessions.get(connectionId);
|
|
175
|
+
if (!session)
|
|
176
|
+
return;
|
|
163
177
|
try {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
178
|
+
if (event.toolCallCancellation || event.serverContent) {
|
|
179
|
+
// The cancellation handler revokes approval synchronously. Start caption delivery in the
|
|
180
|
+
// same turn so a later envelope cannot overtake it while transcript storage is pending.
|
|
181
|
+
const cancelled = event.toolCallCancellation &&
|
|
182
|
+
this.eventDispatcher.dispatch({ toolCallCancellation: event.toolCallCancellation }, connectionId);
|
|
183
|
+
const content = event.serverContent && this.sessions.get(connectionId) === session &&
|
|
184
|
+
this.eventDispatcher.dispatch({ serverContent: event.serverContent }, connectionId);
|
|
185
|
+
await Promise.all([cancelled, content]);
|
|
186
|
+
}
|
|
187
|
+
if (event.toolCall && this.sessions.get(connectionId) === session) {
|
|
170
188
|
await this.eventDispatcher.dispatch({ toolCall: event.toolCall }, connectionId);
|
|
189
|
+
}
|
|
171
190
|
}
|
|
172
191
|
catch {
|
|
192
|
+
if (this.sessions.get(connectionId) !== session)
|
|
193
|
+
return;
|
|
173
194
|
this.closeConnection(connectionId);
|
|
174
195
|
this.emitError({ connectionId, error: { code: 'realtime_provider_event_failed', message: 'Google realtime event processing failed.' } });
|
|
175
196
|
}
|
package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeProvider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleRealtimeProvider.js","sourceRoot":"","sources":["../../../../../../../../../src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,SAAmB,MAAM,IAAI,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAC;AACzF,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAE7F,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAG1E,OAAO,SAAS,MAAM,4BAA4B,CAAC;AAInD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAIvD,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEzF,OAAO,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAC;AACpG,OAAO,EAAE,8BAA8B,EAAE,MAAM,mFAAmF,CAAC;AAKnI,IAAa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,oBAAoB;IAWjB;IAEM;IACY;IACX;IACM;IACW;IAhBrD,EAAE,GAAG,QAAQ,CAAC;IACb,aAAa,GAAG,+BAA+B,CAAC;IAChD,aAAa,GAAG,OAAO,CAAC;I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,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAChC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QAClC,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAClD,CAAC;CACF,CAAA;AAlNY,sBAAsB;IAW9B,WAAA,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,CAAA;IAC/B,WAAA,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;IAC9B,WAAA,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;IAC9B,WAAA,MAAM,CAAC,SAAS,CAAC,wBAAwB,CAAC,CAAA;IAC1C,WAAA,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,CAAA;IAC/B,WAAA,MAAM,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAA;IACrC,WAAA,MAAM,CAAC,SAAS,CAAC,8BAA8B,CAAC,CAAA;IAChD,WAAA,MAAM,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAA;IACnC,WAAA,MAAM,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAA;IACrC,WAAA,MAAM,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAA;6CARQ,mBAAmB;QACF,YAAY,UAEV,aAAa,UAEa,8BAA8B;GAjBhH,sBAAsB,CAkNlC;;AACD,OAAO,EAAE,yBAAyB,EAAE,MAAM,wDAAwD,CAAC"}
|
|
1
|
+
{"version":3,"file":"GoogleRealtimeProvider.js","sourceRoot":"","sources":["../../../../../../../../../src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAEnF,OAAO,EAAE,4BAA4B,EAAE,MAAM,oEAAoE,CAAC;AAClH,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAA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eSession.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import WebSocket from 'ws';
|
|
2
|
-
import type
|
|
2
|
+
import { type ClientEvent, type GoogleServerEnvelope, type SetupEvent } from './types.js';
|
|
3
3
|
interface SessionCallbacks {
|
|
4
4
|
event: (event: GoogleServerEnvelope) => void;
|
|
5
|
-
ready
|
|
6
|
-
reconnecting
|
|
5
|
+
ready?: (socket: WebSocket, resumed: boolean) => void;
|
|
6
|
+
reconnecting?: () => void;
|
|
7
7
|
failed: (code: string) => void;
|
|
8
8
|
}
|
|
9
9
|
/** Owns one logical call; socket replacement never creates a new conversation. */
|
|
@@ -11,6 +11,7 @@ export declare class GoogleRealtimeSession {
|
|
|
11
11
|
private readonly setup;
|
|
12
12
|
private readonly connectSocket;
|
|
13
13
|
private readonly callbacks;
|
|
14
|
+
private readonly waitsForIdle;
|
|
14
15
|
private socket?;
|
|
15
16
|
private closed;
|
|
16
17
|
private ready;
|
|
@@ -18,9 +19,12 @@ export declare class GoogleRealtimeSession {
|
|
|
18
19
|
private initialized;
|
|
19
20
|
private handle?;
|
|
20
21
|
private checkpointSafe;
|
|
21
|
-
private
|
|
22
|
+
private callerInputSinceResponse;
|
|
23
|
+
private awaitingPostToolOutput;
|
|
22
24
|
private responseInProgress;
|
|
23
25
|
private completed;
|
|
26
|
+
private readonly pendingToolCalls;
|
|
27
|
+
private readonly settledToolCalls;
|
|
24
28
|
private queued;
|
|
25
29
|
private queuedBytes;
|
|
26
30
|
private attempts;
|
|
@@ -29,13 +33,17 @@ export declare class GoogleRealtimeSession {
|
|
|
29
33
|
private resolveReady;
|
|
30
34
|
private rejectReady;
|
|
31
35
|
readonly opened: Promise<WebSocket>;
|
|
32
|
-
constructor(setup: SetupEvent, connectSocket: () => WebSocket, callbacks: SessionCallbacks);
|
|
36
|
+
constructor(setup: SetupEvent, connectSocket: () => WebSocket, callbacks: SessionCallbacks, waitsForIdle?: boolean);
|
|
33
37
|
start(): void;
|
|
34
38
|
send(event: ClientEvent): void;
|
|
35
|
-
private
|
|
39
|
+
private sendFrame;
|
|
36
40
|
private connect;
|
|
37
41
|
private receive;
|
|
38
42
|
private trackBoundary;
|
|
43
|
+
private trackToolCalls;
|
|
44
|
+
private settleToolCall;
|
|
45
|
+
private trackResponseStart;
|
|
46
|
+
private trackOutput;
|
|
39
47
|
private onReady;
|
|
40
48
|
private beginRecovery;
|
|
41
49
|
private replaceSocket;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleRealtimeSession.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeSession.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,IAAI,CAAC;AAC3B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"GoogleRealtimeSession.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeSession.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,IAAI,CAAC;AAC3B,OAAO,EAAwB,KAAK,WAAW,EAAE,KAAK,oBAAoB,EAA2B,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAWzI,UAAU,gBAAgB;IACxB,KAAK,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAC7C,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACtD,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAED,kFAAkF;AAClF,qBAAa,qBAAqB;IAwB9B,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,YAAY;IA1B/B,O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