Skip to content

Commit faf9861

Browse files
authored
Tool index refactoring (#403)
* Chore: Tool indexing refactoring Signed-off-by: Daishan Peng <[email protected]>
1 parent 1d3cbaf commit faf9861

File tree

24 files changed

+12
-120
lines changed

24 files changed

+12
-120
lines changed

anthropic-model-provider/tool.gpt

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Model Provider: true
44
Credential: ../placeholder-credential as anthropic-model-provider with OBOT_ANTHROPIC_MODEL_PROVIDER_API_KEY as env_vars
55
Metadata: noUserAuth: anthropic-model-provider
66

7+
78
#!sys.daemon /usr/bin/env python3 ${GPTSCRIPT_TOOL_DIR}/main.py
89

910
---

atlassian/jira/tool.gpt

-4
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,6 @@ The List Issues tool can be used to search for issues in a Jira instance. The jq
182182

183183
# END INSTRUCTIONS: Jira Tools
184184

185-
---
186-
!metadata:*:category
187-
Jira
188-
189185
---
190186
!metadata:*:icon
191187
/admin/assets/jira_icon.svg

bluesky/tool.gpt

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
Name: Bluesky
3-
Metadata: bundle: true
43
Description: Tools for interacting with Bluesky (bsky.app)
4+
Metadata: bundle: true
55
Share Tools: Create Post, Delete Post, Search Posts, Search Users
66

77
---
@@ -51,10 +51,6 @@ Param: post_uri: The URI of the post to delete.
5151

5252
#!/usr/bin/env npm --silent --prefix ${GPTSCRIPT_TOOL_DIR} run tool -- deletePost
5353

54-
---
55-
!metadata:*:category
56-
Bluesky
57-
5854
---
5955
!metadata:*:icon
6056
/admin/assets/bluesky_logo.svg

browser/tool.gpt

-4
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,6 @@ Metadata: index: false
185185

186186
#!sys.daemon /usr/bin/env npm --prefix ${GPTSCRIPT_TOOL_DIR} run server
187187

188-
---
189-
!metadata:*:category
190-
Browser
191-
192188
---
193189
!metadata:*:icon
194190
/admin/assets/chromium_icon.svg

excel/tool.gpt

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
Name: Excel
33
Description: Tools for interacting with Microsoft Excel workbooks.
4+
Metadata: bundle: true
45
Share Tools: List Workbooks, List Worksheets, Get Worksheet Column Headers, Get Worksheet Data, Get Worksheet Tables, Query Worksheet Data, Add Worksheet Row, Add Worksheet Column, Create Worksheet, Get Dates From Serials
56

67
---
@@ -139,14 +140,6 @@ If the user asks for a calculation or a formula, use an excel formula if possibl
139140

140141
## End of instructions for using Excel tools
141142

142-
---
143-
!metadata:Excel:bundle
144-
true
145-
146-
---
147-
!metadata:*:category
148-
Excel
149-
150143
---
151144
!metadata:*:icon
152145
/admin/assets/excel_icon_small.svg

file-summarizer/tool.gpt

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Params: output_file: (Optional) Name of the file to save the summary, default to
66

77
#!/usr/bin/env python3 ${GPTSCRIPT_TOOL_DIR}/summarize.py
88

9-
109
---
1110
!metadata:*:category
1211
Utilities

github/tool.gpt

-4
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,6 @@ Refer them to this link for more information on how the OAuth permissions work i
253253

254254
## End of instructions for using GitHub tools
255255

256-
---
257-
!metadata:*:category
258-
GitHub
259-
260256
---
261257
!metadata:*:icon
262258
https://cdn.jsdelivr.net/npm/simple-icons@v13/icons/github.svg

gitlab/tool.gpt

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
Name: GitLab
3-
Metadata: bundle: true
43
Description: Tools for interacting with GitLab.
4+
Metadata: bundle: true
55
Share Tools: Search Issues, List Project Issues, List My Assigned Issues, List My Created Issues, Get Issue Details, Create Issue, Update Issue, Delete Issue, Add Issue Comment, Search Merge Requests, List Project Merge Requests, List My Assigned Merge Requests, List My Opened Merge Requests, Get Merge Request Details, Create Merge Request, Update Merge Request, Delete Merge Request, Add Merge Request Comment, Approve Merge Request, Lookup User ID
66

77
---
@@ -241,10 +241,6 @@ If the namespace is not specified, assume the namespace should be the current us
241241

242242
## End of instructions for using the GitLab tools
243243

244-
---
245-
!metadata:*:category
246-
GitLab
247-
248244
---
249245
!metadata:*:icon
250246
https://cdn.jsdelivr.net/npm/simple-icons@v13/icons/gitlab.svg

google/docs/tool.gpt

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
Name: Google Docs
3-
Metadata: bundle: true
43
Description: Tools for managing Google Docs
4+
Metadata: bundle: true
55
Share Tools: Read Google Doc, Create Google Doc, Update Google Doc
66

77
---
@@ -55,10 +55,6 @@ For the `drive_dir` parameter, you can optionally specify folder paths directly,
5555

5656
## End of instructions for using Google Docs tools
5757

58-
---
59-
!metadata:*:category
60-
Google Docs
61-
6258
---
6359
!metadata:*:icon
6460
/admin/assets/google_docs_icon_small.png

google/gmail/tool.gpt

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
Name: Gmail
3-
Metadata: bundle: true
43
Description: Tools for interacting with a user's Gmail account
4+
Metadata: bundle: true
55
Share Tools: List Inbox, Read Email, Search Emails, Send Email, Delete Email, List Drafts, Create Draft, Update Draft, Delete Draft, Send Draft
66

77
---
@@ -150,10 +150,6 @@ Instead, get the contents of the elements and display that to the user.
150150

151151
## End of instructions for getting emails from a dataset
152152

153-
---
154-
!metadata:*:category
155-
Gmail
156-
157153
---
158154
!metadata:*:icon
159155
/admin/assets/gmail_icon_small.png

google/search/tool.gpt

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
Name: Google Search
3-
Metadata: bundle: true
43
Description: Tools for using Google Search
4+
Metadata: bundle: true
55
Share Tools: Search
66

77
---
@@ -21,10 +21,6 @@ Metadata: index: false
2121

2222
#!sys.daemon /usr/bin/env npm --prefix ${GPTSCRIPT_TOOL_DIR} run server
2323

24-
---
25-
!metadata:*:category
26-
Google Search
27-
2824
---
2925
!metadata:*:icon
3026
/admin/assets/google_icon_small.png

google/sheets/tool.gpt

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
Name: Google Sheets
3-
Metadata: bundle: true
43
Description: Tools for accessing, creating, and modifying Google Sheets
4+
Metadata: bundle: true
55
Share Tools: Read Spreadsheet, Query Spreadsheet, Read Tables From Spreadsheet, Create Spreadsheet, Append Cells To Spreadsheet, Update Cell In Spreadsheet
66

77
---
@@ -90,10 +90,6 @@ Do your best to always return the complete data that the user asked for, even if
9090

9191
## End of instructions for using Google Sheets tools
9292

93-
---
94-
!metadata:*:category
95-
Google Sheets
96-
9793
---
9894
!metadata:*:icon
9995
/admin/assets/google_sheets_icon_small.png

google/youtube/tool.gpt

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
Name: YouTube
3-
Metadata: bundle: true
43
Description: Tools for interacting with YouTube
4+
Metadata: bundle: true
55
Share Tools: Transcribe YouTube Video
66

77
---
@@ -15,10 +15,6 @@ Metadata: noUserAuth: sys.model.provider.credential
1515

1616
#!/usr/bin/env python3 ${GPTSCRIPT_TOOL_DIR}/transcriber.py
1717

18-
---
19-
!metadata:*:category
20-
YouTube
21-
2218
---
2319
!metadata:*:icon
2420
/admin/assets/youtube_icon_small.png

images/tool.gpt

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
Name: Images
3-
Metadata: bundle: true
43
Description: Tools for analyzing and generating images
4+
Metadata: bundle: true
55
Share Tools: Analyze Images, Generate Images
66

77
---
@@ -61,10 +61,6 @@ e.g. Analyzing multiple images: ["https://example.com/image1.webp", "cool.jpg",
6161

6262
# END INSTRUCTIONS: Analyze Images tool
6363

64-
---
65-
!metadata:*:category
66-
Images
67-
6864
---
6965
!metadata:*:icon
7066
https://cdn.jsdelivr.net/npm/@phosphor-icons/core@2/assets/duotone/image-duotone.svg

index.yaml

-21
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,46 @@
11
tools:
22
sendgrid:
33
reference: ./sendgrid
4-
all: true
54
file-summarizer:
65
reference: ./file-summarizer
7-
all: true
86
database:
97
reference: ./database
108
zoom:
119
reference: ./zoom
12-
all: true
1310
atlassian-jira:
1411
reference: ./atlassian/jira
15-
all: true
1612
wordpress:
1713
reference: ./wordpress
18-
all: true
1914
excel:
2015
reference: ./excel
21-
all: true
2216
browser:
2317
reference: ./browser
24-
all: true
2518
bluesky:
2619
reference: ./bluesky
27-
all: true
2820
slack:
2921
reference: ./slack
30-
all: true
3122
linkedin-publishing:
3223
reference: ./linkedin-publishing
33-
all: true
3424
notion:
3525
reference: ./notion
36-
all: true
3726
google-docs:
3827
reference: ./google/docs
39-
all: true
4028
google-gmail:
4129
reference: ./google/gmail
42-
all: true
4330
google-search:
4431
reference: ./google/search
45-
all: true
4632
google-sheets:
4733
reference: ./google/sheets
48-
all: true
4934
gitlab:
5035
reference: ./gitlab
51-
all: true
5236
images:
5337
reference: ./images
54-
all: true
5538
outlook-mail:
5639
reference: ./outlook/mail
57-
all: true
5840
outlook-calender:
5941
reference: ./outlook/calendar
60-
all: true
6142
github:
6243
reference: ./github
63-
all: true
6444
time:
6545
reference: ./time
6646
workspace-files:
@@ -73,7 +53,6 @@ tools:
7353
reference: ./shell
7454
word:
7555
reference: ./word
76-
all: true
7756

7857
knowledgeDataSources:
7958
notion-data-source:

linkedin-publishing/tool.gpt

-4
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ You have tools to help with publishing content to LinkedIn with the LinkedIn API
4141

4242
# End of instructions for using LinkedIn Publishing tools
4343

44-
---
45-
!metadata:*:category
46-
LinkedIn
47-
4844
---
4945
!metadata:*:icon
5046
/admin/assets/linkedin_icon.png

notion/tool.gpt

-4
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,6 @@ Every time you are about to create a new page and the user isn't explicitly aski
110110

111111
## End of instructions for using Notion tools
112112

113-
---
114-
!metadata:*:category
115-
Notion
116-
117113
---
118114
!metadata:*:icon
119115
https://cdn.jsdelivr.net/npm/simple-icons@v13/icons/notion.svg

outlook/calendar/tool.gpt

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
Name: Outlook Calendar
3-
Metadata: bundle: true
43
Description: Tools for interacting with Microsoft Outlook Calendar.
4+
Metadata: bundle: true
55
Share Tools: List Calendars, List Events Today, List Events, Get Event Details, Create Event, Invite User To Event, Delete Event, Search Events, Respond To Event
66

77
---
@@ -196,10 +196,6 @@ event that spans multiple days.
196196

197197
## End of instructions for scheduling recurring meetings in Outlook Calendar
198198

199-
---
200-
!metadata:*:category
201-
Outlook Calendar
202-
203199
---
204200
!metadata:*:icon
205201
/admin/assets/outlook_icon_small.svg

outlook/mail/tool.gpt

-4
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,6 @@ Do not attempt to forward emails. Email forwarding is not supported.
127127

128128
## End of instructions for using the Microsoft Outlook Mail tools
129129

130-
---
131-
!metadata:*:category
132-
Outlook Mail
133-
134130
---
135131
!metadata:*:icon
136132
/admin/assets/outlook_icon_small.svg

sendgrid/tool.gpt

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
Name: SendGrid
3-
Metadata: bundle: true
43
Description: Tools for interacting with SendGrid.
4+
Metadata: bundle: true
55
Share Tools: Send Email
66

77
---
@@ -35,10 +35,6 @@ When calling the Send Email tool:
3535

3636
# END INSTRUCTIONS: Send Email tool
3737

38-
---
39-
!metadata:*:category
40-
SendGrid
41-
4238
---
4339
!metadata:*:icon
4440
/admin/assets/sendgrid_icon.svg

slack/tool.gpt

-4
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,6 @@ The following search modifiers can be used in search-messages `query` arguments:
222222

223223
## End of instructions for using Slack tools
224224

225-
---
226-
!metadata:*:category
227-
Slack
228-
229225
---
230226
!metadata:*:icon
231227
/admin/assets/slack_icon_small.svg

0 commit comments

Comments
 (0)