SenseAudio Realtime Agent
Use this skill for SenseAudio Agent session lifecycle integration.
Read First
Workflow
- 1. Discover agent:
- - List available agents and pick
agent_id.
- 2. Start or continue dialogue:
- -
new_dialogue=true for new session. - INLINECODE3 with
conv_id for continuity.
- 3. Persist runtime credentials:
- - Store
conv_id and room_id in your application state (database or session store), never in client-side code or logs. - Tokens returned by
/invoke are short-lived — treat them like passwords: do not log, do not embed in URLs, and discard after the session ends via /leave. - Rotate by calling
/invoke again with the same conv_id; do not reuse expired tokens.
- 4. Operate session:
- - Query room status when needed.
- Leave session explicitly when finished.
- 5. Handle failures:
- - Distinguish quota/auth/not-found vs parameter errors.
SenseAudio 实时智能体
使用此技能进行 SenseAudio 智能体会话生命周期集成。
优先阅读
工作流程
- 1. 发现智能体:
- 列出可用智能体并选择 agent_id。
- 2. 开始或继续对话:
- new_dialogue=true 用于新会话。
- new
dialogue=false 配合 convid 用于连续性。
- 3. 持久化运行时凭证:
- 将 conv
id 和 roomid 存储在应用程序状态中(数据库或会话存储),切勿存储在客户端代码或日志中。
- /invoke 返回的令牌是短期的——请像对待密码一样处理:不要记录,不要嵌入 URL,并在会话结束后通过 /leave 丢弃。
- 使用相同的 conv_id 再次调用 /invoke 进行轮换;不要重复使用已过期的令牌。
- 4. 操作会话:
- 在需要时查询房间状态。
- 完成后显式离开会话。
- 5. 处理故障:
- 区分配额/认证/未找到错误与参数错误。