You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/web/src/content/docs/custom-tools.mdx
+58-20Lines changed: 58 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Custom tools are functions you create that the LLM can call during conversations
9
9
10
10
## Creating a tool
11
11
12
-
Tools are defined as **TypeScript** or **JavaScript** files.
12
+
Tools are defined as **TypeScript** or **JavaScript** files. However, the tool definition can invoke scripts written in **any language** — TypeScript or JavaScript is only used for the tool definition itself.
13
13
14
14
---
15
15
@@ -45,6 +45,40 @@ The **filename** becomes the **tool name**. The above creates a `database` tool.
45
45
46
46
---
47
47
48
+
#### Multiple tools per file
49
+
50
+
You can also export multiple tools from a single file. Each export becomes **a separate tool** with the name **`<filename>_<exportname>`**:
0 commit comments