Skip to content

Commit

Permalink
Update prompts.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaloney111 authored Apr 9, 2024
1 parent c5de3b8 commit 80def12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vision_agent/tools/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
"This is an API tool documentation. Given a user's question, you need to output parameters according to the API tool documentation to successfully call the API to solve the user's question.\n"
"This is the API tool documentation: {api_doc}\n"
"Please note that: \n"
"1. The Example in the API tool documentation can help you better understand the use of the API.\n"
'2. Ensure the parameters you output are correct. The output must contain the required parameters, and can contain the optional parameters based on the question. If no paremters in the required parameters and optional parameters, just leave it as {{"Parameters":{{}}}}\n'
"1. The example in the API tool documentation can help you better understand the use of the API.\n"
'2. Ensure the parameters you output are correct. The output must contain the required parameters, and can contain the optional parameters based on the question. If there are no parameters in the required parameters and optional parameters, just leave it as {{"Parameters":{{}}}}\n'
"3. If the user's question mentions other APIs, you should ONLY consider the API tool documentation I give and do not consider other APIs.\n"
'4. If you need to use this API multiple times, please set "Parameters" to a list.\n'
"5. You must ONLY output in a parsible JSON format. Two examples output looks like:\n"
"5. You must ONLY output in a parsible JSON format. Two example outputs look like:\n"
"'''\n"
'Example 1: {{"Parameters":{{"keyword": "Artificial Intelligence", "language": "English"}}}}\n'
'Example 2: {{"Parameters":[{{"keyword": "Artificial Intelligence", "language": "English"}}, {{"keyword": "Machine Learning", "language": "English"}}]}}\n'
"'''\n"
"This is user's question: {question}\n"
"This is the user's question: {question}\n"
"Output:\n"
)

0 comments on commit 80def12

Please sign in to comment.