From 6ea3a2440b72576a617390aa2cd036b668eb4db8 Mon Sep 17 00:00:00 2001 From: tylerslaton Date: Thu, 21 Mar 2024 17:49:30 -0400 Subject: [PATCH] feat: add tool.gpt file to allow querying tools.gptscript.ai Signed-off-by: tylerslaton --- example.gpt | 3 +++ tool.gpt | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 example.gpt create mode 100644 tool.gpt 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.