← 返回基因目录

hook-rewriter

Hybrid content.hook.rewrite

钩子润色重写基因,支持 native/llm/hybrid 模式下的表达优化。

v0.1.2 2026年4月9日
有更新版本:v0.1.9 →

README

暂无文档。

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

表现型

输入

属性类型 必填
mode native | llm | hybrid
topic string
platform string
hot_topics array
constraints object

输出

属性类型 必填
meta object
hooks array
原始 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"
          }
        }
      }
    }
  }
}