日期差计算
answer_date_diffCalculate the difference between two dates in total days and broken down into years, months, and days. Handles ISO, YYYY/MM/DD, and Chinese date formats for interval questions.
Instructions
计算两个日期相差的天数与年/月/日拆分。日期支持 ISO、YYYY/MM/DD、中文(2024年3月5日)。涉及"间隔多少天/多久"的问题时调用。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | 结束日期 | |
| from | Yes | 起始日期 | |
| _memoryRequestKey | No | 兼容代理注入的内部请求键,用于合并同一次模型工具调用 |