Skip to content

Latest commit

 

History

History
110 lines (91 loc) · 3.92 KB

readme_en.md

File metadata and controls

110 lines (91 loc) · 3.92 KB

Math-Multi-Agent

Solution for the project "Special Agent Universe," which won the 2nd place globally in the AI track at the 2024 Alibaba Global Mathematics Competition.

Forks Stargazers Issues


Logo

Math-Multi-Agent

English | 简体中文
Report Bug · Request Feature

🎯News

  • [2024.6] 🎉🎉 We have open-sourced all our code!

Table of Contents

🌴Directory Structure

filetree
├── imgs/: Image resources
├── LICENSE.txt
├── README.md
├── /src/: Core code
│ ├── /action/
│ │ ├── Calculate.py
│ │ └── Programmer.py
├── main.py: Main function
├── requirements.txt: Lists the required Python libraries and their versions.

🎨How to Run

First, clone the repository:

git clone https://github.com/isaacJinyu/Math-Multi-Agent.git

Then follow these steps:

  1. Ensure all libraries listed in requirements.txt are installed.
    pip install -r requirements.txt
    
  2. Enter your keys and proxy address in main.py and action/Programmer.py, including keys for OpenAI and Anthropic.
    api_key = "Enter the respective company's key"  
    base_url = "Enter the proxy address (if not connecting directly, do not use base_url)"
    
  3. Enter your Wolfram|Alpha API key in the wolfram_alpha action in main.py
    app_id = 'Enter Wolfram|Alpha API key'
    
  4. Enter your math question in question in main.py.
  5. Run python main.py in the command line to start the project.
  6. Check the Final_answer.txt file for the final answer.
  7. To see the problem-solving process of each agent, find ``.txt` files named after the agent numbers in the current directory.

🛠Project Principle

Logo

🤗Team Members

  • Xiang Jinyu: Southwest Jiaotong University
  • Wang Xunzhi: Nankai University
  • Fei Qingyu: Graduate of the University of Bristol, currently a Product Manager at Tencent
  • Zhang Ziqiu: City University of Macau

Acknowledgements

  • Special Agent Universe
  • ...