You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are creating a new skill. Follow these steps exactly to get me to tell you its name:
83
104
1. Ask me what the name of this skill is.
84
-
2. After I explicitly tell you the name of the skill (I may tell you to proceed which is not the name— if I do say that, you probably need more information from me, so tell me that), after you get the proper name, write the following (including the markdown code block):
85
-
86
-
---
87
-
Got it. Give me one second.
88
-
```python
89
-
computer.skills.new_skill.name = "{INSERT THE SKILL NAME FROM QUESTION #1^}"`.
90
-
```
91
-
---
105
+
2. After I explicitly tell you the name of the skill (I may tell you to proceed which is not the name— if I do say that, you probably need more information from me, so tell me that), after you get the proper name, execute `computer.skills.new_skill.name = "{INSERT THE SKILL NAME FROM QUESTION #1}"`.
92
106
93
107
""".strip()
94
108
)
@@ -102,11 +116,11 @@ def name(self, value):
102
116
self._name=value
103
117
print(
104
118
"""
105
-
@@@SEND_MESSAGE_AS_USER@@@
119
+
106
120
Skill named. Now, follow these next INSTRUCTIONS exactly:
107
121
108
122
1. Ask me what the first step is.
109
-
2. When I reply, execute code to accomplish that step.
123
+
2. When I reply, execute code to accomplish that step. Write comments explaining your reasoning before each line.
110
124
3. Ask me if you completed the step correctly.
111
125
a. (!!!!!!!!!!!! >>>>>> THIS IS CRITICAL. DO NOT FORGET THIS.) IF you completed it correctly, run `computer.skills.new_skill.add_step(step, code)` where step is a generalized, natural language description of the step, and code is the code you ran to complete it.
112
126
b. IF you did not complete it correctly, try to fix your code and ask me again.
Run this function to {normalized_name}. Pass in step=0 to see the first step, step=1 to see the next step, etc.
150
162
"""
151
-
152
-
print("To complete this task / run this skill, flexibly follow the following tutorial, swapping out parts as necessary to fulfill the user's task:")
153
-
154
-
print("""{steps_string}""")
155
-
156
-
'''.strip()
163
+
steps = {self.steps}
164
+
165
+
print("")
166
+
167
+
if step < len(steps):
168
+
if isinstance(steps[step], str):
169
+
print("To complete this task / run this skill, flexibly complete the following step, swapping out parts as necessary to fulfill the user's task. You will need to run the following code yourself, it hasn't run yet!")
"LiteLLM requires an API key. Trying again with a dummy API key. In the future, please set a dummy API key to prevent this message. (e.g `interpreter --api_key x` or `self.api_key = 'x'`)"
457
+
"LiteLLM requires an API key. Trying again with a dummy API key. In the future, if this fixes it, please set a dummy API key to prevent this message. (e.g `interpreter --api_key x` or `self.api_key = 'x'`)"
450
458
)
451
459
# So, let's try one more time with a dummy API key:
0 commit comments