-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
functions.json
executable file
·68 lines (66 loc) · 3.52 KB
/
functions.json
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
[ {
"name": "acknowledge",
"description": "This function should always be used if no other function is required / wouldnt be useful for the input or if the user is just talking to the assistant. This should also be called when requesting to write code without requesting said code to be ran.",
"params": {
"message": "an optional message from GateKeeper, it should not exceed 5 words."
}
},
{
"name": "internetsearch",
"description": "This uses a search engine to research the topic. Only use when neccessary. Must never be used for translation related tasks.",
"params": {
"keywords": "A comma separated list of keywords to be passed to the search engine."
}
},
{
"name": "portscan",
"description": "This scans an IP for open ports and similar information. Also useful to see if a host is down/up.",
"params": {
"ip": "IP to scan"
}
},
{
"name": "wolframalpha",
"description": "This uses wolfram alpha to solve the query and returns the result, this should be used for math adjacent requests.",
"params": {
"query": "A valid Wolfram alpha formatted query. Remember to specify if a plot or graph is required and has been requested."
}
},
{
"name": "runpythoncode",
"description": "Runs python code, only execute code when safe, and asked to directly by the user, do not execute when user asks to *write* code, only when asked to *run* code.",
"params": {
"code": "The python code to run, use ; and not newlines and ALWAYS write the code in a single line. Always include a print statement as the user can only see stdout"
}
},
{
"name": "updateconfig",
"description": "This temporarily updates the config. Use sparingly and only when directly requested by the user.",
"params": {
"option": "The feature to enable / disable. Format is featurename:True/False, available features: 'wolframalpha', 'portscan', 'internetsearch', 'runpythoncode', 'imagegeneration'"
}
},
{
"name": "clearmemory",
"description": "This clears the conversation and memory. Only to be called under direct request by the user.",
"params": {
"message": "an optional concise message from GateKeeper reminding the user to reload the page."
}
},
{
"name": "generateimage",
"description": "This uses stable diffusion to generate a requested image. As polymind is able to view images, do not mistake a request about a sent image as being a request for this.",
"params": {
"prompt": "The prompt for stable diffusion to generate the image from. Remember to include the medium in the prompt, for example: photo, painting, sketch, drawing, etc.",
"removebg":"lowercase bool, whether to generate a transparent image or not, should ALWAYS be false unless the user requests a transparent/ no background image in which case it should be true.",
"ID": "Should only be used if the user requests img2img or an edit and there is a previously uploaded image in the context whose ID can be correlated, Always set to 0 otherwise."
}
},
{
"name": "searchfile",
"description": "This searches through a file the user has uploaded and returns the matching text.",
"params": {
"query": "The user's query, to be used with semantic search."
}
}
]