| id : "add_interstellar_into_watchlist" |
| name : "imdb interaction Task - add_interstellar_into_watchlist" |
| description: "A task that needs agent: first Search the interstellar then add it into the watchlist in the corresponding page" |
|
|
|
|
|
|
| reset_steps: { |
| adb_call: { |
| force_stop: { |
| package_name: "com.imdb.mobile" |
| } |
| } |
| } |
|
|
| reset_steps: { |
| success_condition: { |
| num_retries: 10 |
| wait_for_app_screen: { |
| app_screen: { |
| activity: "com.imdb.mobile/com.imdb.mobile.HomeActivity" |
| } |
| timeout_sec: 10.0 |
| } |
| } |
| adb_call: { |
| start_activity: { |
| full_activity: "com.imdb.mobile/com.imdb.mobile.HomeActivity" |
| } |
| } |
| } |
|
|
| expected_app_screen: { |
|
|
| } |
|
|
| max_num_steps: 5000 |
|
|
|
|
| event_sources: { |
| view_hierarchy_event: { |
| selector: '.$"widget.EditText"#$"search_src_text"' |
| properties: { |
| property_name: "text" |
| pattern: "Search IMDb" |
| } |
| } |
| id: 1 |
| } |
| |
| event_sources: { |
| view_hierarchy_event: { |
| selector: '.$"TextView"#$"plot_overview"' |
| properties: { |
| property_name: "text" |
| pattern: "When Earth becomes uninhabitable in the future, a farmer and ex-NASA pilot, Joseph Cooper, is tasked to pilot a spacecraft, along with a team of researchers, to find a new planet for humans." |
| } |
| } |
| id: 2 |
| } |
|
|
| event_sources: { |
| view_hierarchy_event: { |
| selector: '.$"TextView"#$"login_text"' |
| properties: { |
| property_name: "text" |
| pattern: "Please sign in to add this title to your Watchlist." |
| } |
| } |
| id: 3 |
| } |
|
|
| event_slots: { |
|
|
| reward_listener:{ |
| type:OR |
| events:{ |
| event:{ |
| type:OR |
| id:10 |
| events:{ |
| id:1 |
| } |
| events:{ |
| id:1 |
| } |
| transformation:"y=1" |
| } |
| } |
| events:{ |
| event:{ |
| type:OR |
| id:11 |
| events:{ |
| id:2 |
| } |
| events:{ |
| id:2 |
| } |
| transformation:"y=1" |
| } |
| |
| } |
| } |
| |
|
|
| episode_end_listener: { |
| type: OR |
| id:12 |
| events: { |
| id: 3 |
| } |
| events: { |
| id: 3 |
| } |
| transformation: "y = True" |
| } |
|
|
| instruction_listener: { |
| type: OR |
| events: { |
| event: { |
| events: { |
| id: 10 |
| } |
| transformation: "y = [\'Good Job, continue check this movie \']" |
| } |
| } |
| events: { |
| event: { |
| events: { |
| id: 11 |
| } |
| transformation: "y = [\'Well, help me add this movie in my watchlist\']" |
| } |
| } |
| } |
| } |
|
|
| command: "Search the interstellar.(hint:four navigations nodes represent :home,search,videos,profile)" |
|
|
|
|
| vocabulary: ["interstellar"] |