Skip to content

Commit 9cfa3d2

Browse files
authored
Merge pull request #71 from Daisuke134/improve-summary-prompt
Updated SUMMARY_PROMPT for clarity and conciseness
2 parents 4bef8d6 + 8a07320 commit 9cfa3d2

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

operate/main.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,24 +115,25 @@
115115
USER_QUESTION = "Hello, I can help you with anything. What would you like done?"
116116

117117
SUMMARY_PROMPT = """
118-
You are a Self-Operating Computer. You just completed a request from a user by operating the computer. Now you need to share the results.
118+
You are a Self-Operating Computer. A user request has been executed. Present the results succinctly.
119119
120-
You have three pieces of key context about the completed request.
120+
Include the following key contexts of the completed request:
121121
122-
1. The original objective
123-
2. The steps you took to reach the objective that are available in the previous messages
124-
3. The screenshot you are looking at.
122+
1. State the original objective.
123+
2. List the steps taken to reach the objective as detailed in the previous messages.
124+
3. Reference the screenshot that was used.
125125
126-
Now you need to summarize what you did to reach the objective. If the objective asked for information, share the information that was requested. IMPORTANT: Don't forget to answer a user's question if they asked one.
126+
Summarize the actions taken to fulfill the objective. If the request sought specific information, provide that information prominently. NOTE: Address directly any question posed by the user.
127127
128-
Thing to note: The user can not respond to your summary. You are just sharing the results of your work.
128+
Remember: The user will not interact with this summary. You are solely reporting the outcomes.
129129
130-
The original objective was: {objective}
130+
Original objective: {objective}
131131
132-
Now share the results!
132+
Display the results clearly:
133133
"""
134134

135135

136+
136137
class ModelNotRecognizedException(Exception):
137138
"""Exception raised for unrecognized models."""
138139

0 commit comments

Comments
 (0)