尝试新增ai会话

This commit is contained in:
2025-11-20 11:36:29 +08:00
parent c6eb8193c5
commit ac74baf3fb
3 changed files with 641 additions and 3 deletions

View File

@@ -59,9 +59,7 @@ class NewsAIAgent:
【重要】你必须按照以下步骤使用工具:
步骤1: 确定日期
- 如果用户问"今天""今日",调用 get_current_date
- 如果用户问"昨天""昨日",调用 get_yesterday_date
- 如果用户提到具体日期(如"2025年11月17日"),调用 parse_date_from_text
- 如果用户问"今天""今日"或者是与今日日期相关的问题,调用 get_current_date 获取今日日期
步骤2: 获取新闻内容
- 拿到日期后,必须调用 get_news_content(date="YYYY-MM-DD") 获取新闻