File size: 8,643 Bytes
32532bf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
[
  {
    "name": "bpo-benchmark",
    "user_info": [],
    "test_cases": [
      {
        "name": "task_30",
        "description": "Tests agent handling of probabilistic 404 errors (20% chance, seeded RNG). The candidate_source_candidate_pipeline_status tool randomly returns 404 errors. Agent should retry or report the error gracefully.",
        "intent": "What's the candidate pipeline status for 05958BR?",
        "difficulty": "hard",
        "expected_output": {
          "response": "The candidate pipeline for 05958BR shows the following distribution by source: LinkedIn, Dice, Indeed, GitHub, Referral, CyberSec Jobs, and TechCareers all have active candidates in the pipeline.",
          "keywords": [
            "pipeline|status|candidates",
            "05958BR"
          ],
          "tool_calls": [
            {
              "name": "candidate_source_candidate_pipeline_status",
              "args": {
                "requisition_id": "05958BR"
              }
            }
          ],
          "error_handling": {
            "error_type": "http_404_probabilistic",
            "should_report_error": false,
            "should_retry": true,
            "expected_behavior": "Agent should retry on 404 or report temporary unavailability"
          },
          "tool_call_results": [
            {
              "name": "candidate_source_candidate_pipeline_status",
              "result": {
                "requisition_id": "05958BR",
                "pipeline": {
                  "CyberSec Jobs": 200,
                  "Dice": 516,
                  "GitHub": 468,
                  "Indeed": 410,
                  "Internal": 400,
                  "LinkedIn": 519,
                  "Referral": 400
                },
                "total_candidates": 2913
              }
            }
          ]
        }
      },
      {
        "name": "task_31",
        "description": "Tests agent handling of HTTP 500 error that includes valid data in the response body. The candidate_source_source_sla_check tool returns error status 500 but includes correct SLA metrics in the body.",
        "intent": "Run a quick SLA check across all sources for 05958BR",
        "difficulty": "hard",
        "expected_output": {
          "response": "SLA check results for 05958BR across sources: CyberSec Jobs 67%, Indeed 72%, TechCareers 74%, GitHub 78%, LinkedIn 79%, Dice 80%, Referral 82%. Note: the data was retrieved despite a server error status.",
          "keywords": [
            "SLA",
            "CyberSec Jobs|Indeed|Dice",
            "67|72|74|78|79|80|82"
          ],
          "tool_calls": [
            {
              "name": "candidate_source_source_sla_check",
              "args": {
                "requisition_id": "05958BR"
              }
            }
          ],
          "error_handling": {
            "error_type": "http_500_with_body",
            "should_report_error": true,
            "should_retry": false,
            "expected_behavior": "Agent should use response body despite 500 status and optionally note the error"
          },
          "tool_call_results": [
            {
              "name": "candidate_source_source_sla_check",
              "result": {
                "status_code": 500,
                "error": true,
                "message": "Internal server error",
                "body": {
                  "metrics": [
                    {
                      "source_name": "CyberSec Jobs",
                      "sla_percentage": 67
                    },
                    {
                      "source_name": "Dice",
                      "sla_percentage": 95
                    },
                    {
                      "source_name": "GitHub",
                      "sla_percentage": 90
                    },
                    {
                      "source_name": "Indeed",
                      "sla_percentage": 86
                    },
                    {
                      "source_name": "Internal",
                      "sla_percentage": 95
                    },
                    {
                      "source_name": "LinkedIn",
                      "sla_percentage": 95
                    },
                    {
                      "source_name": "Referral",
                      "sla_percentage": 95
                    }
                  ]
                }
              }
            }
          ]
        }
      },
      {
        "name": "task_32",
        "description": "Tests agent handling of HTTP 503 Service Unavailable. The candidate_source_funnel_status tool always returns 503 with maintenance info.",
        "intent": "What's the current funnel status for 05958BR?",
        "difficulty": "medium",
        "expected_output": {
          "response": "The funnel status service is currently unavailable due to maintenance. Please try again later.",
          "keywords": [
            "unavailable|maintenance|temporarily",
            "funnel|service",
            "later|retry"
          ],
          "tool_calls": [
            {
              "name": "candidate_source_funnel_status",
              "args": {
                "requisition_id": "05958BR"
              }
            }
          ],
          "error_handling": {
            "error_type": "http_503",
            "should_report_error": true,
            "should_retry": false,
            "expected_behavior": "Agent should report service unavailable with retry info"
          },
          "tool_call_results": [
            {
              "name": "candidate_source_funnel_status",
              "result": {
                "status_code": 503,
                "error": true,
                "message": "Service temporarily unavailable. The funnel analytics engine is undergoing maintenance.",
                "retry_after_seconds": 300,
                "expected_recovery": "2025-05-01T12:00:00Z"
              }
            }
          ]
        }
      },
      {
        "name": "task_33",
        "description": "Tests agent handling of HTTP 429 rate limiting. The candidate_source_bulk_source_data tool returns 429 after the 3rd call in a session.",
        "intent": "Pull bulk source data for all requisitions starting with 05958BR",
        "difficulty": "hard",
        "expected_output": {
          "response": "Bulk source data for 05958BR shows candidate and hire counts across all sourcing channels including LinkedIn, Dice, Indeed, GitHub, Referral, CyberSec Jobs, and TechCareers.",
          "keywords": [
            "source|sources",
            "candidates|data",
            "05958BR"
          ],
          "tool_calls": [
            {
              "name": "candidate_source_bulk_source_data",
              "args": {
                "requisition_id": "05958BR"
              }
            }
          ],
          "error_handling": {
            "error_type": "http_429",
            "should_report_error": false,
            "should_retry": false,
            "expected_behavior": "Agent should respect rate limits and use available data"
          },
          "tool_call_results": [
            {
              "name": "candidate_source_bulk_source_data",
              "result": {
                "requisition_id": "05958BR",
                "sources": {
                  "CyberSec Jobs": {
                    "total_candidates": 200,
                    "total_hires": 3,
                    "reviewed": 161
                  },
                  "Dice": {
                    "total_candidates": 516,
                    "total_hires": 11,
                    "reviewed": 57
                  },
                  "GitHub": {
                    "total_candidates": 468,
                    "total_hires": 10,
                    "reviewed": 356
                  },
                  "Indeed": {
                    "total_candidates": 410,
                    "total_hires": 0,
                    "reviewed": 316
                  },
                  "Internal": {
                    "total_candidates": 400,
                    "total_hires": 5,
                    "reviewed": 296
                  },
                  "LinkedIn": {
                    "total_candidates": 519,
                    "total_hires": 7,
                    "reviewed": 390
                  },
                  "Referral": {
                    "total_candidates": 400,
                    "total_hires": 4,
                    "reviewed": 280
                  }
                },
                "call_number": 1
              }
            }
          ]
        }
      }
    ]
  }
]