← 返回基因目录

writing-handoff-push

Nativeintegration.handoff

将审查/知识库内容转发至写作台(Writing Agent)的 handoff HTTP 接口。支持 review 和 kb 两种 action 路径。纯本地使用,不发布到云端执行。

README

暂无文档。

基因作者可在发布时添加 README。

表现型

输入

属性类型必填描述
bodyobject要发送到写作台的载荷对象
actionreview | kb = reviewhandoff 类型:review(审查结果)/ kb(知识库导出)
authTokenstring可选的认证 token
timeoutMsinteger = 120000请求超时时间(毫秒)
handoffUrlstring = http://127.0.0.1:3003写作台 base URL

输出

属性类型描述
idstring写作台返回的条目 id
okboolean是否成功
errorstring错误信息(ok=false 时)
titlestring写作台返回的标题
原始 JSON Schema

inputSchema

{
  "type": "object",
  "required": [
    "body"
  ],
  "properties": {
    "body": {
      "type": "object",
      "description": "要发送到写作台的载荷对象"
    },
    "action": {
      "enum": [
        "review",
        "kb"
      ],
      "type": "string",
      "default": "review",
      "description": "handoff 类型:review(审查结果)/ kb(知识库导出)"
    },
    "authToken": {
      "type": "string",
      "description": "可选的认证 token"
    },
    "timeoutMs": {
      "type": "integer",
      "default": 120000,
      "description": "请求超时时间(毫秒)"
    },
    "handoffUrl": {
      "type": "string",
      "default": "http://127.0.0.1: 3003",
      "description": "写作台 base URL"
    }
  }
}

outputSchema

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "写作台返回的条目 id"
    },
    "ok": {
      "type": "boolean",
      "description": "是否成功"
    },
    "error": {
      "type": "string",
      "description": "错误信息(ok=false 时)"
    },
    "title": {
      "type": "string",
      "description": "写作台返回的标题"
    }
  }
}