| id: "search_how_to_write_a_video_game_review-article_write a video game review-summary_write a video game review?" | |
| name: "WikiHow Search Task Primitive - Search how_to_write_a_video_game_review, Access How to Write a Video Game Review, How To Write a Video Game Review?" | |
| description: "A demo task primitive requiring to search WikiHow for a specific article.\nA demo task primitive requiring to access a specific article.\nA Q&A task requiring to summarize the article" | |
| setup_steps: { | |
| adb_call: { | |
| install_apk: { | |
| filesystem: { | |
| path: "../wikiHow:万事指南_2.9.6_apkcombo.com.apk" | |
| } | |
| } | |
| } | |
| } | |
| setup_steps: { | |
| adb_call: { | |
| rotate: { | |
| } | |
| } | |
| } | |
| reset_steps: { | |
| adb_call: { | |
| force_stop: { | |
| package_name: "com.wikihow.wikihowapp" | |
| } | |
| } | |
| } | |
| reset_steps: { | |
| adb_call: { | |
| clear_cache: { | |
| package_name: "com.wikihow.wikihowapp" | |
| } | |
| } | |
| } | |
| reset_steps: { | |
| success_condition: { | |
| num_retries: 10 | |
| wait_for_app_screen: { | |
| app_screen: { | |
| activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" | |
| } | |
| timeout_sec: 10.0 | |
| } | |
| } | |
| adb_call: { | |
| start_activity: { | |
| full_activity: "com.wikihow.wikihowapp/com.wikihow.wikihowapp.MainTabActivity" | |
| } | |
| } | |
| } | |
| max_num_steps: 500 | |
| event_sources: { | |
| text_recognize: { | |
| expect: "\\b(write|video|game|review)\\b" | |
| rect: { | |
| x0: 0.2439 | |
| y0: 0.0354 | |
| x1: 0.9085 | |
| y1: 0.1171 | |
| } | |
| } | |
| id: 1 | |
| } | |
| event_sources: { | |
| view_hierarchy_event: { | |
| properties: { | |
| property_name: "text" | |
| pattern: "\\b(write|video|game|review)\\b" | |
| } | |
| properties: { | |
| property_name: "clickable" | |
| pattern: "true" | |
| } | |
| selector: "#$\"search_plate\">#$\"search_src_text\"" | |
| } | |
| id: 2 | |
| } | |
| event_sources: { | |
| log_event: { | |
| filters: "jd:D" | |
| pattern: "\\bmUrl is: https://www\\.wikihow\\.com/wikiHowTo\\?search=.*(write|video|game|review).*" | |
| } | |
| id: 3 | |
| } | |
| event_sources: { | |
| text_detect: { | |
| expect: "How to Write a Video Game Review" | |
| rect: { | |
| y0: 0.19 | |
| x1: 1.0 | |
| y1: 0.3 | |
| } | |
| } | |
| id: 5 | |
| } | |
| event_sources: { | |
| log_event: { | |
| filters: "jd:D" | |
| pattern: "\\bmUrl is: https://www\\.wikihow\\.com/Write-a-Video-Game-Review" | |
| } | |
| id: 6 | |
| } | |
| event_sources: { | |
| view_hierarchy_event: { | |
| properties: { | |
| property_name: "text" | |
| pattern: "How to Write a Video Game Review" | |
| } | |
| selector: ".\"android.view.View\"#\"section_0\" .$\"TextView\"" | |
| } | |
| id: 7 | |
| } | |
| event_sources: { | |
| response_event: { | |
| pattern: "To write a video game review, you’ll want to give readers an overview of the game’s different elements and provide your personal opinion on how good it is. You’ll need to play the game for at least 7 hours to get a real feel for it. Try to explore as many different parts of the game as you can, like its main story, side quests, multiplayer, and challenges. While you’re playing, take brief notes on the things you like and things that don’t work so well to help you write your review. You’ll want to cover topics like graphics, sound design, story, game mechanics, and how well it runs. You can also compare it to other games in its genre to show readers what’s unique about it. Give it a grade out of 10 or a star rating at the end." | |
| mode: SBERT | |
| } | |
| id: 9 | |
| } | |
| event_slots: { | |
| score_listener: { | |
| type: OR | |
| events: { | |
| event: { | |
| } | |
| } | |
| events: { | |
| event: { | |
| } | |
| } | |
| events: { | |
| event: { | |
| events: { | |
| id: 9 | |
| } | |
| } | |
| } | |
| } | |
| reward_listener: { | |
| type: OR | |
| events: { | |
| event: { | |
| type: OR | |
| id: 4 | |
| events: { | |
| id: 1 | |
| } | |
| events: { | |
| id: 2 | |
| } | |
| events: { | |
| id: 3 | |
| } | |
| transformation: "y = 1" | |
| repeatability: NONE | |
| } | |
| } | |
| events: { | |
| event: { | |
| type: OR | |
| id: 8 | |
| events: { | |
| id: 5 | |
| } | |
| events: { | |
| id: 6 | |
| } | |
| events: { | |
| id: 7 | |
| } | |
| transformation: "y = 1" | |
| repeatability: NONE | |
| } | |
| } | |
| events: { | |
| event: { | |
| } | |
| } | |
| } | |
| episode_end_listener: { | |
| events: { | |
| id: 9 | |
| } | |
| transformation: "y = x>=0.7" | |
| } | |
| extra_listener: { | |
| type: OR | |
| events: { | |
| event: { | |
| } | |
| } | |
| events: { | |
| event: { | |
| } | |
| } | |
| events: { | |
| event: { | |
| } | |
| } | |
| } | |
| json_extra_listener: { | |
| type: OR | |
| events: { | |
| event: { | |
| } | |
| } | |
| events: { | |
| event: { | |
| } | |
| } | |
| events: { | |
| event: { | |
| } | |
| } | |
| } | |
| instruction_listener: { | |
| type: OR | |
| events: { | |
| event: { | |
| } | |
| } | |
| events: { | |
| event: { | |
| events: { | |
| id: 4 | |
| } | |
| transformation: "y = [\'Access the article \"How to Write a Video Game Review\"\']" | |
| } | |
| } | |
| events: { | |
| event: { | |
| } | |
| } | |
| events: { | |
| event: { | |
| events: { | |
| id: 8 | |
| } | |
| transformation: "y = [\'Read the article and answer the question concisely.\', \'My question is: How To Write a Video Game Review??\']" | |
| } | |
| } | |
| events: { | |
| event: { | |
| } | |
| } | |
| } | |
| } | |
| command: "Search an article to learn how to write a video game review." | |
| command: "Then, access the article \"How to Write a Video Game Review\"" | |
| command: "Then, read the article and answer the question concisely." | |
| command: "My question is: How To Write a Video Game Review??" | |
| vocabulary: "write" | |
| vocabulary: "review" | |
| vocabulary: "game" | |
| vocabulary: "video" | |
| vocabulary: "how to" | |