{"schema_version":"gendangzou-capabilities-v1","contract_version":"gendangzou-api-v2","capability":{"id":"sector.graph","domain":"sector","title":"查询板块局部关系图","summary":"返回选中板块的一跳层级、产业、演化和市场关联。","intents":["get_sector_graph","analyze_sector_relationships"],"path":"/api/gendangzou/sectors/{sector_id}/graph","snapshot_bound":true,"compact_supported":true,"method":"GET","detail_url":"/api/gendangzou/capabilities/sector.graph","parameters":["sector_id","snapshot_id","as_of","detail","include"],"response_fields":["snapshot","focus_sector_id","nodes","edges","summary"],"related_capabilities":["sector.detail","signal.dynamics.list"],"freshness":"daily_snapshot","pagination":false,"documentation_url":"https://docs.mobiusquant.ai/zh/gendangzou/capabilities/sector.graph","agent_hints":{"reuse_snapshot_id_for_follow_up":true,"fetch_evidence_on_demand":true,"recommended_detail":"compact","compact_scope":"snapshot_context"},"request":{"parameters":[{"name":"sector_id","in":"path","required":true,"schema":{"maxLength":128,"minLength":3,"type":"string"}},{"name":"snapshot_id","in":"query","required":false,"schema":{"anyOf":[{"maxLength":128,"minLength":8,"type":"string"},{"type":"null"}],"default":null}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"default":null,"description":"Return the latest snapshot on or before this date"}},{"name":"detail","in":"query","required":false,"schema":{"default":"full","description":"full preserves the complete web response; compact returns the stable snapshot reference intended for agents","enum":["full","compact"],"type":"string"}},{"name":"include","in":"query","required":false,"schema":{"anyOf":[{"maxLength":80,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated compact snapshot expansions: sector_dynamics,coverage"}}]},"response":{"model":"SectorGraphResponse","top_level_fields":[{"name":"snapshot","required":true},{"name":"focus_sector_id","required":true},{"name":"nodes","required":true},{"name":"edges","required":true},{"name":"summary","required":true}],"schema":{"properties":{"snapshot":{"anyOf":[{"$ref":"#/$defs/SnapshotContext"},{"$ref":"#/$defs/SnapshotReference"}],"title":"Snapshot"},"focus_sector_id":{"title":"Focus Sector Id","type":"string"},"nodes":{"items":{"$ref":"#/$defs/SectorGraphNode"},"title":"Nodes","type":"array"},"edges":{"items":{"$ref":"#/$defs/SectorGraphEdge"},"title":"Edges","type":"array"},"summary":{"$ref":"#/$defs/SectorGraphSummary"}},"required":["snapshot","focus_sector_id","nodes","edges","summary"],"title":"SectorGraphResponse","type":"object","$defs":{"SectorGraphEdge":{"properties":{"edge_id":{"title":"Edge Id","type":"string"},"source_sector_id":{"title":"Source Sector Id","type":"string"},"source_sector_name":{"title":"Source Sector Name","type":"string"},"target_sector_id":{"title":"Target Sector Id","type":"string"},"target_sector_name":{"title":"Target Sector Name","type":"string"},"category":{"enum":["hierarchy","industry","lineage","market"],"title":"Category","type":"string"},"relation":{"title":"Relation","type":"string"},"confidence":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"null"}],"default":null,"title":"Confidence"},"rationale":{"default":"","title":"Rationale","type":"string"},"effective_from":{"default":"","title":"Effective From","type":"string"},"lifecycle_relation":{"default":false,"title":"Lifecycle Relation","type":"boolean"},"generic_relation":{"default":false,"title":"Generic Relation","type":"boolean"},"pattern":{"default":"","title":"Pattern","type":"string"},"linkage_score":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Linkage Score"},"stock_overlap":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Stock Overlap"},"independent_signal":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Independent Signal"},"market_trade_date":{"default":"","title":"Market Trade Date","type":"string"}},"required":["edge_id","source_sector_id","source_sector_name","target_sector_id","target_sector_name","category","relation"],"title":"SectorGraphEdge","type":"object"},"SnapshotReference":{"additionalProperties":false,"properties":{"snapshot_id":{"title":"Snapshot Id","type":"string"},"namespace":{"title":"Namespace","type":"string"},"as_of":{"title":"As Of","type":"string"},"release_id":{"title":"Release Id","type":"string"},"taxonomy_version":{"title":"Taxonomy Version","type":"string"},"heat_run_id":{"title":"Heat Run Id","type":"string"},"mapping_run_id":{"title":"Mapping Run Id","type":"string"},"etf_run_id":{"default":"","title":"Etf Run Id","type":"string"},"market_run_id":{"default":"","title":"Market Run Id","type":"string"},"market_trade_date":{"default":"","title":"Market Trade Date","type":"string"},"market_status":{"default":"unavailable","enum":["fresh","carried_forward","reaggregated","unavailable"],"title":"Market Status","type":"string"},"market_age_days":{"default":0,"title":"Market Age Days","type":"integer"},"market_mapping_reaggregated":{"default":false,"title":"Market Mapping Reaggregated","type":"boolean"},"published_at":{"title":"Published At","type":"string"},"publication_mode":{"enum":["published","derived"],"title":"Publication Mode","type":"string"},"data_status":{"const":"complete","default":"complete","title":"Data Status","type":"string"},"response_profile":{"const":"compact","default":"compact","title":"Response Profile","type":"string"},"sector_dynamics":{"anyOf":[{"$ref":"#/$defs/SnapshotSectorDynamics"},{"type":"null"}],"default":null},"coverage":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"default":null,"title":"Coverage"}},"required":["snapshot_id","namespace","as_of","release_id","taxonomy_version","heat_run_id","mapping_run_id","published_at","publication_mode"],"title":"SnapshotReference","type":"object"},"SnapshotSectorDynamics":{"additionalProperties":false,"properties":{"schema_version":{"title":"Schema Version","type":"string"},"dynamics_run_id":{"title":"Dynamics Run Id","type":"string"},"as_of":{"title":"As Of","type":"string"},"trade_date":{"title":"Trade Date","type":"string"},"formula_version":{"title":"Formula Version","type":"string"},"market_context":{"additionalProperties":true,"title":"Market Context","type":"object"},"summary":{"additionalProperties":true,"title":"Summary","type":"object"},"historical_readiness":{"additionalProperties":true,"title":"Historical Readiness","type":"object"},"items":{"items":{"$ref":"#/$defs/SectorAnomalySummary"},"title":"Items","type":"array"},"links":{"items":{"$ref":"#/$defs/SectorLinkageSummary"},"title":"Links","type":"array"}},"required":["schema_version","dynamics_run_id","as_of","trade_date","formula_version"],"title":"SnapshotSectorDynamics","type":"object"},"SectorLinkageSummary":{"additionalProperties":false,"properties":{"source_sector_id":{"title":"Source Sector Id","type":"string"},"source_sector_name":{"title":"Source Sector Name","type":"string"},"target_sector_id":{"title":"Target Sector Id","type":"string"},"target_sector_name":{"title":"Target Sector Name","type":"string"},"relation_kind":{"enum":["hierarchy","taxonomy_semantic"],"title":"Relation Kind","type":"string"},"relation":{"title":"Relation","type":"string"},"pattern":{"enum":["same_day_resonance","same_day_divergence","hierarchy_divergence","structural_overlap"],"title":"Pattern","type":"string"},"linkage_score":{"title":"Linkage Score","type":"number"},"confidence":{"title":"Confidence","type":"number"},"stock_overlap":{"title":"Stock Overlap","type":"number"},"independent_signal":{"title":"Independent Signal","type":"boolean"},"rationale":{"default":"","title":"Rationale","type":"string"}},"required":["source_sector_id","source_sector_name","target_sector_id","target_sector_name","relation_kind","relation","pattern","linkage_score","confidence","stock_overlap","independent_signal"],"title":"SectorLinkageSummary","type":"object"},"SectorAnomalySummary":{"additionalProperties":false,"properties":{"sector_id":{"title":"Sector Id","type":"string"},"sector_name":{"title":"Sector Name","type":"string"},"layer":{"title":"Layer","type":"string"},"relative_direction":{"enum":["stronger","weaker","neutral"],"title":"Relative Direction","type":"string"},"absolute_direction":{"enum":["positive","negative","neutral"],"title":"Absolute Direction","type":"string"},"anomaly_type":{"enum":["counter_trend","relative_resilience","relative_weakness","broad_internal_move","flow_price_divergence","concentrated_move","cross_section_outlier"],"title":"Anomaly Type","type":"string"},"anomaly_score":{"title":"Anomaly Score","type":"number"},"attention_score":{"title":"Attention Score","type":"number"},"internal_confirmation":{"title":"Internal Confirmation","type":"number"},"linkage_score":{"title":"Linkage Score","type":"number"},"linkage_confirmation":{"title":"Linkage Confirmation","type":"number"},"confidence":{"title":"Confidence","type":"number"},"sector_return":{"title":"Sector Return","type":"number"},"market_return":{"title":"Market Return","type":"number"},"excess_return":{"title":"Excess Return","type":"number"},"sector_breadth":{"title":"Sector Breadth","type":"number"},"market_breadth":{"title":"Market Breadth","type":"number"},"breadth_gap":{"title":"Breadth Gap","type":"number"},"effective_sample_size":{"title":"Effective Sample Size","type":"number"},"top1_weight":{"title":"Top1 Weight","type":"number"},"covered_stock_count":{"title":"Covered Stock Count","type":"integer"},"explanation":{"default":"","title":"Explanation","type":"string"},"linked_sectors":{"items":{"additionalProperties":true,"type":"object"},"title":"Linked Sectors","type":"array"}},"required":["sector_id","sector_name","layer","relative_direction","absolute_direction","anomaly_type","anomaly_score","attention_score","internal_confirmation","linkage_score","linkage_confirmation","confidence","sector_return","market_return","excess_return","sector_breadth","market_breadth","breadth_gap","effective_sample_size","top1_weight","covered_stock_count"],"title":"SectorAnomalySummary","type":"object"},"SectorGraphSummary":{"properties":{"node_count":{"title":"Node Count","type":"integer"},"edge_count":{"title":"Edge Count","type":"integer"},"category_counts":{"additionalProperties":{"type":"integer"},"title":"Category Counts","type":"object"},"generic_relation_count":{"default":0,"title":"Generic Relation Count","type":"integer"},"market_relation_count":{"default":0,"title":"Market Relation Count","type":"integer"}},"required":["node_count","edge_count"],"title":"SectorGraphSummary","type":"object"},"SectorGraphNode":{"properties":{"sector_id":{"title":"Sector Id","type":"string"},"name":{"title":"Name","type":"string"},"layer":{"default":"","title":"Layer","type":"string"},"status":{"default":"","title":"Status","type":"string"},"object_type":{"default":"","title":"Object Type","type":"string"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Parent Id"},"parent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Parent Name"},"definition":{"default":"","title":"Definition","type":"string"},"current_in_snapshot":{"default":true,"title":"Current In Snapshot","type":"boolean"},"lifecycle_state":{"default":"active","title":"Lifecycle State","type":"string"},"roles":{"items":{"enum":["focus","parent","child","related","predecessor","successor","market_linked"],"type":"string"},"title":"Roles","type":"array"},"policy_heat":{"anyOf":[{"$ref":"#/$defs/HeatValue"},{"type":"null"}],"default":null},"market_attention":{"anyOf":[{"$ref":"#/$defs/HeatValue"},{"type":"null"}],"default":null},"market_trading":{"anyOf":[{"$ref":"#/$defs/HeatValue"},{"type":"null"}],"default":null}},"required":["sector_id","name"],"title":"SectorGraphNode","type":"object"},"HeatValue":{"properties":{"level":{"title":"Level","type":"number"},"momentum":{"title":"Momentum","type":"number"},"contribution_count":{"default":0,"title":"Contribution Count","type":"integer"}},"required":["level","momentum"],"title":"HeatValue","type":"object"},"SnapshotContext":{"additionalProperties":false,"properties":{"snapshot_id":{"title":"Snapshot Id","type":"string"},"namespace":{"title":"Namespace","type":"string"},"as_of":{"title":"As Of","type":"string"},"release_id":{"title":"Release Id","type":"string"},"taxonomy_version":{"title":"Taxonomy Version","type":"string"},"heat_run_id":{"title":"Heat Run Id","type":"string"},"mapping_run_id":{"title":"Mapping Run Id","type":"string"},"etf_run_id":{"default":"","title":"Etf Run Id","type":"string"},"market_run_id":{"default":"","title":"Market Run Id","type":"string"},"market_trade_date":{"default":"","title":"Market Trade Date","type":"string"},"market_status":{"default":"unavailable","enum":["fresh","carried_forward","reaggregated","unavailable"],"title":"Market Status","type":"string"},"market_age_days":{"default":0,"title":"Market Age Days","type":"integer"},"market_mapping_reaggregated":{"default":false,"title":"Market Mapping Reaggregated","type":"boolean"},"sector_dynamics":{"anyOf":[{"$ref":"#/$defs/SnapshotSectorDynamics"},{"type":"null"}],"default":null},"published_at":{"title":"Published At","type":"string"},"publication_mode":{"enum":["published","derived"],"title":"Publication Mode","type":"string"},"data_status":{"const":"complete","default":"complete","title":"Data Status","type":"string"},"coverage":{"additionalProperties":{"type":"integer"},"title":"Coverage","type":"object"}},"required":["snapshot_id","namespace","as_of","release_id","taxonomy_version","heat_run_id","mapping_run_id","published_at","publication_mode"],"title":"SnapshotContext","type":"object"}}}}}}