- 🌻Acknowledgement
- 🌟Overview
- 🔧Installation
- ✏️ToolBench-API-Deploy
- 📝MCTS-refine
- 🤔ActionKnowledge-Evaluation
- 🚩Citation
Our code of training module is referenced and adapted from StableToolbench, Aflow, Draft. And the Dataset is collected from ToolBench, HotpotQA. Our end-to-end evaluation module is based on Stable ToolBench, HotpotQA. Thanks for their great contributions!
In the interaction between agents and their environments, agents expand their capabilities by planning and executing actions. However, LLM-based agents face substantial challenges when deployed in novel environments or required to navigate unconventional action spaces. To empower agents to autonomously explore environments, optimize workflows, and enhance their understanding of actions, we propose SynWorld, a framework that allows agents to synthesize possible scenarios with multi-step action invocation within the action space and perform Monte Carlo Tree Search (MCTS) exploration to effectively refine their action knowledge in the current environment. Our experiments demonstrate that SynWorld is an effective and general approach to learning action knowledge in new environments
git clone https://github.com/zjunlp/SynWorld
cd SynWorld
pip install -r requirements.txt
git clone https://github.com/THUNLP-MT/StableToolBench.git
cd StableToolBench
pip install requirements.txt
cd server
python main.py
Generate workflow with local llm api
cd SynWrold/src
python PlanAlign.py \
--model qwen-max \
--max_rounds 15 \
--dataset Toolbench \
--validate_nums 100 \
--max_workers 16 \
--mode dev \
--overwrite
Evaluation the workflow of node n
cd SynWrold/src
python PlanAlign.py \
--model qwen-max \
--dataset Toolbench \
--validate_nums 100 \
--max_workers 16 \
--mode test \
--test_round the_round_num_you_select(eg. 100 in our experiment) \
--overwrite
If this work is helpful, please kindly cite as:
@article{fang2025synworld,
title={SynWorld: Virtual Scenario Synthesis for Agentic Action Knowledge Refinement},
author={Fang, Runnan and Wang, Xiaobin and Liang, Yuan and Qiao, Shuofei and Wu, Jialong and Xi, Zekun and Zhang, Ningyu and Jiang, Yong and Xie, Pengjun and Huang, Fei and others},
journal={arXiv preprint arXiv:2504.03561},
year={2025}
}