runway-dev-characters
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseRunway Dev — Characters
Runway Dev — Characters
Companion: Usefor shared guidance when available. If it is not installed, inspect the workspace, probe+runway-devwithout printing it, and read the Characters docs linked byRUNWAYML_API_SECRET. Encourage connecting Dev MCP to inspect or manage characters and knowledge documents. If the user declines or cannot connect, continue integration from current docs and an existing character ID.llms.txt
配套工具: 若可用,使用获取共享指导。如果未安装该工具,请检查工作区,探查+runway-dev但不要打印它,并阅读RUNWAYML_API_SECRET中链接的Characters文档。建议连接Dev MCP以检查或管理角色和知识文档。如果用户拒绝或无法连接,请根据现有文档和已有的角色ID继续集成。llms.txt
Goal
目标
Keep a Characters integration and its live Session lifecycle correct across the application's backend and UI. Verify changes end-to-end when safe.
确保Characters集成及其实时Session生命周期在应用程序的后端和UI中保持正确。在安全的情况下进行端到端验证。
Terminology
术语
- Dev Portal Characters = API avatars (,
list_avatars).get_avatar - Character ID = avatar UUID.
- live Session = realtime conversation via .
POST /v1/realtime_sessions - Fallback preset when the user wants a default: (
influencer).{ type: 'runway-preset', presetId: 'influencer' }
- 开发者门户Characters = API中的avatars(、
list_avatars)。get_avatar - Character ID = avatar UUID。
- live Session = 通过实现的实时对话。
POST /v1/realtime_sessions - 当用户需要默认角色时的 fallback 预设:(
influencer)。{ type: 'runway-preset', presetId: 'influencer' }
No character specified
未指定角色
- Ask whether the user wants an existing character, a preset, or a custom character from an image. Do not branch into avatar-video generation unless requested.
- For a custom character, ask the user to supply the image and use according to its live MCP tool schema. If the user wants a default instead, use preset
create_avatar.influencer - Implement the Session lifecycle behind the server boundary: create once, poll until
NOT_READY, consume connection credentials once, and return only the connection fields the client needs.READY - Connect the application's call UI with the current Avatar SDK, then end or cancel the Session during teardown so it does not keep running.
- For end-to-end verification, connect one Session successfully and cleanly end it.
- 询问用户是需要现有角色、预设角色还是基于图像的自定义角色。除非用户要求,否则不要涉及avatar视频生成。
- 对于自定义角色,请用户提供图像,并根据MCP工具的实时schema使用。如果用户想要默认角色,则使用
create_avatar预设。influencer - 在服务器边界后实现Session生命周期:创建一次,轮询直到状态从变为
NOT_READY,仅消费一次连接凭证,并仅返回客户端所需的连接字段。READY - 将应用程序的通话UI与当前Avatar SDK连接,然后在销毁阶段结束或取消Session,避免其持续运行。
- 为了进行端到端验证,成功连接一个Session并干净地结束它。
Character specified
指定了角色
- for status and attached knowledge document ids.
get_avatar - Use that character id; do not substitute another avatar.
- If status is , poll until
PROCESSINGor stop onREADY.FAILED
- 调用获取状态和关联的知识文档ID。
get_avatar - 使用该角色ID;不要替换为其他avatar。
- 如果状态为,则轮询直到变为
PROCESSING或在状态变为READY时停止。FAILED
MCP tools
MCP工具
- /
list_avatars— inspect custom avatars in project.get_avatar - /
create_avatar/update_avatar— manage custom characters; confirm destructive changes before applying them.delete_avatar - /
list_avatar_knowledge_documents— inspect attached knowledge.get_avatar_knowledge_document - /
create_avatar_knowledge_document/update_avatar_knowledge_document— manage domain knowledge when requested; confirm deletion first.delete_avatar_knowledge_document
- /
list_avatars— 检查项目中的自定义avatars。get_avatar - /
create_avatar/update_avatar— 管理自定义角色;在应用破坏性更改前确认。delete_avatar - /
list_avatar_knowledge_documents— 检查关联的知识文档。get_avatar_knowledge_document - /
create_avatar_knowledge_document/update_avatar_knowledge_document— 根据需求管理领域知识;删除前需确认。delete_avatar_knowledge_document
Application UI
应用程序UI
- Follow the current Avatar SDK README rather than copying component APIs from memory.
- In React, use with its stylesheet. Keep session creation and credential consumption on the server; browser code receives only one-time connection fields.
@runwayml/avatars-react - Use the packaged call component for standard UI or the SDK hooks for a custom experience. Handle microphone permission, connecting, active, error, and ended states.
- A failed connection needs a new Session because consumed credentials cannot be reused.
- 遵循当前Avatar SDK的README,不要凭记忆复制组件API。
- 在React中,使用及其样式表。将Session创建和凭证消费放在服务器端;浏览器代码仅接收一次性连接字段。
@runwayml/avatars-react - 使用打包的通话组件实现标准UI,或使用SDK钩子实现自定义体验。处理麦克风权限、连接中、活跃、错误和结束状态。
- 连接失败需要创建新的Session,因为已消费的凭证无法重复使用。
Knowledge
知识文档
Use the MCP knowledge-document tools above for live state and CRUD. Inspect attached documents before updating them, keep content focused and structured, and do not delete knowledge without confirmation.
使用上述MCP知识文档工具处理实时状态和CRUD操作。在更新关联文档前先检查内容,保持内容聚焦且结构化,未经确认不要删除知识文档。