← 返回
AI智能 中文

orbcafe-agentui-chat

Build ORBCAFE chat and copilot experiences with AgentPanel, StdChat, CopilotChat, ChatMessage typing flow, and AgentUICardHooks using official examples patte...
利用官方示例模式,使用 AgentPanel、StdChat、CopilotChat、ChatMessage 输入流程及 AgentUICardHooks 构建 ORBCAFE 聊天与副驾驶体验。
shenruiyang
AI智能 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 489
下载
💾 6
安装
1
版本
#latest

概述

ORBCAFE AgentUI Chat

Workflow

  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 检查消息状态、streaming、card hooks 和 copilot 外壳边界。
  6. 输出验收步骤与“没效果”排障。

Installation and Bootstrapping (Mandatory)

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

本仓库联调:

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

Output Contract

  1. Mode: Component-first.
  2. Chat decision: 选择 AgentPanel / StdChat / CopilotChat 并说明依据。
  3. Minimal code: 一个可直接粘贴的最小片段,只允许从 orbcafe-ui 导入公共 API。
  4. State shape: messagesisResponding 以及 copilot 外壳状态的最小结构。
  5. Verify: 至少 3 条可执行验收步骤,覆盖发送、streaming、card action;如果是 copilot,还要覆盖打开/关闭和拖拽/缩放。
  6. Troubleshooting: 至少 3 条“UI 看得到但没有效果”的排查项。

Examples-Based Experience Summary

  • StdChat 是标准聊天布局层,负责消息区和输入区,不负责标题、浮窗、拖拽和缩放。
  • AgentPanelStdChat 的带头部封装,适合工作台或整页聊天。
  • CopilotChat 只负责 copilot 面板内容层;浮动按钮、定位、吸附、拖拽和 resize 必须在页面壳层实现。
  • assistant typing flow 的稳定基线是:append assistant message with isStreaming: true,然后在 onMessageStreamingComplete 中改回 false
  • 卡片交互统一走 AgentUICardHooks.onCardEvent,不要直接耦合内部 renderer。

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 06:36 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,353 📥 317,926
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 710 📥 243,655
developer-tools

FIND SAP API

shenruiyang
适用于 OpenClaw 的可靠 SAP Business Accelerator Hub API 规范下载器,使用 SAP_HUB_USERNAME 和 SAP_HUB_PASSWORD 通过 Playwright Chromium 登录
★ 0 📥 651