foundationagents--openmanus
d5f4a5f06f
This reverts commit 63fbd7ebbb.
85 行
3.9 KiB
Python
85 行
3.9 KiB
Python
import asyncio
|
|
import os
|
|
import sys
|
|
print(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))))
|
|
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))))
|
|
from app.agent.data_analysis import DataAnalysis
|
|
from app.agent.manus import Manus
|
|
|
|
|
|
# from app.agent.manus import Manus
|
|
|
|
|
|
async def main():
|
|
# agent = DataAnalysis()
|
|
agent = Manus()
|
|
await agent.run(
|
|
"""Requirement: Analyze the following data and generate a simple data report with some charts in HTML format.
|
|
|
|
Table1: 学生基本信息
|
|
Name,Age,Gender,Grade,Class,StudentID,EnrollmentDate,GuardianName,GuardianPhone,Address,PreviousSchool
|
|
王悦,16,女,高一,3班,S20230147,2023-09-01,王建国,138-1234-5678,北京市海淀区学院路101号,海淀实验中学
|
|
|
|
Table2: 学科成绩详细数据
|
|
Subject,Teacher,TestType,TestDate,Score,ClassRank,GradeRank,ScoreChange,DifficultyLevel
|
|
数学,张老师,单元测验,2023-09-05,82,12,45,-,中等
|
|
数学,张老师,周测,2023-09-12,85,10,38,+3,中等
|
|
数学,张老师,月考,2023-09-28,87,8,35,+2,中等偏难
|
|
数学,张老师,期中考试,2023-10-15,92,5,22,+5,难
|
|
语文,李老师,单元测验,2023-09-06,80,15,50,-,中等
|
|
语文,李老师,周测,2023-09-13,83,12,42,+3,中等
|
|
语文,李老师,月考,2023-09-29,85,10,40,+2,中等偏难
|
|
语文,李老师,期中考试,2023-10-16,88,8,35,+3,难
|
|
英语,王老师,单元测验,2023-09-07,87,8,30,-,中等
|
|
英语,王老师,周测,2023-09-14,89,6,25,+2,中等
|
|
英语,王老师,月考,2023-09-30,90,5,20,+1,中等偏难
|
|
英语,王老师,期中考试,2023-10-17,93,4,18,+3,难
|
|
物理,刘老师,单元测验,2023-09-08,75,18,65,-,难
|
|
物理,刘老师,周测,2023-09-15,77,16,60,+2,难
|
|
物理,刘老师,月考,2023-10-01,78,15,58,+1,难
|
|
物理,刘老师,期中考试,2023-10-18,85,12,40,+7,中等偏难
|
|
化学,陈老师,单元测验,2023-09-09,79,14,55,-,中等偏难
|
|
化学,陈老师,周测,2023-09-16,81,12,50,+2,中等偏难
|
|
化学,陈老师,月考,2023-10-02,82,11,48,+1,中等偏难
|
|
化学,陈老师,期中考试,2023-10-19,84,10,45,+2,中等
|
|
|
|
Table3: 学习行为日数据(2023年9月)
|
|
Date,Weekday,StudyHours,HomeworkHours,ReadingMinutes,ScreenTime,PhysicalActivity,ClassAttendance,ParticipationScore,SleepHours,MoodScore
|
|
2023-09-01,周五,3.5,2.0,45,1.5,1.0,出勤,85,8.2,4
|
|
2023-09-02,周六,4.0,1.5,30,2.0,0.8,出勤,90,7.8,5
|
|
2023-09-03,周日,3.0,2.5,60,1.0,1.2,出勤,88,8.5,4
|
|
2023-09-04,周一,5.0,2.0,50,1.2,0.7,出勤,92,7.9,5
|
|
2023-09-05,周二,4.5,1.8,40,1.8,1.0,出勤,87,8.0,4
|
|
2023-09-06,周三,3.8,2.2,55,1.3,0.9,出勤,89,8.3,5
|
|
2023-09-07,周四,4.2,1.7,35,1.6,1.1,出勤,91,7.7,4
|
|
2023-09-08,周五,3.5,2.1,48,1.4,0.8,出勤,86,8.1,3
|
|
2023-09-09,周六,4.8,1.9,42,1.7,1.3,出勤,93,7.6,5
|
|
2023-09-10,周日,3.2,2.3,52,1.1,0.7,出勤,88,8.4,4
|
|
2023-09-11,周一,4.5,1.6,38,1.9,1.0,出勤,90,7.9,5
|
|
2023-09-12,周二,3.9,2.4,57,1.2,0.9,出勤,87,8.2,4
|
|
2023-09-13,周三,4.1,1.8,44,1.5,1.2,出勤,91,7.8,5
|
|
2023-09-14,周四,3.7,2.6,49,1.4,0.8,出勤,89,8.3,4
|
|
2023-09-15,周五,4.3,1.9,36,1.8,1.1,出勤,92,7.7,5
|
|
2023-09-16,周六,3.4,2.2,53,1.3,0.9,出勤,86,8.1,4
|
|
2023-09-17,周日,4.6,1.7,41,1.6,1.3,出勤,90,7.6,5
|
|
2023-09-18,周一,3.8,2.5,47,1.2,0.7,出勤,88,8.4,4
|
|
2023-09-19,周二,4.2,1.8,39,1.7,1.0,出勤,91,7.9,5
|
|
2023-09-20,周三,3.9,2.3,51,1.4,0.8,出勤,87,8.2,4
|
|
2023-09-21,周四,4.4,1.6,43,1.5,1.2,出勤,93,7.8,5
|
|
2023-09-22,周五,3.6,2.4,46,1.3,0.9,出勤,89,8.3,4
|
|
2023-09-23,周六,4.7,1.9,37,1.8,1.1,出勤,86,7.7,5
|
|
2023-09-24,周日,3.5,2.1,50,1.4,0.8,出勤,90,8.1,4
|
|
2023-09-25,周一,4.3,1.7,42,1.6,1.3,出勤,88,7.6,5
|
|
2023-09-26,周二,3.8,2.6,48,1.2,0.7,出勤,91,8.4,4
|
|
2023-09-27,周三,4.1,1.8,40,1.7,1.0,出勤,87,7.9,5
|
|
2023-09-28,周四,3.9,2.3,52,1.5,0.9,出勤,92,8.2,4
|
|
2023-09-29,周五,4.5,1.6,45,1.4,1.2,出勤,89,7.8,5
|
|
2023-09-30,周六,3.7,2.4,44,1.3,0.8,出勤,86,8.3,4
|
|
|
|
"""
|
|
)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(main())
|