Skip to content

Commit 404e44f

Browse files
authored
Merge pull request #48 from thedadams/remove-list-tools
chore: remote list_tools
2 parents fa26c2f + eefd71d commit 404e44f

File tree

3 files changed

+0
-24
lines changed

3 files changed

+0
-24
lines changed

README.md

-15
Original file line numberDiff line numberDiff line change
@@ -100,21 +100,6 @@ Aside from the list methods there are `exec` and `exec_file` methods that allow
100100
responses. Those functions also provide a streaming version of execution if you want to process the output streams in
101101
your code as the tool is running.
102102

103-
### `list_tools()`
104-
105-
This function lists the available tools.
106-
107-
```python
108-
from gptscript.gptscript import GPTScript
109-
110-
111-
async def list_tools():
112-
gptscript = GPTScript()
113-
tools = await gptscript.list_tools()
114-
print(tools)
115-
gptscript.close()
116-
```
117-
118103
### `list_models()`
119104

120105
This function lists the available GPT models.

gptscript/gptscript.py

-3
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,6 @@ async def _run_basic_command(self, sub_command: str, request_body: Any = None):
148148
async def version(self) -> str:
149149
return await self._run_basic_command("version")
150150

151-
async def list_tools(self) -> str:
152-
return await self._run_basic_command("list-tools")
153-
154151
async def list_models(self, providers: list[str] = None, credential_overrides: list[str] = None) -> list[str]:
155152
if self.opts.DefaultModelProvider != "":
156153
if providers is None:

tests/test_gptscript.py

-6
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,6 @@ async def test_list_models_from_default_provider():
144144
g.close()
145145

146146

147-
@pytest.mark.asyncio
148-
async def test_list_tools(gptscript):
149-
out = await gptscript.list_tools()
150-
assert out is not None, "Expected some output from list_tools"
151-
152-
153147
@pytest.mark.asyncio
154148
async def test_abort_run(gptscript):
155149
async def abort_run(run: Run, e: CallFrame | RunFrame | PromptFrame):

0 commit comments

Comments
 (0)