diff --git a/example.gpt b/example.gpt new file mode 100644 index 0000000..d056a93 --- /dev/null +++ b/example.gpt @@ -0,0 +1,3 @@ +tools: github.com/gptscript-ai/tools + +What tools can I use to search the internet? \ No newline at end of file diff --git a/tool.gpt b/tool.gpt new file mode 100644 index 0000000..e4cfcfb --- /dev/null +++ b/tool.gpt @@ -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.