OpenBMB / XAgent

An Autonomous LLM Agent for Complex Task Solving
https://blog.x-agent.net/blog/xagent/
Apache License 2.0
7.82k stars 795 forks source link

fix: log file add colorful output #305

Closed sailaoda closed 7 months ago

sailaoda commented 7 months ago

🤔 What is the nature of this change? / 这个变动的性质是?

🔗 Related Issue / 相关 Issue

(Describe the source of related requirements, such as the related issue discussion link. Example: close #xx, close #xx. /描述相关需求的来源,如相关的 issue 讨论链接。 例如:close #xx, close #xxx. )

💡 Background or solution / 需求背景和解决方案

命令行执行任务测试,需要分析 xagent 过程时,输出的 完整log 文件没有相关的日志颜色。不便于阅读。

经过商议加上日志文件的颜色。

📝 Changelog / 更新日志

(Describe changes from the user side, and list all potential break changes or other risks. / 从用户角度描述具体变化,以及可能的 breaking change 和其他风险。)