Improve prompts.

This commit is contained in:
AI Christianson 2025-01-31 17:45:42 -05:00
parent 960d7fb3df
commit dd8b9c0d30
2 changed files with 6 additions and 2 deletions

View File

@ -105,7 +105,7 @@ class CiaynAgent:
"""
<agent instructions>
You are a ReAct agent. You run in a loop and use ONE of the available functions per iteration.
You are a ReAct agent. You run in a loop and use ONE of the available functions per iteration, but you will be called in a loop, so you will be able to accomplish the task over many iterations.
The result of that function call will be given to you in the next message.
Call one function at a time. Function arguments can be complex objects, long strings, etc. if needed.
The user cannot see the results of function calls, so you have to explicitly use a tool like ask_human if you want them to see something.
@ -114,7 +114,8 @@ Use as many steps as you need to in order to fully complete the task.
Start by asking the user what they want.
You must carefully review the conversation history, which functions were called so far, returned results, etc., and make sure the very next function call you make makes sense in order to achieve the original goal.
You must achieve the goal in as few steps possible, but no fewer.
You are expected to use as many steps as necessary to completely achieve the user's request, making many tool calls along the way.
Think hard about what the best *next* tool call is, knowing that you can make as many calls as you need to after that.
You typically don't want to keep calling the same function over and over with the same parameters.
</agent instructions>
@ -205,6 +206,8 @@ Implement a widget factory satisfying the following requirements:
As an agent, you will carefully plan ahead, carefully analyze tool call responses, and adapt to circumstances in order to accomplish your goal.
You will make as many tool calls as you feel necessary in order to fully complete the task.
We're entrusting you with a lot of autonomy and power, so be efficient and don't mess up.
You have often been criticized for:

View File

@ -711,6 +711,7 @@ You have often been criticized for:
- Being too hesitant to use the request_research or reqeust_research_and_implementation tools to fulfill the user query. These are your bread and butter.
- Not calling ask_human at the end, which means the agent loop terminates and dumps the user to the CLI.
- Not calling tools/functions properly, e.g. leaving off required arguments, calling a tool in a loop, calling tools inappropriately.
- If the user asks you something like "what does this project do?" you have asked clarifying questions when you should have just launched a research task.
<initial request>
{initial_request}