How thudm/agentbench works
Main Components
• Client Components:
• The src/client directory includes the agent implementation (agent.py), API client modules, and test drivers (agent_test.py). This is where the agents (e.g., OpenAI chat agent, fastchat client, HTTP agents) are configured and initiated.
• Task Server & Orchestration:
• The src/server directory comprises a task controller (task_controller.py), workers (task_worker.py), and task definitions under src/server/tasks. Each task (e.g., alfworld, avalon, card_game, dbbench, knowledgegraph, ltp, mind2web, os_interaction, webshop) is an independent module with its own logic, agents, configurations, prompts, and utilities.
• Configurations & Data:
• The configs folder provides YAML configurations for agents, task assignments, and starting tasks. Data files are organized in the data directory for each specific task/environment.
• Supporting Scripts & Utilities:
• The assigner (src/assigner.py) is used to push tasks.
• Utility modules (src/utils and src/typings) add helper functionalities and definitions.
• External Dependencies & Docker:
• The README and data/os_interaction directories indicate Docker-based setups for external environments (e.g., ubuntu, mysql images) and potential integrations with external services like