类class
agentscope.realtimeControlFrameType
class ControlFrameType(StrEnum)
源码Source
agentscope/realtime/_transport/_base.py:19–35Control Frame 类型,处理低延迟的实时语音与多模态交互。位于 agentscope.realtime 包,继承自 StrEnum。
Each one is the wire form of a public :class:RealtimeAgent method,
so that a browser can do what a Python caller does directly. Traffic
a transport handles for itself — handshakes, playback reports — never
reaches the agent and has no member here.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
TEXT | — | 文本字段。 | 'text' |
USER_CONFIRM | — | 用户确认字段。 | 'user_confirm' |
INTERRUPT | — | 请求中断当前执行。 | 'interrupt' |
属性详情Attribute Detail
TEXT
= 'text'文本字段。
The TEXT field.
源码Source
agentscope/realtime/_transport/_base.py:28USER_CONFIRM
= 'user_confirm'用户确认字段。
The USER CONFIRM field.
源码Source
agentscope/realtime/_transport/_base.py:31INTERRUPT
= 'interrupt'请求中断当前执行。
The INTERRUPT field.
源码Source
agentscope/realtime/_transport/_base.py:34