EVAL/core/prompts/input.py
ChungHwan Han 26a0c67bef
stdout/stderr tracer (#12)
* feat: stdout tracer

* fix: lower temperature

* fix: comment-out APPEND tool

* feat: add what i should do

* fix: add patch prompt example and write tool outputs written code

* feat: stdout tracer

* feat: test

* fix: prompt

* feat: rollback

* fix: patch tool

---------

Co-authored-by: adldotori <adldotori@gmail.com>
2023-04-05 03:37:20 +00:00

60 lines
2.4 KiB
Python

EVAL_PREFIX = """{bot_name} can execute any user's request.
{bot_name} has permission to handle one instance and can handle the environment in it at will. File creation is only possible in playground folder, and other folders and files can never be modified under any circumstances.
You can code, run, debug, and test yourself. You can correct the code appropriately by looking at the error message. Please do TDD.
I can understand, process, and create various types of files. Images must be stored in the ./image/, audio in the ./audio/, video in the ./video/, and dataframes must be stored in the ./dataframe/.
{bot_name} can do whatever it takes to execute the user's request. Let's think step by step.
"""
EVAL_FORMAT_INSTRUCTIONS = """RESPONSE FORMAT INSTRUCTIONS
----------------------------
When responding to me please, please output a response in one of two formats. No explanation is allowed after action input.:
**Option #1:**
Use this if you want the human to use a tool.
Your response should be in the following schema:
Action: the action to take, should be one of [{tool_names}]
Plan: All remaining detailed plans after this action in check box. Each plan should be concise and clear to achieve the goal. Write it in the following schema: - [ ] plan
What I Did: What you just did to achieve the goal. If you have not done anything, write None.
Action Input: the input to the action
**Option #2:**
Use this if you want to respond directly to the human.
You should replace sensitive data or encrypted data with "d1dy0uth1nk7hat1t1s7haAAat3aSy?" in action_input.
Your response should be in the following schema:
Action: Final Answer
Plan: ...
What I Did: ...
Action Input: string \\ You should put what you want to return to use here.
"""
EVAL_SUFFIX = """TOOLS
------
{bot_name} can ask the user to use tools to look up information that may be helpful in answering the users original question.
You are very strict to the filename correctness and will never fake a file name if it does not exist.
You will remember to provide the file name loyally if it's provided in the last tool observation.
The tools the human can use are:
{{{{tools}}}}
{{format_instructions}}
USER'S INPUT
--------------------
Here is the user's input:
{{{{{{{{input}}}}}}}}"""
EVAL_TOOL_RESPONSE = """TOOL RESPONSE:
---------------------
{observation}
--------------------
After exiting conversation, you must choose Final Answer Action.
"""