{
  "messages": [
    {
      "role": "system",
      "content": "You are a knowledge graph extraction agent for long-form novels. Extract entities and relations from the given text chunk. Return JSON only."
    },
    {
      "role": "user",
      "content": "Retrieved existing entity cards for this chunk. Reuse these canonical names/types when the same entity reappears; do not create near-duplicate entities if a card already matches the mention:\n[{\"entity_id\": \"E000006\", \"name\": \"姜戎\", \"type\": \"组织\", \"seen_range\": {\"first\": \"C0001\", \"last\": \"C0001\"}, \"mention_count\": 1, \"aliases\": [\"犬戎\"], \"descriptions\": [\"周朝外敌\"], \"matched_terms\": [\"姜戎\", \"犬戎\"], \"relations\": [\"周宣王|隶属|姜戎\"]}, {\"entity_id\": \"E000007\", \"name\": \"伯阳父\", \"type\": \"人物\", \"seen_range\": {\"first\": \"C0001\", \"last\": \"C0001\"}, \"mention_count\": 1, \"aliases\": [\"太史伯陽父\"], \"descriptions\": [\"解释童谣天象\"], \"matched_terms\": [\"太史伯陽父\"], \"relations\": [\"伯阳父|隶属|周宣王\"]}, {\"entity_id\": \"E000001\", \"name\": \"周宣王\", \"type\": \"人物\", \"seen_range\": {\"first\": \"C0001\", \"last\": \"C0001\"}, \"mention_count\": 1, \"aliases\": [\"宣王\", \"太子靖\"], \"descriptions\": [\"周朝君主\", \"御驾亲征\"], \"matched_terms\": [\"宣王\"], \"relations\": [\"伯阳父|隶属|周宣王\", \"周宣王|前往|镐京\"]}, {\"entity_id\": \"E000003\", \"name\": \"太原料民\", \"type\": \"事件仪式\", \"seen_range\": {\"first\": \"C0001\", \"last\": \"C0001\"}, \"mention_count\": 1, \"descriptions\": [\"宣王亲自料民\"], \"relations\": [\"周宣王|拥有|太原料民\"]}, {\"entity_id\": \"E000002\", \"name\": \"杜大夫\", \"type\": \"人物\", \"seen_range\": {\"first\": \"C0001\", \"last\": \"C0001\"}, \"mention_count\": 1, \"descriptions\": [\"化厉鸣冤\"]}, {\"entity_id\": \"E000004\", \"name\": \"童谣\", \"type\": \"概念法则\", \"seen_range\": {\"first\": \"C0001\", \"last\": \"C0001\"}, \"mention_count\": 1, \"aliases\": [\"谣言\"], \"descriptions\": [\"市井小儿传唱\"], \"relations\": [\"红衣小儿|拥有|童谣\"]}, {\"entity_id\": \"E000008\", \"name\": \"红衣小儿\", \"type\": \"生物种族\", \"seen_range\": {\"first\": \"C0001\", \"last\": \"C0001\"}, \"mention_count\": 1, \"aliases\": [\"荧惑星\"], \"descriptions\": [\"天戒人君化身\"], \"relations\": [\"红衣小儿|拥有|童谣\"]}, {\"entity_id\": \"E000005\", \"name\": \"镐京\", \"type\": \"地点\", \"seen_range\": {\"first\": \"C0001\", \"last\": \"C0001\"}, \"mention_count\": 1, \"descriptions\": [\"宣王回城\"], \"relations\": [\"周宣王|前往|镐京\"]}]\n\nOntology constraints (prefer these core types and normalized relations):\nAllowed core entity types:\n- 人物: 角色姓名, 主角/关键人物, 配角\n- 地点: 山岳/洞天, 洞府/殿阁, 城镇/疆域, 秘境\n- 组织: 宗门, 门派, 势力, 机构\n- 物品: 兵器, 法器, 经卷典籍, 其他道具\n- 生物种族: 妖兽, 异种, 神魔, 灵体\n- 事件仪式: 拜师, 祭祀, 闭关, 试炼\n- 概念法则: 大道/天道, 世界规则, 禁忌概念\n- 其他\nNormalized relations:\n- 位于: aliases=在, 身处, 位于, 处于, 坐落于\n- 前往: aliases=前往, 来到, 进入, 回到, 抵达\n- 拥有: aliases=拥有, 持有, 携带, 手持, 背着\n- 隶属: aliases=加入, 隶属, 拜入, 奉命, 外门\nKey rules:\n- 实体 type 必须落在核心类型集合中；subtype 仅作细分，不得替代 type。\n- 若实体更像角色身份标签而非完整人物名，优先使用职位称号。\n- 若实体强调修炼路径与长期体系，优先使用功法体系；强调施展动作时优先使用术法神通。\n- 无法安全判断时允许使用其他，但应在后续 Type Consolidation 中优先收缩。\n\nCHUNK_ID: C0002 | PARA_RANGE: 11-13\n\nFrom the text chunk below, extract entities and relations. Output STRICT JSON with keys: entities (list) and relations (list). Entity schema: {name,type,aliases,attributes,descriptions,evidence,mentions}. mentions is a list of {chunk_id,summary,attributes,evidence}. Relation schema: {subject,relation,object,evidence,mentions}. mentions is a list of {chunk_id,summary,evidence}. Use ontology core types when possible. Do not invent new top-level entity type labels outside the ontology if an existing type fits. Prefer normalized relation names from the ontology alias list. If an existing entity card clearly matches a mention in this chunk, reuse that card's canonical name. If the chunk uses a title, alias, or shortened reference that matches a card, keep it under the same entity instead of splitting it. Keep outputs compact: at most 8 entities and 8 relations for this pass. Each description/evidence/summary should be short (<=30 characters) and avoid full sentences. Limit each entity to <=2 descriptions and <=2 mentions; each relation to <=1 mention. For mentions in this chunk, set chunk_id to the provided CHUNK_ID. Only include information supported by the chunk. Return a single JSON object and nothing else (no markdown, no code fences). If unsure, return {\"entities\":[],\"relations\":[]}.\n\nTEXT CHUNK:\n次日早朝，三公六卿，齊集殿下，拜舞起居畢。宣王將夜來所聞小儿之歌，述于眾臣：“此語如何解說？”大宗伯召虎對曰：“厚，是山桑木名，可以為弓，故曰臣弧。箕，草名，可結之以為箭袋，故曰箕舵。据臣愚見：國家恐有弓矢之變。”太宰仲山甫奏曰：“弓矢，乃國家用武之器。王今料民太原，思欲報犬戎之仇，若兵連不解，必有亡國之患矣！”宣王口雖不言，點頭道是。又問：“此語傳自紅衣小儿。那紅衣小儿，還是何人？”太史伯陽父奏曰：“凡街市無根之語，謂之謠言。上天做戒人君，命熒惑星化為小儿，造作謠言，使群儿習之，謂之童謠。小則寓一人之吉凶，大則系國家之興敗。熒變火星，是以色紅。今日亡國之謠；乃天所以做王也。”宣王曰：“朕今赦姜戎之罪，罷太原之兵，將武庫內所藏弧矢，盡行焚棄，再令國中不許造賣。其禍可息乎？”伯陽父答曰：“臣觀天象，其兆已成，似在王宮之內，非關外間弓矢之事，必主后世有女支亂國之禍，況謠言曰：‘月將升，日將沒’，日者人君之象，月乃陰類，日沒月升，陰進陽衰，其為女主干政明矣。”宣王又曰：“朕賴姜后主六宮之政，甚有賢德，其進御宮嬪，皆出選擇，女禍從何而來耶？”伯陽父答曰：“謠言‘將升’‘將沒’原非目前之事。況‘將’之為言，且然百未必之詞。王今修德以楔之，自然化凶為吉。弧矢不須焚棄。”宣王聞奏，且信且疑，不樂而罷。起駕回宮。\n\n姜后迎人。坐定，宣王遂將群臣之語，備細述于姜后。姜后曰：“宮中有一异事，正欲啟奏。”王問：“有何异事？”姜后奏曰：“今有先王手內老宮人，年五十余，自先朝怀孕，到今四十余年，昨夜方生一女。”宜玉大惊，問曰：“此女何在？”姜后曰：“妾思此乃不祥之物，已令人將草席包裹，拋棄于二十里外清水河中矣。”宣王即宣老宮人到宮，問其得孕之故。老宮人跪而答曰：“婢子聞夏桀王末年，褒城有神人化為二龍，降于王庭，口流涎沫，忽作人言，謂桀王曰：‘吾乃褒城之二君也。’桀王恐懼，欲殺二龍，命大史占之，不吉。欲逐去之，再占，又不吉。太史奏道：‘神人下降，必主幀祥，王何不請其康而藏之？策乃龍之精气，藏之必主獲福。’桀王命太史再占，得大吉之兆。乃布市設祭于龍前，取金盤收其涎沫，置于朱校之中，——忽然風雨大作，二龍飛去，——桀王命收藏于內庫。自殷世歷六百四十四年，傳二十八主，至于我周，又將三百年，未嘗開觀。到先王未年，讀內放出毫光，有掌庫官奏知先王。先王問：‘棱中何物？’掌庫官取簿籍獻上，具載藏漾之因。先王命發而觀之。恃臣打開金犢，手捧金盤呈上。先王將手接盤，一時失手墮地，所藏涎沫，橫流庭下。忽化成小小元富一個，盤旋于庭中，內侍逐之，直人王宮，忽然不見。那時婢子年才一十二歲，偶踐富跡，心中如有所感，從此肚腹漸大，如怀孕一般。先王怪婢子不夫而孕，囚于幽室，到今四十年矣。夜來腹中作痛，忽生一女，守宮侍者，不敢隱瞞，只得奏知娘娘。娘娘道此怪物，不可容留，隨命侍者領去，棄之溝讀。婢子罪該万死！”宣王曰：“此乃先朝之事，与你無干。”遂將老宮人喝退。隨喚守宮侍者，往清水河看視女嬰下落。不一時，恃者回報：“已被流水漂去矣。”宣王不疑。\n\n次日早朝，召大史伯陽父告以龍贅之事，因曰：“此女嬰已死于溝讀，卿試占之，以觀妖气消滅何如？”伯陽父布卦已畢，獻上爵詞。詞曰："
    }
  ]
}