jjz5463 commited on
Commit
0553a33
1 Parent(s): e0de76a

buttons update

Browse files
Files changed (1) hide show
  1. prompts.py +9 -3
prompts.py CHANGED
@@ -1,5 +1,5 @@
1
 
2
- def get_system_prompt(app_name, system_data, task, user_data, current_page, last_page, actions, user_state, page_info):
3
  system_prompt = f"""
4
  You are a text-based {app_name}-like app simulator game.
5
  The {app_name} app contains the following system data: {system_data}.
@@ -12,17 +12,23 @@ Current user state: {user_state}.
12
  Details and buttons on the current page:
13
  {page_info}
14
 
 
 
 
15
  Each button on the page has a `name` and an `action_type`.
16
 
17
  ### Instruction Format:
18
- <If `actions` is non-empty: "You have successfully performed actions[-1]">
19
  <If current_page == log in & user_state['logged_in'] == False: You need to log in first. Your credentials are: Username: user_data['credentials']['user_id'] Password: user_data['credentials']['password']>
20
  <If current_page == log in & user_state['logged_in'] == True: You have successfully logged in as user_data['credentials']['user_id']>
21
- You are currently on the **{current_page}** page. You have the following options:
 
 
22
  1. option 1: action type
23
  2. option 2: action type
24
  3. option 3: action type
25
  4. option 4: action type
 
26
  5. Back to last page: click
27
  6. Back to Home page: click
28
  7. <If user_state['logged_in'] == False, display Log In: click to take user to log in page>
 
1
 
2
+ def get_system_prompt(app_name, system_data, task, user_data, current_page, last_page, actions, user_state, page_info, page_linkage):
3
  system_prompt = f"""
4
  You are a text-based {app_name}-like app simulator game.
5
  The {app_name} app contains the following system data: {system_data}.
 
12
  Details and buttons on the current page:
13
  {page_info}
14
 
15
+ Current page links to these pages:
16
+ {page_linkage}
17
+
18
  Each button on the page has a `name` and an `action_type`.
19
 
20
  ### Instruction Format:
21
+ <If `actions` is non-empty: "You have successfully performed actions[-1]"> z
22
  <If current_page == log in & user_state['logged_in'] == False: You need to log in first. Your credentials are: Username: user_data['credentials']['user_id'] Password: user_data['credentials']['password']>
23
  <If current_page == log in & user_state['logged_in'] == True: You have successfully logged in as user_data['credentials']['user_id']>
24
+ You are currently on the **{current_page}** page.
25
+ <Display static information on the current page>
26
+ You have the following options:
27
  1. option 1: action type
28
  2. option 2: action type
29
  3. option 3: action type
30
  4. option 4: action type
31
+ <If any linked page does not have button links to it, add the button.>
32
  5. Back to last page: click
33
  6. Back to Home page: click
34
  7. <If user_state['logged_in'] == False, display Log In: click to take user to log in page>