SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.03688 · 2023

AgentBench: Evaluating LLMs as Agents

Minlie Huang, Sheng Shen, Yuxiao Dong, Jie Tang, Huan Sun, Xiao Liu, Hao Yu, Tianjun Zhang, Aohan Zeng, Zhengxiao Du, Yifan Xu, Yu Su, and 10 more

arXiv · PDF · Open in the Atlas

Code that ran

3 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 2 failures of our instrument; 1 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2308.03688.json · badge: /api/ran/2308.03688.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
THUDM/AgentBench canonical (classifier label)
classifier basis: census
3 ran · 1 no recorded run
FunctionStatusWhere it lives
deep_merge Ran
ran; our contract draft was wrong, not the code
THUDM/AgentBench/src/configs.py
code served (permissive licence) · get_code("938793bb2e85dded")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from copy import deepcopy

def deep_merge(base_item, new_item):
    if isinstance(base_item, dict) and isinstance(new_item, dict):
        ret = deepcopy(base_item)
        for key in new_item:
            if key in ret:
                ret[key] = deep_merge(ret[key], new_item[key])
            else:
                ret[key] = new_item[key]
        return ret
    if isinstance(base_item, list) and isinstance(new_item, list):
        ret = deepcopy(base_item)
        ret.extend(new_item)
        return ret
    return new_item


# Construct valid arguments for deep_merge
base_item = {
    "config": {
        "learning_rate": 0.001,
        "batch_size": 32
    },
    "data": [1, 2, 3],
    "name": "model_v1"
}

new_item = {
    "config": {
        "learning_rate": 0.0005,
        "epochs": 100
    },
    "data": [4, 5],
    "version": 2
}

ARGS = {
    "base_item": base_item,
    "new_item": new_item
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_timestamp Ran
ran, honoured the contract we drafted
THUDM/AgentBench/src/analysis.py
code served (permissive licence) · get_code("99bba02533b726bc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import datetime
import re
import time

def parse_timestamp(time_str: str) -> float:
    try:
        return float(time_str)
    except:
        pass
    try:
        return datetime.datetime.strptime(time_str, '%Y-%m-%d %H:%M:%S').timestamp()
    except:
        pass
    try:
        return datetime.datetime.strptime(time_str, '%Y-%m-%d').timestamp()
    except:
        pass
    try:
        return datetime.datetime.strptime(time_str, '%Y-%m').timestamp()
    except:
        pass
    num = float(re.findall('[\\d\\.]+', time_str)[0])
    unit = re.findall('[a-zA-Z]+', time_str)[0]
    if unit == 'd':
        delta = num * 24 * 60 * 60
    elif unit == 'h':
        delta = num * 60 * 60
    elif unit == 'm':
        delta = num * 60
    elif unit == 's':
        delta = num
    else:
        raise Exception('Unknown time unit')
    return time.time() - delta

ARGS = {
    'time_str': '5.5d'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
serialize Ran
ran; our contract draft was wrong, not the code
THUDM/AgentBench/src/utils/others.py
code served (permissive licence) · get_code("02ff76b8a757ac06")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Test basic types
basic_obj = {
    'int_val': 42,
    'float_val': 3.14,
    'str_val': 'hello',
    'bool_val': True,
    'none_val': None,
}

# Test nested structures
nested_obj = {
    'list': [1, 2.5, 'string', True, None],
    'tuple': (10, 20, 30),
    'dict': {
        'a': 1,
        'b': [4, 5, 6],
        'c': {'nested': True}
    },
    'mixed': [
        {'key1': 'val1'},
        {'key2': 'val2'},
        [1, 2, 3]
    ]
}

# Test object with __dict__
class SimpleObject:
    def __init__(self):
        self.x = 10
        self.y = 'test'
        self.z = [1, 2, 3]

obj_with_dict = SimpleObject()

# Test large list for compression
large_list = list(range(100))

# Test large dict for compression
large_dict = {f'key_{i}': i for i in range(20)}

# Test object that converts to long string representation
class LongStringObject:
    def __str__(self):
        return 'x' * 200

long_string_obj = LongStringObject()

ARGS = {
    'obj': nested_obj,
    'max_depth': 5,
    'compress': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
analyze_output Not yet run
unverified (harvested, no recorded run)
THUDM/AgentBench/src/analysis.py
code served (permissive licence) · get_code("66873a3b203a9806")
How it ran

no invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 4 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 4 later) and 0 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
deep_merge 2 other papers
2 later
2408.06327 (2024-08)
VisualAgentBench: Towards Large Multimodal Models as Visual Foundation Agents
2501.14654 (2025-01)
MedAgentBench: A Realistic Virtual EHR Environment to Benchmark Medical LLM Agents
analyze_output 1 other paper
1 later
2408.06327 (2024-08)
VisualAgentBench: Towards Large Multimodal Models as Visual Foundation Agents
parse_timestamp 1 other paper
1 later
2408.06327 (2024-08)
VisualAgentBench: Towards Large Multimodal Models as Visual Foundation Agents
serialize 1 other paper
1 later
2402.14672 (2024-02)
Middleware for LLMs: Tools Are Instrumental for Language Agents in Complex Environments

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

The potential of Large Language Model (LLM) as agents has been widely acknowledged recently. Thus, there is an urgent need to quantitatively evaluate LLMs as agents on challenging tasks in interactive environments. We present AGENTBENCH, a multi-dimensional benchmark that consists of 8 distinct environments to assess LLM-as-Agent's reasoning and decision-making abilities. Our extensive test over 29 API-based and open-sourced (OSS) LLMs shows that, while top commercial LLMs present a strong ability of acting as agents in complex environments, there is a significant disparity in performance between them and many OSS competitors that are no larger than 70B. We identify the typical reasons of failures in environments and LLMs, showing that poor long-term reasoning, decision-making, and instruction following abilities are the main obstacles for developing usable LLM agents. Improving instruction following and training on high quality multi-round alignment data could improve agent performance. And different from existing assumptions, training on code present ambivalent impacts on different agent tasks. Datasets, environments, and an integrated evaluation package for AGENTBENCH are released at https://github.com/THUDM/AgentBench. System Database Knowledge Graph Digital Card Game Lateral Thinking Puzzle House-holding Web Shopping Web Browsing gpt-4 (0613) claude-3 (opus) glm-4 codellama-34b-instruct vicuna-13b-v1.5 llama-2-70b

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2308.03688")
get_code_for_paper("2308.03688")
have("2308.03688")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2308.03688.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2308.03688.svg)](https://syntology.ai/paper/2308.03688)

Connect an agent — have() is free.