bazi_compute
知己排盘引擎:输入出生时间(公历/农历/直接给四柱),返回完整八字排盘 JSON(四柱、十神、藏干、大运、旺衰、格局、调候等)。只做计算,不含解读文案、不做预测;转述结果时给结构不给吉凶断语,并说明身强弱与格局各流派口径不同。Compute a full BaZi (Four Pillars) chart from a birth datetime. Returns structured data only, no predictions or readings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isMale | No | 性别(男=true),影响大运顺逆 | |
| timeZone | No | IANA 时区,默认 Asia/Shanghai | |
| birthCity | No | 出生城市(可选,展示用) | |
| inputMode | Yes | solar=公历(填 gregorianLocal);lunar=农历(填 lunarInput);pillar=直接四柱(填 pillarInput) | |
| longitude | No | 出生地经度,配合 useTrueSolarTime | |
| zishiRule | No | 晚子时日柱归属规则,默认 sameDay | |
| lunarInput | No | ||
| pillarInput | No | 干支各两字,如 {year:'甲子',month:'丙寅',day:'戊辰',hour:'壬子'} | |
| gregorianLocal | No | 公历本地时间,格式 YYYY-MM-DDTHH:mm:ss(inputMode=solar 必填) | |
| useTrueSolarTime | No | 是否按真太阳时排盘,默认 false |