Duaer

集成

在 Duaer 里使用 Currents

在 Duaer 里,Currents 节点让数字组织直接操作 Currents,共 22 个操作,覆盖 Action、Instance、Project、Run、Signature、Spec File 等 8 项。

把 Currents 加到 Duaer 数字组织

  1. 在 Duaer 画布上打开节点面板,搜索 Currents,接在上一个节点后面。
  2. 在 Credential to connect with 里选择或新建 Currents API 凭证。见 Currents 凭证。
  3. 选 Resource 和 Operation。例如选 Action 和 Create。
  4. 填写这个操作显示的字段,例如 Project、Name、Action Type、Matcher Type。
  5. 点 Execute step,查看输出。

Duaer 里 Currents 的操作

Duaer 的 Currents 节点按资源分组提供这些操作:

  • Action:Create、Delete、Disable、Enable、Get、Get Many、Update
  • Instance:Get
  • Project:Get、Get Many、Get Insights
  • Run:Cancel、Cancel by GitHub CI、Delete、Find、Get、Get Many、Reset
  • Signature:Generate
  • Spec File:Get Many
  • Test:Get Many
  • Test Result:Get Many

在 Duaer 里把 Currents 当作 AI Agent 的工具

在 AI Agent 的「工具」(Tool)输入里搜索 Currents 并添加,由 Agent 决定什么时候调用。要让模型填写的字段,点字段旁的星形按钮,或写 $fromAI('name', '要填什么');固定值保持你设定的内容。

调用 Currents 节点没有的接口

加一个 HTTP Request 节点,Authentication 选 Predefined Credential Type,凭证类型选 Currents API,再选同一份凭证。Duaer 会用它签名请求,你只需填方法和地址。见 自定义操作。

常见问题

Duaer 支持 Currents 的哪些操作?

Duaer 的 Currents 节点共有 22 个操作,覆盖 Action、Instance、Project、Run、Signature、Spec File、Test、Test Result。例如 Action 有 Create、Delete、Disable、Enable、Get 等 7 项。

Duaer 的 Currents 用哪种凭证?

Duaer 的 Currents 使用 Currents API 凭证。密钥保存在凭证里,不写进节点参数。

同组