{
  "name": "multiagent-wechat-worker",
  "endpoints": {
    "health": "GET /health",
    "run": "POST /run",
    "run_and_publish": "POST /run-and-publish",
    "publish_only": "POST /publish-only"
  },
  "llm_override": {
    "base_url": "OpenAI-compatible endpoint, e.g. https://api.openai.com/v1 or http://127.0.0.1:11434/v1",
    "api_key": "optional in body; fallback to worker secret OPENAI_API_KEY",
    "model": "e.g. gpt-4o-mini / kimi-k2 / qwen-plus / llama3.1:8b"
  },
  "publish_bridge": {
    "mode": "webhook",
    "env_vars": [
      "PUBLISH_WEBHOOK_URL",
      "PUBLISH_WEBHOOK_TOKEN"
    ],
    "note": "Worker 调用发布桥（建议在本地/服务器实现桥接服务，再由桥接服务调用 wechat-api.ts）"
  },
  "example": {
    "topic": "AI 时代个人开发者如何搭建内容自动化流水线",
    "audience": "微信公众号技术读者",
    "style": "实战+轻幽默",
    "constraints": [
      "避免收益承诺",
      "给出可执行步骤"
    ],
    "rounds": 2,
    "llm": {
      "base_url": "https://api.openai.com/v1",
      "model": "gpt-4o-mini"
    },
    "publish": {
      "dry_run": true,
      "author": "宝玉",
      "cover_path": "imgs/cover.png"
    }
  }
}