feat: implement initial structure and core components for data analysis agent

This commit is contained in:
2026-01-06 14:09:12 +08:00
parent 449c5f0a36
commit 7f46f25a4b
18 changed files with 2094 additions and 0 deletions

18
main.py Normal file
View File

@@ -0,0 +1,18 @@
from data_analysis_agent import DataAnalysisAgent
from config.llm_config import LLMConfig
def main():
llm_config = LLMConfig()
# 如果希望强制运行到最大轮数,设置 force_max_rounds=True
agent = DataAnalysisAgent(llm_config, force_max_rounds=False)
files = ["./UB IOV Support_TR.csv"]
report = agent.analyze(
user_input="基于所有有关远程控制的问题以及涉及车控APP的运维工单的数据输出若干个重要的统计指标并绘制相关图表。总结一份车控APP及远程控制工单健康度报告最后生成汇报给我。",
files=files,
)
print(report)
if __name__ == "__main__":
main()