返回顶部
o

orbcafe-agentui-chatORBCAFE聊天代理

Build ORBCAFE chat and copilot experiences with AgentPanel, StdChat, CopilotChat, ChatMessage typing flow, and AgentUICardHooks using official examples patterns. Use for full-page chat, floating copilot, streaming replies, markdown/cards rendering, and when chat UI appears but send, stream, card actions, drag, or resize behavior has no effect.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
192
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

orbcafe-agentui-chat

ORBCAFE AgentUI 聊天组件

工作流程

  1. 1. 首先对照 skills/orbcafe-ui-component-usage/references/module-contracts.md,确认此为 Component-first 模块。
  2. 使用 references/component-selection.md 选择 AgentPanel / StdChat / CopilotChat。
  3. 执行安装与最小接入。
  4. 使用 references/recipes.md 输出最小可运行代码。
  5. 使用 references/guardrails.md 检查消息状态、流式传输、卡片钩子及 copilot 外壳边界。
  6. 输出验收步骤与“无效果”排障指南。

安装与引导(必选)

bash
npm install orbcafe-ui @mui/material @mui/icons-material @mui/x-date-pickers @emotion/react @emotion/styled dayjs

本仓库联调:

bash
npm run build
cd examples
npm install
npm run dev

参考实现:

  • - examples/app/chat/ChatExampleClient.tsx
  • examples/app/copilot/CopilotExampleClient.tsx
  • src/components/AgentUI/README.md

输出约定

  1. 0. 模式:Component-first。
  2. 聊天决策:选择 AgentPanel / StdChat / CopilotChat 并说明选择依据。
  3. 最小代码:可直接粘贴的最小代码片段,仅允许从 orbcafe-ui 导入公共 API。
  4. 状态结构:messages、isResponding 以及 copilot 外壳状态的最小结构。
  5. 验证:至少 3 条可执行的验收步骤,覆盖发送、流式传输、卡片操作;若为 copilot,还需覆盖打开/关闭及拖拽/缩放。
  6. 排障指南:至少 3 条“UI 可见但无效果”的排查项。

基于示例的经验总结

  • - StdChat 是标准聊天布局层,负责消息区域和输入区域,不负责标题、浮动窗口、拖拽和缩放。
  • AgentPanel 是 StdChat 的带头部封装,适用于工作台或全页聊天场景。
  • CopilotChat 仅负责 copilot 面板内容层;浮动按钮、定位、吸附、拖拽和尺寸调整必须在页面外壳层实现。
  • 助手打字流程的稳定基线为:以 isStreaming: true 追加助手消息,然后在 onMessageStreamingComplete 中将其改回 false。
  • 卡片交互统一通过 AgentUICardHooks.onCardEvent 处理,不要直接耦合内部渲染器。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 orbcafe-agentui-chat-1776071642 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 orbcafe-agentui-chat-1776071642 技能

通过命令行安装

skillhub install orbcafe-agentui-chat-1776071642

下载

⬇ 下载 orbcafe-agentui-chat v1.0.0(免费)

文件大小: 5.35 KB | 发布时间: 2026-4-15 13:48

v1.0.0 最新 2026-4-15 13:48
Skill scope updated to focus on AgentUI chat and copilot features using official example patterns.

- Dedicated to building ORBCAFE chat and copilot UIs with components such as AgentPanel, StdChat, CopilotChat, and relevant hooks.
- Old general integration and routing references removed; new, focused guides and recipes added for chat experiences.
- Output contract redefined: requires explicit mode, guided component selection, minimal code, state shape, verification steps, and troubleshooting for chat interactions.
- Examples and workflows clarified for streaming, card actions, and copilot behaviors, emphasizing observable process and debugging steps.
- Installation baseline and example references updated for easier onboarding and validation.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部