日期差计算
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日)。涉及"间隔多少天/多久"的问题时调用。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"from": "<from>",
"to": "<to>"
},
"name": "answer_date_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | 结束日期 | |
| from | Yes | 起始日期 | |
| _memoryRequestKey | No | 兼容代理注入的内部请求键,用于合并同一次模型工具调用 |