-
Notifications
You must be signed in to change notification settings - Fork 32
/
native_tools.toml
140 lines (130 loc) · 4.61 KB
/
native_tools.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#####################################
### Send message
#####################################
[[instruction]]
name = "send_message"
description = "Send message to stdout"
[[instruction.parameters]]
name = "message"
description = "Message to send as a plain text"
#####################################
### User input
#####################################
[[instruction]]
name = "user_input"
description = """Read a message from user. If you need to ask a user."""
[[instruction.parameters]]
name = "prompt"
description = "prompt as a plain text"
#####################################
### Python script execution
#####################################
[[instruction]]
name = "execute_python_script"
description = """This is the python code interpreter.
Use python script from response or generate a new one to execute.
1. Always add to the code 'print' instruction to output result of code execution
to the console, e.g. outputting variables important for understanding the result;
2. Handle potential None or unexpected types in the Python code within the JSON;
3. In JSON, all strings must be enclosed in double quotes, and any double quotes
within those strings must be escaped using a backslash (\");
4. Ensure any backslashes in JSON string values are correctly escaped.
This includes doubling them up (\\\\) or properly forming escape sequences for special characters."""
[[instruction.parameters]]
name = "script"
description = "insert here python script as a plain text"
[[instruction.parameters]]
name = "dependencies"
description = "dependencies separated by spaces need to be installed to execute the code"
#####################################
### Bash command execution
#####################################
[[instruction]]
name = "execute_bash_command"
description = """Bash command to execute.
Call this instruction if you need to execute a bash command.
Use the bash command from response in markdown syntax or generate a new one.
1. Do strings with escape charactres and use double quotes;
2. For http requests, if the url string has spaces, insert a '+' between words."""
[[instruction.parameters]]
name = "command"
description = "insert bash command here as a plain text"
#####################################
### Read file
#####################################
[[instruction]]
name = "read_file"
description = """Read file and return content from it."""
[[instruction.parameters]]
name = "file_path"
description = """Insert here path with filename.
Use a relative or absolute path if required.
Consider the working directory."""
#####################################
### Write file
#####################################
[[instruction]]
name = "write_file"
description = """Create file and write content into it."""
[[instruction.parameters]]
name = "file_path"
description = """Insert here path with filename.
Use a relative or absolute path if required.
Consider the working directory."""
[[instruction.parameters]]
name = "content"
description = "insert here content to write into file"
#####################################
### Append file
#####################################
[[instruction]]
name = "append_file"
description = """Append content to a file."""
[[instruction.parameters]]
name = "file_path"
description = """Insert here path with filename.
Use a relative or absolute path if required.
Consider the working directory."""
[[instruction.parameters]]
name = "content"
description = "insert here content to append to a file"
#####################################
### Store in memory
### Memory shared for all instructions/contexts
#####################################
[[instruction]]
name = "memory"
description = """Memorizing content as requested."""
[[instruction.parameters]]
name = "keyword"
description = "insert relevant keyword here"
[[instruction.parameters]]
name = "description"
description = "insert a brief description of the content here"
[[instruction.parameters]]
name = "content"
description = "insert here content to memorize as a plain text"
#####################################
### List collections
#####################################
[[instruction]]
name = "list_collections"
description = """List all collections from long-term memory"""
#####################################
### Create collection
#####################################
[[instruction]]
name = "create_collection"
description = """Create collection"""
[[instruction.parameters]]
name = "name"
description = """Collection name"""
#####################################
### Delete collection
#####################################
[[instruction]]
name = "delete_collection"
description = """Delete collection"""
[[instruction.parameters]]
name = "name"
description = """Collection name"""