# Berkeley Function Calling Leaderboard (BFCL) explained

> BFCL is a benchmark from UC Berkeley that scores how well LLMs call functions and tools. What V1 to V4 test, how the overall score is weighted and how to run it.

Source: https://www.honeyhive.ai/learn/bfcl (updated 2026-11-18)

The Berkeley Function Calling Leaderboard (BFCL) is a benchmark from UC Berkeley's Gorilla project that measures how accurately a language model calls functions, also called tools. The [leaderboard page](https://gorilla.cs.berkeley.edu/leaderboard.html) describes it as evaluating "the LLM's ability to call functions (aka tools) accurately" on real-world data that is updated periodically. It has grown through four versions from single calls to multi-turn and agentic tasks. For the underlying skill, see [function calling](/learn/function-calling-llm).

## Where it comes from

The [first BFCL post](https://gorilla.cs.berkeley.edu/blogs/8_berkeley_function_calling_leaderboard.html) is by Fanjia Yan, Huanzhi Mao, Charlie Cheng-Jie Ji, Ion Stoica, Joseph Gonzalez, Tianjun Zhang and Shishir Patil. The leaderboard page cites the work as an ICML 2025 paper. The code and results are open: the [repository](https://github.com/ShishirPatil/gorilla/tree/main/berkeley-function-call-leaderboard) says the leaderboard statistics and the data used to train its models are released under Apache 2.0.

## What each version added

| Version | What it added | Source |
|---|---|---|
| V1 | Single-turn calls: simple, parallel and multiple, in Python, Java, JavaScript and REST API formats, scored by AST matching, plus executable checks and tests that the model withholds a call when no function fits | [V1 post](https://gorilla.cs.berkeley.edu/blogs/8_berkeley_function_calling_leaderboard.html) |
| V2 (August 2024) | "Live" data: function documentation and queries contributed by users, meant to reduce data contamination and bias | [V2 post](https://gorilla.cs.berkeley.edu/blogs/12_bfcl_v2_live.html) |
| V3 (September 2024) | Multi-turn and multi-step calls, checked against the state of the API system after the calls instead of by AST matching | [V3 post](https://gorilla.cs.berkeley.edu/blogs/13_bfcl_v3_multi_turn.html) |
| V4 (July 2025) | An agentic domain with web search and memory management, plus a format sensitivity test | [Changelog](https://github.com/ShishirPatil/gorilla/blob/main/berkeley-function-call-leaderboard/CHANGELOG.md), [format post](https://gorilla.cs.berkeley.edu/blogs/17_bfcl_v4_prompt_variation.html) |

Multi-step means the model makes several calls to answer one user request. Multi-turn means the user and assistant alternate, so the model can [ask clarifying questions](https://gorilla.cs.berkeley.edu/blogs/13_bfcl_v3_multi_turn.html).

## Test categories

The repository's [category list](https://github.com/ShishirPatil/gorilla/blob/main/berkeley-function-call-leaderboard/TEST_CATEGORIES.md) names the groups you can run:

- **Non-live:** `simple_python`, `simple_java`, `simple_javascript`, `parallel`, `multiple`, `parallel_multiple` and `irrelevance`.
- **Live:** the user-contributed versions, such as `live_simple` and `live_multiple`, plus `live_irrelevance` and `live_relevance`.
- **Multi-turn:** `multi_turn_base`, `multi_turn_miss_func` (a needed function is missing), `multi_turn_miss_param` (a parameter is missing) and `multi_turn_long_context`.
- **Agentic memory:** `memory_kv`, `memory_vector` and `memory_rec_sum`, which read and write a key-value, vector or recursive-summarization [memory](/learn/agent-memory) backend.
- **Agentic web search:** `web_search_base` and `web_search_no_snippet`, where search snippets are withheld so the model has to fetch and read pages.
- **Format sensitivity:** `format_sensitivity` varies the system prompt format. It does not count toward the score and only works for prompting-mode models.

## How the overall score works

The V4 release changed the formula. The [changelog](https://github.com/ShishirPatil/gorilla/blob/main/berkeley-function-call-leaderboard/CHANGELOG.md) says that "as single-turn tasks approach saturation, weighting now favors complex, multi-step agentic tasks."

| Segment | Before V4 | V4 |
|---|---|---|
| Live | 33% | 10% |
| Non-live | 33% | 10% |
| Irrelevance | 0% | 10% |
| Multi-turn | 33% | 30% |
| Agentic | 0% | 40% |

Table source: [changelog](https://github.com/ShishirPatil/gorilla/blob/main/berkeley-function-call-leaderboard/CHANGELOG.md), entry for July 17, 2025. The leaderboard page itself still calls overall accuracy an unweighted average, but the changelog and the V4 post both give these weights. The [V4 web search post](https://gorilla.cs.berkeley.edu/blogs/15_bfcl_v4_web_search.html) lists the entry counts behind each segment, including 200 web search and 465 memory entries in the agentic part. The [leaderboard](https://gorilla.cs.berkeley.edu/leaderboard.html) also reports estimated cost and latency for each model.

## Native calling versus prompting

The leaderboard separates models by how they call tools. FC means the model uses a native function calling interface. Prompt means the model is asked in plain text to produce calls, as a workaround. Format sensitivity tests [apply only](https://gorilla.cs.berkeley.edu/leaderboard.html) to the prompt models. The [format sensitivity post](https://gorilla.cs.berkeley.edu/blogs/17_bfcl_v4_prompt_variation.html) says the premise is that a model should give the correct output whatever the input format, for example Python or JSON calls, or functions described in Python or XML.

## Reading a score

- Check the version. A V3 score and a V4 score weigh different things, so they do not compare directly.
- Check the date. The leaderboard page shows its last update and the evaluation commit, and scores change as models are added.
- Look at the category, not just the total. A model can do well on single calls and still miss multi-turn or memory tasks.
- Remember the scope. BFCL tests tool selection and arguments, not whether a whole agent completes a business task. For that, see [tau-bench](/learn/tau-bench) and the wider list of [agent benchmarks](/learn/agent-benchmarks).

## Running it

The [README](https://github.com/ShishirPatil/gorilla/tree/main/berkeley-function-call-leaderboard) says to install the `bfcl-eval` package (not the unrelated `bfcl` package), add API keys to a `.env` file, then run:

```text
bfcl generate --model MODEL_NAME --test-category TEST_CATEGORY --num-threads 1
bfcl evaluate --model MODEL_NAME --test-category TEST_CATEGORY
```

Web search tests also need a SerpAPI key. Scores are written to a `score/` folder as JSON files per category, plus summary CSV files. The `--partial-eval` flag scores a subset of entries, and the README warns that partial scores may not match the official leaderboard.

## Using the idea on your own agent

A public benchmark shows how a model does on generic tools. Your agent has its own tools and arguments, so test those too: record real tool calls, check the chosen function and arguments, and track them over time. See [agent evaluation metrics](/learn/agent-evaluation-metrics) for ways to score tool use. HoneyHive's [docs](https://docs.honeyhive.ai/introduction.md) describe tracing agents and running evaluators over the recorded tool calls.

## FAQ

### What does BFCL stand for?

Berkeley Function Calling Leaderboard. It is a benchmark and [live leaderboard](https://gorilla.cs.berkeley.edu/leaderboard.html) that evaluates how accurately LLMs call functions, also called tools.

### How is the BFCL overall score calculated?

Since V4 in July 2025, the [changelog](https://github.com/ShishirPatil/gorilla/blob/main/berkeley-function-call-leaderboard/CHANGELOG.md) gives these weights: agentic 40%, multi-turn 30%, live 10%, non-live 10% and irrelevance 10%.

### How does BFCL check an answer?

The V4 blog says BFCL uses [AST-based or state-transition-based verification](https://gorilla.cs.berkeley.edu/blogs/15_bfcl_v4_web_search.html) for determinism. Single-turn answers are matched structurally, and multi-turn answers are checked against the resulting state of the API system.

### Can I run BFCL on my own model?

Yes. Install the `bfcl-eval` package, then run `bfcl generate` and `bfcl evaluate`, as the [README](https://github.com/ShishirPatil/gorilla/tree/main/berkeley-function-call-leaderboard) describes.
