Files
zk-data-agent/skills/label-master/knowledge/标签/工具类/时间.md
T
2026-05-09 17:49:53 +08:00

47 lines
3.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 时间
## 标注输出
> 注意:旧标签资料中同时存在 tag 标签和 Function 定义。本卡片不直接声明最终训练标签;生成数据前必须结合 `判断维度/标注输出形态.md` 确认当前任务使用 Agent 形式还是 Function 形式。
- 旧 tag 标签:时间
- Agent 包装候选(不代表最终):Agent(tag="时间")
- Function 输出候选:CalendarQA类型:Object功能:日历信息查询参数:type: 枚举类型,查询的时间类型target_time: Optional[str] 时间槽位location: Optional[str] 目标地点 废弃
- 推荐输出形态:待确认。
## 功能抽象
时间
## 适用范围
日历、日期、时间查询也包括指定地点(查询时区)的日历、日期、时间查询
## 典型 Query
query:现在西雅图几点当前结果满足:【手机/平板端】时间/计算器 大模型结果展示精品卡片-技术方案小爱llmSkill使用query和session调用智谱模型。智谱调用search_calendar_info api 获取工具结果。智谱模型根据工具结果进行回复总结,并输出functioncall参数。llmSkill根据functioncall参数展示卡片,并输出流式话术。时区方案:智谱当前做法:智谱根据小爱提供时区数据,内部维护词表实现。理想态做法:语义理解:与天气相同,输出Location槽位(包含:country、province、city、district、town、poi等)。当前已经将这些信息注入给模型结果满足:skill根据Location槽位获取zoneId如果有zoneIdskill根据zoneId调用function api获取结果,注入结果模型回复。如果无zoneId,则使用location信息调用poi接口获取经纬度,根据经纬度计算时区。如果poi接口无结果,skill调用兜底回复模型。
## 三级语义功能点
ConfirmAction<object@Calendar[leapMonth]>SearchAction<object@Calendar[nearestFestival]>ConfirmAction<object@Calendar[workday]>SearchAction<object@Calendar[abroadWeekDay]>SearchAction<object@Calendar[festivalDate]>SearchAction<object@Calendar[localDate]>ConfirmAction<object@Calendar[dateExist]>SearchAction<object@Calendar[holidayArrangements]>SearchAction<object@Calendar[localTime]>SearchAction<object@Calendar[localWeekDay]>SearchAction<object@Calendar[worldDate]>ConfirmAction<object@Calendar[leapYear]>SearchAction<object@Calendar[worldTime]>ConfirmAction<object@Calendar[shujiu]>ConfirmAction<object@Calendar[festivalDate]>SearchAction<object@Calendar[shujiu]>ActivateAction<object@Calendar[solarLunarConversion]>SearchAction<object@Calendar[birthday]>ConfirmAction<object@Calendar[localWeekDay]>ConfirmAction<object@Calendar[tgdz]>ConfirmAction<object@Calendar[localDate]>ConfirmAction<object@Calendar[worldDate]>ConfirmAction<object@Calendar[abroadWeekDay]>SearchAction<object@Calendar[festivalTime]>ConfirmAction<object@Calendar[festivalTime]>ConfirmAction<object@Calendar[localTime]>ConfirmAction<object@Calendar[worldTime]>
## Function / Agent 说明
CalendarQA类型:Object功能:日历信息查询参数:type: 枚举类型,查询的时间类型target_time: Optional[str] 时间槽位location: Optional[str] 目标地点 废弃
## 满足边界问题
中考是什么时候雷军的生日是什么时候三湾改编是什么时候我的生日是什么时候五一劳动节
## 易混淆标签
QA提醒记忆personalData
## 划分原则
原则1:个性化信息的时间给QA或personalData自己召回,非个性信息中,只有依赖日历作为满足的,给时间问答,只包括节日、节气、假期,其他都是QA公共考试时间:中考、高考、法考、托福、雅思,给QA名人生日问答:全部给QA张三生日问答:给QA(personal data自己召回)节日时间——时间问答CalendarQA节气时间——时间问答CalendarQA假期时间——时间问答CalendarQA暑假寒假时间——时间问答CalendarQA要查黄历的——QA阅兵是哪天——QA
## 未解决问题
待补充。