File size: 1,453 Bytes
babab16
 
 
 
 
 
 
 
 
 
 
 
 
5834385
babab16
 
 
4423d13
babab16
 
 
 
4423d13
babab16
 
3424779
 
4423d13
3424779
 
5834385
babab16
 
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
EXPERT_TASKS = [
    {
        "id": "expert_openapi_discovery",
        "description": "Log system metrics. We forgot the exact endpoint path and required schema. Check the server documentation at /openapi.json to discover the metrics ingestion endpoint under /mock_api, then send a valid POST payload with cpu_load and memory_usage.",
        "broken_request": {
            "method": "POST",
            "url": "/mock_api/unknown_metrics_endpoint",
            "headers": {"Content-Type": "application/json"},
            "body": {},
            "query_params": {},
        },
        "expected_status": 200,
        "expected_schema": {"status": "", "cpu": 0.0, "mem": 0.0},
        "max_steps": 10,
    },
    {
        "id": "expert_stateful_chain",
        "description": "First, create an item with field 'name' set to 'temporary_item' via POST /mock_api/items. Then, safely clean it up by sending a DELETE request to /mock_api/items/{item_id}. The current request is a placeholder.",
        "broken_request": {
            "method": "POST",
            "url": "/mock_api/items",
            "headers": {"Content-Type": "application/json"},
            "body": {"name": "temporary_item"},
            "query_params": {},
        },
        "expected_status": [200, 200],
        "expected_schema": [
            {"item_id": "", "name": "", "created": True},
            {"status": "", "item_id": ""}
        ],
        "max_steps": 10,
    },
]