Commit Graph

49 Commits

Author SHA1 Message Date
872c44a0c0 refactor: extract prompt building and image workflow routing from agent 2026-03-01 16:06:43 +08:00
433f6e77e5 refactor: extract batch quote helpers from pydantic agent 2026-03-01 16:00:28 +08:00
3e2518b308 refactor: extract profile and context builders from pydantic agent 2026-03-01 15:54:32 +08:00
34b27d793e refactor: extract text risk detectors from pydantic agent 2026-03-01 15:49:45 +08:00
62e5fed25c refactor: extract agent prompt builders into dedicated module 2026-03-01 15:47:55 +08:00
fc05b60d1a refactor: extract collection intent helpers from pydantic agent 2026-03-01 15:38:20 +08:00
54b1db17a7 refactor: extract order helpers and stabilize first-image ack replies 2026-03-01 15:30:56 +08:00
55e6fd51ec refactor: extract prompt bundle builder from agent 2026-03-01 15:21:49 +08:00
b323a64b0b refactor: extract post-ops helpers from pydantic agent 2026-03-01 15:14:57 +08:00
6458e7dcca refactor: extract ai reply finalization flow from agent 2026-03-01 15:08:14 +08:00
dff4a8baaa refactor: split order handling and ai routing flow from agent 2026-03-01 15:02:27 +08:00
e62b39e0c3 refactor: extract pre-rules and find-image quote flow from agent 2026-03-01 14:54:11 +08:00
3c825547cf refactor: add rule engine, risk service, quote state machine, and replay tests 2026-03-01 14:30:14 +08:00
dc2565b8f3 fix: reply with standalone ping for meaningless short customer texts 2026-03-01 14:09:34 +08:00
abe5886b5d feat: add mysql-backed customer risk tools and manual do-not-serve gate 2026-03-01 13:50:20 +08:00
1c266f2887 feat: switch text risk filtering to AI-first with keyword fallback 2026-03-01 13:41:25 +08:00
3c92611137 feat: auto-trigger quote after image idle to avoid stalled conversations 2026-03-01 13:27:38 +08:00
a001d09e6e fix: first-image ack should pause instead of pushing unified quote 2026-03-01 13:21:07 +08:00
7397d6795b fix: bind HTTP API to localhost by default and expose --host 2026-03-01 13:13:22 +08:00
1c1b870d2b feat: enforce activity logs and tighten sizing/map reply policies 2026-03-01 13:01:10 +08:00
0f769607c4 fix: prevent None reply in collection flow and harden response fallback 2026-03-01 12:37:51 +08:00
e31bb80063 feat: role-based skills, AI-first replies, and deferred batch quote routing 2026-03-01 11:03:56 +08:00
3c77c618e7 feat: add richer clarification replies for ambiguous customer intent 2026-02-28 23:40:17 +08:00
5b8ca6fb02 feat: use assigned_to transfer command when dispatch assign succeeds 2026-02-28 23:30:30 +08:00
ca7e195d8f feat: expand colloquial reply sets and support cross-image quote intent 2026-02-28 23:23:51 +08:00
5a73aa34d2 feat: adaptive debounce and intent-driven quote trigger tuning 2026-02-28 22:54:00 +08:00
41c93f9456 feat: enforce fixed pricing negotiation and trust-case replies 2026-02-28 22:40:28 +08:00
fc9a7a13b2 refactor: split quote pipeline stages and add trust case-script guidance 2026-02-28 22:38:24 +08:00
08342c37ec fix: use single-image wording for 1-image quote flow 2026-02-28 22:21:37 +08:00
d497e8d42a feat: add online evolution loop and 5% gray risk-policy rollout 2026-02-28 22:03:30 +08:00
fec5aaf8f3 fix: disable legacy fast quote path and tighten dense-text rejection 2026-02-28 21:13:39 +08:00
8addb25671 fix: simplify find-image link reply wording 2026-02-28 21:03:41 +08:00
d05bb12584 chore: switch database backend to mysql in env 2026-02-28 20:23:04 +08:00
1a5b4a4be6 fix: dedupe wechat chat history and avoid duplicate outbound chat logging 2026-02-28 20:18:29 +08:00
40cb03dd28 fix: hard block political inquiries and preserve risk routing priority 2026-02-28 20:12:40 +08:00
1e274b43e2 fix: hard-block political figures/events/images in risk and analyzer 2026-02-28 20:09:12 +08:00
f411250a52 fix: stabilize dense-text rejection and serialize delayed image flush 2026-02-28 20:00:59 +08:00
52da73a07f feat: hard reject political, sexual, violent, and gory content 2026-02-28 19:48:58 +08:00
c284d79f83 feat: enforce hard reject for dense text and many-face scenes 2026-02-28 19:47:14 +08:00
5210c8a86d fix: block dense-text table jobs and prevent duplicate quote races 2026-02-28 19:38:34 +08:00
650b46ed99 feat: migrate core data stores to MySQL with compatibility fixes 2026-02-28 19:35:51 +08:00
dc04db6538 test: add multi-worker ownership routing guard 2026-02-28 19:13:23 +08:00
baa1ca8c64 fix: prevent duplicate replies in multi-worker routing 2026-02-28 19:11:32 +08:00
cbe1f19311 fix: import List in workflow annotations 2026-02-28 19:06:52 +08:00
dfeb2fd776 fix: add missing Tuple import in pydantic agent 2026-02-28 19:04:08 +08:00
46143be86c feat: upgrade客服多店铺分流、批量报价与稳定性防护 2026-02-28 18:52:31 +08:00
c39840fe15 feat: 添加 AI Agent 对话测试工具 + 代码优化
主要变更:

- 新增 tests/test_ai_chat.py: AI Agent 对话测试工具

- 优化 core/pydantic_ai_agent.py 和 db/chat_log_db.py

- 清理归档文件,更新文档

Made-with: Cursor
2026-02-28 16:19:35 +08:00
a6c42d505a feat: 完整功能部署 v1.0
新增功能:
- 天网协作系统 (HTTP API 端口 6060)
- 三种工作流 (查找图片/处理图片/转人工派单)
- 图片任务数据库 (支持客户后续增加需求)
- 图绘派单系统集成 (API: 8005)
- 文字检测与加价 (60-80 元高价值订单)
- 风险评估与接单判断
- 作图失败自动转人工

新增文档:
- 项目功能汇总.md
- 三种工作流功能说明.md
- 文字加价功能说明.md
- 风险评估功能说明.md
- 图片任务数据库功能说明.md
- 图绘派单系统集成说明.md
- 作图失败转接人工说明.md
- DEPLOYMENT.md
- TIANWANG_INTEGRATION.md

核心修改:
- core/pydantic_ai_agent.py
- core/workflow.py
- core/websocket_client.py
- image/image_analyzer.py
- services/service_tuhui_dispatch.py
- db/image_tasks_db.py

版本:v1.0
日期:2026-02-28
2026-02-28 11:20:40 +08:00
5aedf1665d init 2026-02-27 16:03:04 +08:00