From 20009aed53d8864c9204d43a17895168a777d2cc Mon Sep 17 00:00:00 2001 From: Ilan Bigio Date: Mon, 16 Dec 2024 13:06:08 -0800 Subject: Initial commit --- webapp/lib/tool-templates.ts | 65 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 webapp/lib/tool-templates.ts (limited to 'webapp/lib/tool-templates.ts') diff --git a/webapp/lib/tool-templates.ts b/webapp/lib/tool-templates.ts new file mode 100644 index 0000000..eedbfa9 --- /dev/null +++ b/webapp/lib/tool-templates.ts @@ -0,0 +1,65 @@ +export const toolTemplates = [ + { + name: "get_weather", + type: "function", + description: "Get the current weather", + parameters: { + type: "object", + properties: { + location: { type: "string" }, + }, + }, + }, + { + name: "ping_no_args", + type: "function", + description: "A simple ping tool with no arguments", + parameters: { + type: "object", + properties: {}, + }, + }, + { + name: "get_user_nested_args", + type: "function", + description: "Fetch user profile by nested identifier", + parameters: { + type: "object", + properties: { + user: { + type: "object", + properties: { + id: { type: "string" }, + metadata: { + type: "object", + properties: { + region: { type: "string" }, + role: { type: "string" }, + }, + }, + }, + }, + }, + }, + }, + { + name: "calculate_route_more_properties", + type: "function", + description: "Calculate travel route with multiple parameters", + parameters: { + type: "object", + properties: { + start: { type: "string" }, + end: { type: "string" }, + mode: { type: "string", enum: ["car", "bike", "walk"] }, + options: { + type: "object", + properties: { + avoid_highways: { type: "boolean" }, + scenic_route: { type: "boolean" }, + }, + }, + }, + }, + }, +]; -- cgit v1.2.3