Skip to content

Commit

Permalink
feat: add tool.gpt file to allow querying tools.gptscript.ai
Browse files Browse the repository at this point in the history
Signed-off-by: tylerslaton <[email protected]>
  • Loading branch information
tylerslaton committed Mar 21, 2024
1 parent 4cc23b9 commit 6ea3a24
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example.gpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tools: github.com/gptscript-ai/tools

What tools can I use to search the internet?
12 changes: 12 additions & 0 deletions tool.gpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: tool-search
tools: sys.http.get
description: Finds a tool that matches the prompt provided, if one exists.
args: prompt: Prompt that describes a tool to be found

Do each of the following one after the other.
1. Go to "https://tools.gptscript.ai/api/search". DO NOT CHANGE THIS URL IN ANY WAY.
2. From the response, look for a tool that is described by ${prompt}.
3. Return a list of names and URLs for each tool you find. Each URL should be in
the form of https://tools.gptscript.ai/{github url without https://}. If more than one
result comes from the same array then just bundle them together under then name of the
first tool in the array.

0 comments on commit 6ea3a24

Please sign in to comment.