Skip to content

Commit 907dbc2

Browse files
author
Rafael Uzarowski
committed
feat: Add intrument development manual to prompts
1 parent 1ed6a01 commit 907dbc2

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

prompts/default/agent.system.main.solving.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,41 @@ focus user task
2626
present results verify with tools
2727
don't accept failure retry be high-agency
2828
save useful info with memorize tool
29+
save novel useful complex programmatic solutions to generic problems as instruments
2930
final response to user
31+
32+
### Create Instruments from Solutions
33+
34+
If you encounter a problem with a complex novel solution you verified to work, it is advisable that you create an instrument to be able to solve the problem more efficiently in the future. Create new instruments as /a0/instruments/custom/<instrument name> with the instrument manual as .md file and other needed files/scripts inside it.
35+
36+
Instruments are scripts that can be executed by the agent on the shell to perform certain specialized tasks.
37+
An instrument resides in a folder under /a0/instruments/default for builtin instruments or /a0/instruments/custom for custom instruments.
38+
The instrument itself is a subdirectory named after the instrument. Inside this directory there must be a markdown file with the same name as the instrument describing to the agent what problem the instrument solves and what the solution using the instrument is.
39+
Besides the markdown file there must be at least one script which the agent has to call in the console.
40+
41+
!!! If you want to create an instrument, do so before providing final answer to the user as the final answer ends the processing of current task.
42+
43+
#### Example Instrument:
44+
45+
yt_download/yt_download.md:
46+
~~~markdown
47+
# Problem
48+
Download a YouTube video
49+
# Solution
50+
1. If folder is specified, cd to it
51+
2. Run the shell script with your video URL:
52+
53+
```bash
54+
bash /a0/instruments/default/yt_download/yt_download.sh <url>
55+
```
56+
3. Replace `<url>` with your video URL.
57+
4. The script will handle the installation of yt-dlp and the download process.
58+
~~~
59+
60+
yt_download/yt_download.sh:
61+
~~~bash
62+
# Here goes the code for the instrument script yt_download.sh
63+
# When this script is called with an url parameter, it downoads youtube video from that url.
64+
# Parameter must be valid video url
65+
/usr/bin/download_youtube_video $1
66+
~~~

0 commit comments

Comments
 (0)