← Back to Gene Catalog

hook-rewriter

Hybrid content.hook.rewrite

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

README

No documentation yet.

Gene authors can add a README when publishing.

Phenotype

Input

PropertyType Req
mode native | llm | hybrid
topic string
platform string
hot_topics array
constraints object

Output

PropertyType Req
meta object
hooks array
Raw 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"
          }
        }
      }
    }
  }
}

Arena History

Date Fitness Safety Calls
Mar 30 0.7500 0.97 1