aimyapi 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,30 +1,37 @@
1
-
2
- Most recent user query:
3
- {{USER_QUERY}}
4
-
5
- ---
6
-
7
- Based on the above conversation, write a typescript script that performs the next operation requested by the user.
8
-
9
- Here's the typescript API to use for your script.
10
-
11
- `api.ts`:
12
- ```typescript
13
- {{API}}
14
- ```
15
-
16
- Use the global api object to make calls to the API.
17
- You may use top level `await`.
18
-
19
- If needed, gather any information you need to complete the request.
20
- You may use `runCode` to run any non-destructive API calls to understand what you need to do. Nothing will be returned unless you `console.log` it.
21
- In your code, `console.log` and `console.error` can be used to understand the execution or indicate that an error happened, but debug logs should be removed in the final version.
22
- You can use the `checkCode` tool to confirm that the code passes the typescript compilation and doesn't have errors
23
- You can call `submitCode` to submit the final version of the code.
24
-
25
- ---
26
-
27
- {{DOCUMENTATION}}
28
-
29
- {{CONTEXT}}
30
-
1
+
2
+ Most recent user query:
3
+ {{USER_QUERY}}
4
+
5
+ ---
6
+
7
+ Based on the prior conversation, write a typescript script that performs the operation requested by the user and call the `submitCode` tool with the script.
8
+
9
+ ## API documentation
10
+
11
+ You can make use of this global API object:
12
+
13
+ `api.ts`:
14
+ ```typescript
15
+ {{API}}
16
+ ```
17
+
18
+ ## Instructions
19
+
20
+ Use the global api object to make calls to the API.
21
+
22
+ You may use top level `await`.
23
+
24
+ If needed, you may use `runCode` to run any non-destructive API calls to gather data for your script. Nothing will be visible to you unless you `console.log` it.
25
+
26
+ You may use the `checkCode` tool to confirm that your code passes typescript compilation and doesn't have errors before submitting.
27
+
28
+ In your code, `console.log` and `console.error` can be used to understand the execution or indicate that an error happened, but debug logs should be removed in the final version (errors can stay).
29
+
30
+ When finished, you must call `submitCode` to submit the final version of the code, then respond with "Successfully submitted code" on success. On failure, correct any errors and submit again.
31
+
32
+ ---
33
+
34
+ {{DOCUMENTATION}}
35
+
36
+ {{CONTEXT}}
37
+