[毕业设计] historyAgent - 多方历史辩证真伪#496
Open
meiguanxiHXX wants to merge 1 commit intodatawhalechina:mainfrom
Open
Conversation
毕业设计项目
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
项目信息
项目名:meiguanxiHXX-historyReviewAgent(Python 包:historical_review)
运行形态:CLI + Web(FastAPI)
依赖:hello-agents、python-dotenv、requests、duckduckgo-search、fastapi、uvicorn
项目简介
以“官修史书不等于真相”为方法论前提,通过五角色辩论与终局综合,对历史议题进行多视角拆解;可选接入维基与检索作为考据附录,强调“证据—语境—权力结构”下的谨慎判断。
核心功能
五角色交锋:官修叙事 / 野史边缘叙事 / 政治语境与权力结构 / 域外视角 / 蹊跷与阴谋论辨析
两轮辩论 + 秘书摘要 + 终局综合:输出结构化 Markdown
可选证据附录:维基 + DuckDuckGo 检索(可 --no-evidence 关闭)
Web 界面:表单配置 Key/BaseURL/模型/温度/超时,支持 SSE 流式输出
技术亮点
工程化入口:提供 history-review / history-review-web 脚本入口(安装后可直接运行)
配置覆盖策略清晰:Web 请求参数可覆盖服务端环境变量;.env 统一从项目根读取
非阻塞 Web 执行:Web 端将长任务放入线程池,避免阻塞事件循环;同时提供 SSE 流式进度
前后端解耦:静态前端资源随包分发(historical_review/web/static)
自检清单
pip install -r requirements.txt && pip install -e . 安装通过
CLI:history-review -y "测试议题" 可运行(或 python -m historical_review.run_agent -y)
Web:history-review-web / python run_web.py 可启动并访问 http://127.0.0.1:8777
.env 在项目根目录时,Web/CLI 均能读取到 Key
--no-evidence 能关闭证据附录
其他说明
输出为思辨与方法论训练,不构成学术鉴定或考试标准答案;终局综合强调“合理怀疑”与“阴谋论”边界,不给出唯一真相。