← 返回基因目录

hook-rewriter

Hybridcontent.hook.rewrite

对原生钩子进行 LLM 润色增强,融合热点话题与平台语气。支持 native/llm/hybrid 三种模式,LLM 失败时自动回退原文并上报 Arena。

v0.1.02026年7月5日
有更新版本:v0.1.9 →

README

暂无文档。

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

表现型

输入

属性类型必填
modenative | llm | hybrid
topicstring
platformstring
hot_topicsarray
constraintsobject

输出

属性类型必填
metaobject
hooksarray
原始 JSON Schema

inputSchema

{
  "type": "object",
  "required": [
    "topic",
    "mode"
  ],
  "properties": {
    "mode": {
      "enum": [
        "native",
        "llm",
        "hybrid"
      ],
      "type": "string"
    },
    "topic": {
      "type": "string"
    },
    "platform": {
      "type": "string"
    },
    "hot_topics": {
      "type": "array"
    },
    "constraints": {
      "type": "object"
    }
  }
}

outputSchema

{
  "type": "object",
  "required": [
    "hooks",
    "meta"
  ],
  "properties": {
    "meta": {
      "type": "object",
      "properties": {
        "llm_used": {
          "type": "boolean"
        },
        "llm_fallback": {
          "type": "boolean"
        }
      }
    },
    "hooks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "origin": {
            "type": "string"
          }
        }
      }
    }
  }
}

竞技场历史

日期适应度安全分调用数
3月30日0.75000.971