jjz5463 commited on
Commit
e0de76a
1 Parent(s): 8e58f6e

buttons update

Browse files
Files changed (1) hide show
  1. chatbot_simulator.py +3 -1
chatbot_simulator.py CHANGED
@@ -53,6 +53,7 @@ class ChatbotSimulation:
53
  current_page = self.page_history[-1] if len(self.page_history) >= 1 else "Home"
54
  last_page = self.page_history[-2] if len(self.page_history) > 1 else "Home"
55
  page_info = self._get_page_details(current_page)
 
56
 
57
  return get_system_prompt(app_name=self.app_name,
58
  system_data=self.system_data,
@@ -62,7 +63,8 @@ class ChatbotSimulation:
62
  last_page=last_page,
63
  actions=self.actions,
64
  user_state=self.user_state,
65
- page_info=page_info
 
66
  )
67
 
68
  @retry(
 
53
  current_page = self.page_history[-1] if len(self.page_history) >= 1 else "Home"
54
  last_page = self.page_history[-2] if len(self.page_history) > 1 else "Home"
55
  page_info = self._get_page_details(current_page)
56
+ page_linkage = self.sitemap.get(current_page, {}).get('links_to')
57
 
58
  return get_system_prompt(app_name=self.app_name,
59
  system_data=self.system_data,
 
63
  last_page=last_page,
64
  actions=self.actions,
65
  user_state=self.user_state,
66
+ page_info=page_info,
67
+ page_linkage=page_linkage
68
  )
69
 
70
  @retry(