adobe-research/dynasaur
소개
Official repository for "DynaSaur: Large Language Agents Beyond Predefined Actions"
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- 0
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalDynaSaur 🦖: Large Language Agents
Beyond Predefined Actions
DynaSaur is a dynamic LLM-based agent framework published at COLM 2025 that uses a programming language as a universal representation of its actions. At each step, it generates a Python snippet that either calls on existing actions or creates new ones when the current action set is insufficient. These new actions can be developed from scratch or formed by composing existing actions, gradually expanding a reusable library for future tasks.
Empirically, DynaSaur exhibits remarkable versatility, recovering automatically when no relevant actions are available or when existing actions fail due to unforeseen edge cases. As of this writing, it holds the top position on the GAIA benchmark, and remains the leading non-ensemble method to date.
Installation
1. Create a .env file and add your keys:
# Required: Main keys for the agent
AZURE_API_KEY=""
AZURE_ENDPOINT=""
AZURE_API_VERSION=""
# Required: Keys for embeddings used in action retrieval
EMBED_MODEL_TYPE="AzureOpenAI"
AZURE_EMBED_MODEL_NAME=""
AZURE_EMBED_API_KEY=""
AZURE_EMBED_ENDPOINT=""
AZURE_EMBED_API_VERSION=""
# Optional: Keys for user-defined actions.
# You don't need these if you won't use those actions.
SERPAPI_API_KEY=""
AZURE_GPT4V_API_KEY=""
AZURE_GPT4V_ENDPOINT=""
AZURE_GPT4V_API_VERSION=""
2. Download the GAIA files:
You will need a Hugging Face (HF) access token with write permissions before cloning the GAIA repository. Visit this page to generate your token. Then log in to HF using the following command:
huggingface-cli login
Now we download the files with the commands below:
mkdir data
git clone https://huggingface.co/datasets/gaia-benchmark/GAIA
mv GAIA/2023 data/gaia/
rm -rf GAIA
3. Set up the environment:
conda create -n dynasaur python==3.12
conda activate dynasaur
pip install -r requirements.txt
Let the 🦖 take over
python dynasaur.py
TODOs
- Add support for the OpenAI API
Citation
If you find this work useful, please cite our paper:
@inproceedings{nguyen2024dynasaur,
title = {DynaSaur: Large Language Agents Beyond Predefined Actions},
author = {Dang Nguyen and Viet Dac Lai and Seunghyun Yoon and Ryan A. Rossi and Handong Zhao and Ruiyi Zhang and Puneet Mathur and Nedim Lipka and Yu Wang and Trung Bui and Franck Dernoncourt and Tianyi Zhou},
year = {2025},
booktitle = {Proceedings of the Conference on Language Modeling}
}
관련 프로젝트 살펴보기
불러오는 중…