hubertmarek nielsr HF Staff commited on
Commit
bd3c951
·
1 Parent(s): 335b4ba

Improve dataset card: add metadata, paper link, and usage (#2)

Browse files

- Improve dataset card: add metadata, paper link, and usage (7cb28106381407a6a214d76d63ed90e4fcd05c1e)


Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>

Files changed (1) hide show
  1. README.md +54 -15
README.md CHANGED
@@ -1,29 +1,68 @@
1
  ---
2
- dataset: linear-bench-mini
3
- tags:
4
- - agent-evals
5
- - linear
6
- - graphql
7
  license: mit
 
 
 
 
 
 
8
  ---
9
 
 
10
 
 
 
 
11
 
12
  ![image](https://cdn-uploads.huggingface.co/production/uploads/68fce8f5dfd2a1e1cae334bb/G8dofl-K8F-V3SxKyBiI_.png)
13
 
14
- ## Files
15
 
16
- - `data/train.jsonl`
17
- - `dataset_infos.json`
18
- - `seeds/linear_default.json`
19
 
20
- ## Context
21
 
22
- The Linear Bench suite runs inside Agent Diff isolation engine, with
23
- its own Postgres schema replaying the Linear GraphQL API. Agents interact via
24
- Linear's public surface area to satisfy CRUD-style tasks (create issues, move
25
- states, add labels, etc.).
26
 
27
  ## Usage
28
 
29
- Read more here https://github.com/hubert-marek/agent-diff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
 
 
 
 
 
2
  license: mit
3
+ task_categories:
4
+ - text-generation
5
+ tags:
6
+ - agent-evals
7
+ - linear
8
+ - graphql
9
  ---
10
 
11
+ # Agent-Diff: Linear Bench Mini
12
 
13
+ This dataset is part of the **Agent-Diff** benchmark, presented in the paper [Agent-Diff: Benchmarking LLM Agents on Enterprise API Tasks via Code Execution with State-Diff-Based Evaluation](https://huggingface.co/papers/2602.11224).
14
+
15
+ [Website](https://agentdiff.dev) | [GitHub](https://github.com/agent-diff-bench/agent-diff) | [Paper](https://huggingface.co/papers/2602.11224)
16
 
17
  ![image](https://cdn-uploads.huggingface.co/production/uploads/68fce8f5dfd2a1e1cae334bb/G8dofl-K8F-V3SxKyBiI_.png)
18
 
19
+ ## Context
20
 
21
+ The Linear Bench suite runs inside the Agent Diff isolation engine, with its own Postgres schema replaying the Linear GraphQL API. Agents interact via Linear's public surface area to satisfy CRUD-style tasks (create issues, move states, add labels, etc.). Task success is defined by whether the expected change in environment state was achieved using a novel state-diff contract.
 
 
22
 
23
+ ## Files
24
 
25
+ - `data/train.jsonl`: Training tasks and prompts.
26
+ - `dataset_infos.json`: Dataset configuration.
27
+ - `seeds/linear_default.json`: Initial state configuration for the Linear environment.
 
28
 
29
  ## Usage
30
 
31
+ To use this benchmark, you can interact with the isolated environment using the `agent-diff` Python SDK.
32
+
33
+ ### Install the SDK
34
+ ```bash
35
+ pip install agent-diff
36
+ ```
37
+
38
+ ### Initialize and Run
39
+ ```python
40
+ from agent_diff import AgentDiff
41
+
42
+ # Initialise isolated environment from the linear template
43
+ client = AgentDiff()
44
+ env = client.init_env(
45
+ templateService="linear",
46
+ templateName="linear_default",
47
+ impersonateUserId="U01AGENBOT9",
48
+ TTL="3600"
49
+ )
50
+
51
+ # Take before snapshot
52
+ run = client.start_run(envId=env.environmentId)
53
+
54
+ # Your agent performs tasks using the environment URL:
55
+ # print(env.environmentUrl)
56
+
57
+ # Compute diff (changes in the environment) and get results
58
+ diff = client.diff_run(runId=run.runId)
59
+
60
+ # Inspect changes
61
+ print(diff.diff['inserts']) # New records added by agent
62
+ print(diff.diff['updates']) # Modified records
63
+
64
+ # Clean up
65
+ client.delete_env(envId=env.environmentId)
66
+ ```
67
+
68
+ For more details on evaluations and the state-diff framework, please refer to the [official GitHub repository](https://github.com/agent-diff-bench/agent-diff).