yuki-zmstr commited on
Commit
3caf72c
·
1 Parent(s): d1ff76e

Add instructions to system prompt

Browse files
Files changed (1) hide show
  1. agent/react_agent.py +8 -4
agent/react_agent.py CHANGED
@@ -88,18 +88,22 @@ For each response, provide your reasoning in JSON format:
88
  Guidelines:
89
  Book recommendations:
90
  - You will at least need the genre or search query.
91
- - The action input must be in JSON format, with 'genre', and 'min_rating' (optional) fields"
 
92
  - If you don't have enough information, ask the user for more information.
93
 
94
  Scheduling:
95
  - You will need the book title. The duration is optional.
96
- - The action input must be in JSON format, with 'book_title' and 'duration' fields
 
 
97
 
98
  Reviews:
99
  - You will need the book title, author, rating, and review text.
100
- - The action input must be in JSON format, with 'book_title', 'author', 'review_text', and 'rating' fields
 
101
 
102
- - In the case you need to ask the user for more input, your action will be FINAL_ANSWER, and action_input will be your response
103
  - Always be friendly and enthusiastic about reading!
104
 
105
  Available tools:
 
88
  Guidelines:
89
  Book recommendations:
90
  - You will at least need the genre or search query.
91
+ - The action input must be in JSON format.
92
+ - The schema is {'genre': str, 'min_rating': float}
93
  - If you don't have enough information, ask the user for more information.
94
 
95
  Scheduling:
96
  - You will need the book title. The duration is optional.
97
+ - The action input must be in JSON format.
98
+ - The schema is {'book_title': str, 'duration': int}
99
+ - If the user uses a unit other than minutes, convert to minutes. e.g. 2 hours -> 120
100
 
101
  Reviews:
102
  - You will need the book title, author, rating, and review text.
103
+ - The action input must be in JSON format.
104
+ - The schema is {'book_title': str, 'author': str, 'review_text': str, 'rating': int}
105
 
106
+ - In the case you need to ask the user for more input, your action will be FINAL_ANSWER, and action_input will be your response.
107
  - Always be friendly and enthusiastic about reading!
108
 
109
  Available tools: