lazychih114/AgentGen-Reproduction

[KDD 2025] AgentGen: Enhancing Planning Abilities for Large Language Model based Agent via Environment and Task Generation

C++

35

4 commits

updated Nov 18, 2025

See the code

README

✨ AgentGen: Enhancing Planning Abilities for Large Language Model based Agent via Environment and Task Generation

arXiv License: MIT Python

AgentGen Teaser

📢 Updates

  • 2025/05: Checking our new Text2World paper on PDDL generation accepted by ACL 2025 Findings.
  • 2024/12/11: Initial release the code

🛠️ Installation

  1. Configure the environment:
conda env create -f environment.yml
conda activate agentgen
  1. Set up OpenAI credentials:

    • Add your OPENAI_API_KEY to src/key.txt
  2. Install required dependencies (pddlgym and pddlgym_planners):

pip install pddlgym
# for mac:
# brew install coreutils
git clone https://github.com/ronuchit/pddlgym_planners.git
cd pddlgym_planners
pip install -e .

🚀 Quick Start

Generate the environment and domain for the first iteration:

cd src
bash run.sh

🧪 Experiments

This repository provides our implementation to reproduce the data generation process described in the original AgentGen paper. To replicate the results:

  1. Segment the src/data/inpiration_corpus/lima.json
  2. Run the run.sh script iteratively

For additional components:

📦 Model & Dataset

  • Dataset: The dataset after iterative environment and task generation is available in the src/data/it12 folder. The trainig-ready conversation SFT data is available at src/data/sft_data.json.
  • Model: We followed the training configuration from the original paper to reproduce the models (We trained the AgentGen-8B model with alpaca template since there exists a bug when training with llama-3 template):
ModelHuggingface Repo
AgentGen-70B-Lora-Rank1🤗 Huggingface
AgentGen-70B-Lora-Rank16🤗 Huggingface
AgentGen-8B🤗 Huggingface

🙏 Cite

If you find this repo helpful in your research, please cite the original paper:

@article{hu2024agentgen,
  title={Agentgen: Enhancing planning abilities for large language model based agent via environment and task generation},
  author={Hu, Mengkang and Zhao, Pu and Xu, Can and Sun, Qingfeng and Lou, Jianguang and Lin, Qingwei and Luo, Ping and Rajmohan, Saravan and Zhang, Dongmei},
  journal={arXiv preprint arXiv:2408.00764},
  year={2024}
}

Contributors

Aaron617

3 commits

lazychih114

1 commits

lazychih114/AgentGen-Reproduction

[KDD 2025] AgentGen: Enhancing Planning Abilities for Large Language Model based Agent via Environment and Task Generation

C++

35

4 commits

updated Nov 18, 2025

See the code

README

✨ AgentGen: Enhancing Planning Abilities for Large Language Model based Agent via Environment and Task Generation

arXiv License: MIT Python

AgentGen Teaser

📢 Updates

  • 2025/05: Checking our new Text2World paper on PDDL generation accepted by ACL 2025 Findings.
  • 2024/12/11: Initial release the code

🛠️ Installation

  1. Configure the environment:
conda env create -f environment.yml
conda activate agentgen
  1. Set up OpenAI credentials:

    • Add your OPENAI_API_KEY to src/key.txt
  2. Install required dependencies (pddlgym and pddlgym_planners):

pip install pddlgym
# for mac:
# brew install coreutils
git clone https://github.com/ronuchit/pddlgym_planners.git
cd pddlgym_planners
pip install -e .

🚀 Quick Start

Generate the environment and domain for the first iteration:

cd src
bash run.sh

🧪 Experiments

This repository provides our implementation to reproduce the data generation process described in the original AgentGen paper. To replicate the results:

  1. Segment the src/data/inpiration_corpus/lima.json
  2. Run the run.sh script iteratively

For additional components:

📦 Model & Dataset

  • Dataset: The dataset after iterative environment and task generation is available in the src/data/it12 folder. The trainig-ready conversation SFT data is available at src/data/sft_data.json.
  • Model: We followed the training configuration from the original paper to reproduce the models (We trained the AgentGen-8B model with alpaca template since there exists a bug when training with llama-3 template):
ModelHuggingface Repo
AgentGen-70B-Lora-Rank1🤗 Huggingface
AgentGen-70B-Lora-Rank16🤗 Huggingface
AgentGen-8B🤗 Huggingface

🙏 Cite

If you find this repo helpful in your research, please cite the original paper:

@article{hu2024agentgen,
  title={Agentgen: Enhancing planning abilities for large language model based agent via environment and task generation},
  author={Hu, Mengkang and Zhao, Pu and Xu, Can and Sun, Qingfeng and Lou, Jianguang and Lin, Qingwei and Luo, Ping and Rajmohan, Saravan and Zhang, Dongmei},
  journal={arXiv preprint arXiv:2408.00764},
  year={2024}
}

Contributors

Aaron617

3 commits

lazychih114

1 commits

Languages

C++

91.5%

Yacc

4.4%

Python

2.4%