Skip to content

Commit ad748d9

Browse files
committed
chore: remove listTools
Signed-off-by: Donnie Adams <[email protected]>
1 parent bca349b commit ad748d9

File tree

3 files changed

+0
-26
lines changed

3 files changed

+0
-26
lines changed

README.md

-17
Original file line numberDiff line numberDiff line change
@@ -66,23 +66,6 @@ As noted above, the Global Options are also available to specify here. These opt
6666

6767
## Functions
6868

69-
### listTools
70-
71-
Lists all the available built-in tools.
72-
73-
**Usage:**
74-
75-
```javascript
76-
const gptscript = require('@gptscript-ai/gptscript');
77-
78-
async function listTools() {
79-
const g = new gptscript.GPTScript();
80-
const tools = await g.listTools();
81-
console.log(tools);
82-
g.close();
83-
}
84-
```
85-
8669
### listModels
8770

8871
Lists all the available models, returns a list.

src/gptscript.ts

-4
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,6 @@ export class GPTScript {
133133
}
134134
}
135135

136-
listTools(): Promise<string> {
137-
return this.runBasicCommand("list-tools")
138-
}
139-
140136
listModels(providers?: string[], credentialOverrides?: string[]): Promise<string> {
141137
if (this.opts.DefaultModelProvider) {
142138
if (!providers) {

tests/gptscript.test.ts

-5
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ describe("gptscript module", () => {
2929
other.close()
3030
})
3131

32-
test("listTools returns available tools", async () => {
33-
const tools = await g.listTools()
34-
expect(tools).toBeDefined()
35-
})
36-
3732
test("listModels returns a list of models", async () => {
3833
// Similar structure to listTools
3934
let models = await g.listModels()

0 commit comments

Comments
 (0)