-
Notifications
You must be signed in to change notification settings - Fork 5
/
tool.gpt
55 lines (42 loc) · 1.48 KB
/
tool.gpt
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
Name: List Datasets
Description: Lists all available datasets
Tools: service
#!http://service.daemon.gptscript.local/listDatasets
---
Name: List Elements
Description: Lists metadata for all elements in a dataset
Tools: service
Param: datasetID: the ID of the dataset
#!http://service.daemon.gptscript.local/listElements
---
Name: Get Element
Description: Gets a particular element's metadata and contents.
Tools: service
Param: datasetID: the ID of the dataset
Param: name: the name of the element
#!http://service.daemon.gptscript.local/getElement
---
Name: Get All Elements
Description: Gets the contents of all elements in a dataset.
Tools: service
Param: datasetID: the ID of the dataset
#!http://service.daemon.gptscript.local/getAllElements
---
Name: Add Elements
Description: Adds multiple elements to an existing dataset
Tools: service
Param: datasetID: (Optional) the ID of the dataset. If unset, a new one will be created.
Param: name: (Optional) if creating a new dataset, this is the dataset name.
Param: description: (Optional) if creating a new dataset, this is the dataset description.
Param: elements: a JSON array of elements to add.
#!http://service.daemon.gptscript.local/addElements
---
Name: Dataset Description Output Filter
Description: Appends additional dataset information the output
Type: output
Tools: service
Param: output: The output text to filter
#!http://service.daemon.gptscript.local/outputFilter
---
Name: service
#!sys.daemon ${GPTSCRIPT_TOOL_DIR}/bin/gptscript-go-tool