instruction
I travelled with British Airways regularly and like their service, so look up the flight details in the booking.com app and sort by the cheapest direct flights from both sides.
previous_actions
{"name": "open_app", "parameters": {"app_name": "Booking.com"}}
{"name": "click", "parameters": {"x": 174, "y": 359}}
{"name": "click", "parameters": {"x": 529, "y": 2263}}
{"name": "click", "parameters": {"x": 460, "y": 359}}
{"name": "click", "parameters": {"x": 995, "y": 1472}}
{"name": "click", "parameters": {"x": 947, "y": 2232}}
{"name": "click", "parameters": {"x": 1019, "y": 359}}
active_application
screen_description
windows {
  bounds_in_screen {
    right: 1080
    bottom: 128
  }
  id: 8
  layer: 1
  window_type: TYPE_SYSTEM
  tree {
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
      depth: 2
    }
    nodes {
      bounds_in_screen {
        left: 50
        right: 1027
        bottom: 128
      }
      class_name: "android.widget.LinearLayout"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        left: 50
        top: 1
        right: 469
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 469
        top: 1
        right: 587
        bottom: 128
      }
      class_name: "android.view.View"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 587
        top: 1
        right: 1006
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        left: 50
        top: 1
        right: 442
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 924
        top: 1
        right: 1006
        bottom: 128
      }
      class_name: "android.widget.LinearLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        left: 50
        top: 1
        right: 442
        bottom: 128
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 924
        top: 1
        right: 1006
        bottom: 128
      }
      class_name: "android.widget.LinearLayout"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        left: 50
        top: 1
        right: 152
        bottom: 128
      }
      class_name: "android.widget.TextView"
      content_description: "10:36 AM"
      text: "10:36"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 152
        top: 1
        right: 442
        bottom: 128
      }
      class_name: "android.widget.FrameLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 924
        top: 1
        right: 986
        bottom: 128
      }
      class_name: "android.widget.LinearLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 986
        top: 1
        right: 1006
        bottom: 128
      }
      class_name: "android.widget.LinearLayout"
      content_description: "Battery charging, 100 percent."
      depth: 7
    }
    nodes {
      bounds_in_screen {
        left: 152
        top: 1
        right: 442
        bottom: 128
      }
      class_name: "android.view.ViewGroup"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 924
        top: 35
        right: 970
        bottom: 93
      }
      class_name: "android.widget.FrameLayout"
      content_description: "Wifi signal full."
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 986
        top: 47
        right: 1006
        bottom: 81
      }
      class_name: "android.widget.ImageView"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        left: 152
        top: 1
        right: 210
        bottom: 128
      }
      class_name: "android.widget.ImageView"
      content_description: "Snapchat notification: Sukhdev: Sukhdev"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 210
        top: 1
        right: 268
        bottom: 128
      }
      class_name: "android.widget.ImageView"
      content_description: "Snapchat notification: Jane, Watch this!"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 268
        top: 1
        right: 326
        bottom: 128
      }
      class_name: "android.widget.ImageView"
      content_description: "Weather notification: 33°"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 326
        top: 1
        right: 384
        bottom: 128
      }
      class_name: "android.widget.ImageView"
      content_description: "Clock notification: Upcoming alarm"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 384
        top: 1
        right: 442
        bottom: 128
      }
      class_name: "android.widget.ImageView"
      content_description: "AccuWeather notification: "
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 931
        top: 35
        right: 970
        bottom: 93
      }
      class_name: "android.widget.LinearLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 931
        top: 44
        right: 970
        bottom: 83
      }
      class_name: "android.widget.FrameLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        left: 931
        top: 44
        right: 970
        bottom: 83
      }
      class_name: "android.widget.ImageView"
      depth: 11
    }
  }
}
windows {
  bounds_in_screen {
    right: 1080
    bottom: 2400
  }
  id: 7613
  window_type: TYPE_APPLICATION
  is_active: true
  is_focused: true
  tree {
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2400
      }
      class_name: "android.widget.FrameLayout"
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.LinearLayout"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        top: 2337
        right: 1080
        bottom: 2400
      }
      class_name: "android.view.View"
      depth: 1
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 2
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 3
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 4
    }
    nodes {
      bounds_in_screen {
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 5
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.ViewGroup"
      depth: 6
    }
    nodes {
      bounds_in_screen {
        top: 128
        right: 1080
        bottom: 2337
      }
      class_name: "android.view.View"
      is_clickable: true
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 649
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 7
    }
    nodes {
      bounds_in_screen {
        top: 649
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 8
    }
    nodes {
      bounds_in_screen {
        top: 649
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.FrameLayout"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        left: 473
        top: 670
        right: 607
        bottom: 681
      }
      class_name: "android.view.View"
      depth: 9
    }
    nodes {
      bounds_in_screen {
        top: 649
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.LinearLayout"
      depth: 10
    }
    nodes {
      bounds_in_screen {
        top: 649
        right: 1080
        bottom: 804
      }
      class_name: "android.widget.TextView"
      text: "Airlines"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        top: 804
        right: 1080
        bottom: 2124
      }
      class_name: "android.widget.ScrollView"
      is_focusable: true
      is_scrollable: true
      depth: 11
    }
    nodes {
      bounds_in_screen {
        top: 2124
        right: 1080
        bottom: 2127
      }
      class_name: "android.view.View"
      depth: 11
    }
    nodes {
      bounds_in_screen {
        top: 2127
        right: 1080
        bottom: 2337
      }
      class_name: "android.widget.RelativeLayout"
      is_clickable: true
      is_focusable: true
      depth: 11
    }
    nodes {
      bounds_in_screen {
        top: 804
        right: 1080
        bottom: 2124
      }
      class_name: "android.widget.LinearLayout"
      is_clickable: true
      is_focusable: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 2169
        right: 212
        bottom: 2295
      }
      class_name: "android.widget.Button"
      text: "Reset"
      is_clickable: true
      is_focusable: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        left: 857
        top: 2169
        right: 1038
        bottom: 2295
      }
      class_name: "android.widget.Button"
      text: "Done"
      is_clickable: true
      is_focusable: true
      depth: 12
    }
    nodes {
      bounds_in_screen {
        top: 804
        right: 1080
        bottom: 930
      }
      class_name: "android.widget.Switch"
      text: "Select all"
      is_checkable: true
      is_clickable: true
      is_focusable: true
      depth: 13
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 972
        right: 1038
        bottom: 975
      }
      class_name: "android.view.View"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        top: 1017
        right: 1080
        bottom: 2124
      }
      class_name: "android.widget.LinearLayout"
      depth: 13
    }
    nodes {
      bounds_in_screen {
        top: 1017
        right: 1080
        bottom: 1143
      }
      class_name: "android.widget.LinearLayout"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        top: 1143
        right: 1080
        bottom: 1269
      }
      class_name: "android.widget.LinearLayout"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        top: 1269
        right: 1080
        bottom: 1395
      }
      class_name: "android.widget.LinearLayout"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        top: 1395
        right: 1080
        bottom: 1521
      }
      class_name: "android.widget.LinearLayout"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        top: 1521
        right: 1080
        bottom: 1647
      }
      class_name: "android.widget.LinearLayout"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        top: 1647
        right: 1080
        bottom: 1773
      }
      class_name: "android.widget.LinearLayout"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        top: 1773
        right: 1080
        bottom: 1899
      }
      class_name: "android.widget.LinearLayout"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        top: 1899
        right: 1080
        bottom: 2025
      }
      class_name: "android.widget.LinearLayout"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        top: 2025
        right: 1080
        bottom: 2124
      }
      class_name: "android.widget.LinearLayout"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        top: 2151
        right: 1080
        bottom: 2124
      }
      class_name: "android.widget.LinearLayout"
      is_clickable: true
      is_focusable: true
      depth: 14
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 1053
        right: 933
        bottom: 1106
      }
      class_name: "android.widget.TextView"
      text: "Air Caraibes"
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 954
        top: 1017
        right: 1038
        bottom: 1143
      }
      class_name: "android.widget.CheckBox"
      is_checkable: true
      is_focusable: true
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 1179
        right: 933
        bottom: 1232
      }
      class_name: "android.widget.TextView"
      text: "Air France"
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 954
        top: 1143
        right: 1038
        bottom: 1269
      }
      class_name: "android.widget.CheckBox"
      is_checkable: true
      is_focusable: true
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 1305
        right: 933
        bottom: 1358
      }
      class_name: "android.widget.TextView"
      text: "American Airlines"
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 954
        top: 1269
        right: 1038
        bottom: 1395
      }
      class_name: "android.widget.CheckBox"
      is_checkable: true
      is_focusable: true
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 1431
        right: 933
        bottom: 1484
      }
      class_name: "android.widget.TextView"
      text: "British Airways"
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 954
        top: 1395
        right: 1038
        bottom: 1521
      }
      class_name: "android.widget.CheckBox"
      is_checkable: true
      is_focusable: true
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 1557
        right: 933
        bottom: 1610
      }
      class_name: "android.widget.TextView"
      text: "Brussels Airlines"
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 954
        top: 1521
        right: 1038
        bottom: 1647
      }
      class_name: "android.widget.CheckBox"
      is_checkable: true
      is_focusable: true
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 1683
        right: 933
        bottom: 1736
      }
      class_name: "android.widget.TextView"
      text: "French Bee"
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 954
        top: 1647
        right: 1038
        bottom: 1773
      }
      class_name: "android.widget.CheckBox"
      is_checkable: true
      is_focusable: true
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 1809
        right: 933
        bottom: 1862
      }
      class_name: "android.widget.TextView"
      text: "La Compagnie"
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 954
        top: 1773
        right: 1038
        bottom: 1899
      }
      class_name: "android.widget.CheckBox"
      is_checkable: true
      is_focusable: true
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 1935
        right: 933
        bottom: 1988
      }
      class_name: "android.widget.TextView"
      text: "Lufthansa"
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 954
        top: 1899
        right: 1038
        bottom: 2025
      }
      class_name: "android.widget.CheckBox"
      is_checkable: true
      is_focusable: true
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 2061
        right: 933
        bottom: 2114
      }
      class_name: "android.widget.TextView"
      text: "Norse Atlantic Airways"
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 954
        top: 2025
        right: 1038
        bottom: 2124
      }
      class_name: "android.widget.CheckBox"
      is_checkable: true
      is_focusable: true
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 42
        top: 2187
        right: 933
        bottom: 2124
      }
      class_name: "android.widget.TextView"
      text: "United Airlines"
      depth: 15
    }
    nodes {
      bounds_in_screen {
        left: 954
        top: 2151
        right: 1038
        bottom: 2124
      }
      class_name: "android.widget.CheckBox"
      is_checkable: true
      is_focusable: true
      depth: 15
    }
  }
}

assistant
!FUNCTIONCALL{"name": "click", "parameters": {"x": 995, "y": 1458}}
[{"type": "function", "function": {"name": "click", "description": "Click on a specific location on the screen", "parameters": {"type": "object", "properties": {"x": {"type": "integer", "description": "Coordinate on the x axis to click."}, "y": {"type": "integer", "description": "Coordinate on the y axis to click."}}, "required": ["x", "y"]}}}, {"type": "function", "function": {"name": "long_press", "description": "Long press on a specific location on the screen.", "parameters": {"type": "object", "properties": {"x": {"type": "integer", "description": "Coordinate on the x axis to long press."}, "y": {"type": "integer", "description": "Coordinate on the y axis to long press."}}, "required": ["x", "y"]}}}, {"type": "function", "function": {"name": "input_text", "description": "Write text inside of an already selected text field, typically this is preceeded by a 'click' action that selects a field on the screen to type into.", "parameters": {"type": "object", "properties": {"text": {"type": "string", "description": "The text to input in the field."}}, "required": ["text"]}}}, {"type": "function", "function": {"name": "scroll", "description": "Scroll a fixed amount in a specific direction.", "parameters": {"type": "object", "properties": {"direction": {"type": "string", "enum": ["up", "down", "left", "right"], "description": "The direction to scroll in."}}, "required": ["direction"]}}}, {"type": "function", "function": {"name": "navigate_home", "description": "Navigate to the home screen from the current screen you are on.", "parameters": {"type": "object", "properties": {}}}}, {"type": "function", "function": {"name": "navigate_back", "description": "Navigate back to the previous page.", "parameters": {"type": "object", "properties": {}}}}, {"type": "function", "function": {"name": "open_app", "description": "Open an application.", "parameters": {"type": "object", "properties": {"app_name": {"type": "string", "description": "The name of the application to open."}}, "required": ["app_name"]}}}, {"type": "function", "function": {"name": "wait", "description": "Wait for a fixed amount of time. This is useful when you need to 'await' the results of a page that is still loading.", "parameters": {"type": "object", "properties": {}}}}, {"type": "function", "function": {"name": "status", "description": "Once you have completed the work required to fulfill an instruction, report your status by calling this function with 'successful'. If you find that a task is impossible to complete,  call this with 'infeasible' after finding that information.", "parameters": {"type": "object", "properties": {"goal_status": {"type": "string", "enum": ["successful", "infeasible"], "description": "The status of the completion of a instruction, either 'successful' or 'infeasible', called to conclude an episode."}}, "required": ["goal_status"]}}}]