ForcePilot/backend/package/yuxi/channel/extensions/alexa/streaming.py
Kris 37493b6da6 feat(alexa): 新增Amazon Alexa渠道插件完整实现
新增了Alexa渠道的所有核心功能模块,包括配置管理、请求校验、会话管理、安全验证、去重、响应格式化、渐进式响应、主动推送、提醒功能、配对绑定以及Webhook端点,并完成了插件注册和配置项定义。
2026-05-21 10:38:31 +08:00

26 lines
615 B
Python

class AlexaStreaming:
streaming_mode = None
streaming_enabled = False
block_streaming_enabled = False
@classmethod
def should_stream(cls, estimated_length: int) -> bool:
return False
@classmethod
def build_chunk(cls, text: str, is_final: bool) -> str:
return text
@classmethod
def create_draft_stream_session(cls, session_key: str):
return None
def get_streaming_mode(self) -> str | None:
return None
def is_streaming_enabled(self) -> bool:
return False
def is_block_streaming_enabled(self) -> bool:
return False