|
id: "search_how_to_make_bottle_cap_art-article_make bottle cap art-needed_items_what is needed to make bottle cap art?" |
|
name: "WikiHow Search Task Primitive - Search how_to_make_bottle_cap_art, Access How to Make Bottle Cap Art, What is needed to Make Bottle Cap Art?" |
|
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 needed items" |
|
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(make|bottle|cap|art)\\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(make|bottle|cap|art)\\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=.*(make|bottle|cap|art).*" |
|
} |
|
id: 3 |
|
} |
|
event_sources: { |
|
text_detect: { |
|
expect: "How to Make Bottle Cap Art" |
|
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/Make-Bottle-Cap-Art" |
|
} |
|
id: 6 |
|
} |
|
event_sources: { |
|
view_hierarchy_event: { |
|
properties: { |
|
property_name: "text" |
|
pattern: "How to Make Bottle Cap Art" |
|
} |
|
selector: ".\"android.view.View\"#\"section_0\" .$\"TextView\"" |
|
} |
|
id: 7 |
|
} |
|
event_sources: { |
|
response_event: { |
|
pattern: "Making Bottle Cap Canvas Art\n • Canvas\n • Acrylic craft paint or spray paint\n • Wide, flat paintbrushes (for acrylic paint)\n • Metal bottle caps\n • Hammer\n • Hot glue or industrial strength glue\n\nCreating a Bottle Cap Tray\n • Wooden tray\n • Acrylic craft paint\n • Wide, flat paintbrushes\n • Painter\'s tape\n • Grout or clear epoxy resin\n • Grout float (if using grout)\n • Sponge (if using grout)\n • Metal bottle caps\n • Liquid nails, hot glue, or industrial strength glue" |
|
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 Make Bottle Cap Art\"\']" |
|
} |
|
} |
|
events: { |
|
event: { |
|
} |
|
} |
|
events: { |
|
event: { |
|
events: { |
|
id: 8 |
|
} |
|
transformation: "y = [\'Read the article and summarize the needed items for the task.\', \'The summary should be given in an unnumbered list.\']" |
|
} |
|
} |
|
events: { |
|
event: { |
|
} |
|
} |
|
} |
|
} |
|
command: "Search an article to learn how to make bottle cap art." |
|
command: "Then, access the article \"How to Make Bottle Cap Art\"" |
|
command: "Then, read the article and summarize the needed items for the task." |
|
command: "The summary should be given in an unnumbered list." |
|
vocabulary: "bottle" |
|
vocabulary: "art" |
|
vocabulary: "cap" |
|
vocabulary: "make" |
|
vocabulary: "how to" |
|
|