- Added DashScope ASR service implementation for real-time streaming. - Updated ASR provider logic to support DashScope alongside existing providers. - Enhanced runtime metadata resolution to include DashScope as a valid ASR provider. - Modified configuration files and documentation to reflect the addition of DashScope. - Introduced tests to validate DashScope integration and ASR service behavior. - Refactored ASR service factory to accommodate new provider options and modes.
40 lines
981 B
Python
40 lines
981 B
Python
"""Port interfaces for runtime integration boundaries."""
|
|
|
|
from runtime.ports.asr import (
|
|
ASRMode,
|
|
ASRPort,
|
|
ASRServiceSpec,
|
|
OfflineASRPort,
|
|
StreamingASRPort,
|
|
)
|
|
from runtime.ports.control_plane import (
|
|
AssistantRuntimeConfigProvider,
|
|
ControlPlaneGateway,
|
|
ConversationHistoryStore,
|
|
KnowledgeRetriever,
|
|
ToolCatalog,
|
|
)
|
|
from runtime.ports.llm import LLMCancellable, LLMPort, LLMRuntimeConfigurable, LLMServiceSpec
|
|
from runtime.ports.service_factory import RealtimeServiceFactory
|
|
from runtime.ports.tts import TTSPort, TTSServiceSpec
|
|
|
|
__all__ = [
|
|
"ASRMode",
|
|
"ASRPort",
|
|
"ASRServiceSpec",
|
|
"OfflineASRPort",
|
|
"StreamingASRPort",
|
|
"AssistantRuntimeConfigProvider",
|
|
"ControlPlaneGateway",
|
|
"ConversationHistoryStore",
|
|
"KnowledgeRetriever",
|
|
"ToolCatalog",
|
|
"LLMCancellable",
|
|
"LLMPort",
|
|
"LLMRuntimeConfigurable",
|
|
"LLMServiceSpec",
|
|
"RealtimeServiceFactory",
|
|
"TTSPort",
|
|
"TTSServiceSpec",
|
|
]
|