WebArenaVerifiedTask¶
Attributes¶
Attributes:
| Name | Type | Description |
|---|---|---|
sites |
tuple[WebArenaSite, ...]
|
List of platforms involved (e.g., gitlab, shopping_admin). |
task_id |
int
|
Unique identifier for the task. |
start_urls |
tuple[NonEmptyStr, ...]
|
Initial URLs where the task begins. |
intent |
NonEmptyStr
|
Natural language description of what to accomplish. |
intent_template |
NonEmptyStr
|
Template with placeholders (e.g., 'Get top-{{n}} products'). |
instantiation_dict |
SerializableMappingProxyType
|
Values used to fill template placeholders. |
eval |
tuple[EvaluatorCfg, ...]
|
Array of evaluator configurations. |
revision |
Annotated[int, Field(ge=1)]
|
Integer revision number tracking task changes (minimum 1). |
Source code in src/webarena_verified/types/task.py
262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 | |
Example Task¶
{
"task_id": 7,
"intent_template_id": 79,
"sites": ["map"],
"start_urls": ["__MAP__"],
"intent": "Get the name, state, and zip code of all international airports that are within a driving distance of 50 km to Carnegie Mellon University. Use \"name\" for the name, \"state\" for the state, and \"postcode\" for the postcode.",
"intent_template": "Get the name, state, and zip code of all {{airport_type}} that are within a driving distance of {{radius}} to {{start}}. {{retrieved_data_format_spec}}.",
"instantiation_dict": {
"airport_type": "international airports",
"start": "Carnegie Mellon University",
"radius": "50 km",
"retrieved_data_format_spec": "Use \"name\" for the name, \"state\" for the state, and \"postcode\" for the postcode"
},
"eval": [
{
"evaluator": "AgentResponseEvaluator",
"ordered": false,
"results_schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {"type": "string"},
"state": {"type": "string"},
"postcode": {"type": "string"}
}
}
},
"expected": {
"task_type": "retrieve",
"status": "SUCCESS",
"retrieved_data": [
{
"name": "Pittsburgh International Airport",
"state": "Pennsylvania",
"postcode": "15231"
}
]
}
}
],
"revision": 2
}