AI 对话界面
Agent 回答
助手先展示过程再给出答案:工具步骤逐个转圈并打勾,结果按行填入小表格,最后一句总结收尾。
安装
npx @imgcli/cli add agent-answer使用
import { AgentAnswer } from "@/components/imgcli/agent-answer";
<AgentAnswer />默认参数下以 30 fps 渲染 156 帧(5.2 秒),预览画布为 960 × 540。
Use <AgentAnswer steps={[{ label: "Read the changelog", detail: "v2.0" }]} rows={[["Opening line", "3s", "centered-build"]]} summary="A 27-second cut." /> for 156 frames at 30 fps (AGENT_ANSWER_SECONDS).
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
agentName | string | — | |
steps | readonly AgentAnswerStep[] | — | |
columns | readonly [string, string, string] | — | |
rows | readonly (readonly [string, string, string])[] | — | |
summary | string | — | |
fontFamily | string | — | A face from the Imgcli font list, or any loaded CSS font stack. |
accentColor | string | — | |
theme | Partial<ImgcliTheme> | — | |
mode | "light" | "dark" | — | |
speed | number | — |
许可
MIT 许可,可免费用于个人及商业项目,保留版权和许可声明。
Copyright (c) 2026 Ricky (Imgcli) <https://imgcli.com>
常见问题
如何在 Remotion 项目中使用Agent 回答?
运行 npx @imgcli/cli add agent-answer。CLI 会把组件源码复制到项目的 components/imgcli/ 目录并安装依赖,之后可以直接修改源码。
Agent 回答能做什么?
助手先展示过程再给出答案:工具步骤逐个转圈并打勾,结果按行填入小表格,最后一句总结收尾。
使用Agent 回答前需要准备什么?
准备 Node.js 20.19 或更高版本,以及一个 Remotion 项目。新项目可以用 npx create-video@latest 创建。免费组件采用 MIT 许可证。