|
12 | 12 | from ai21.http_client.async_http_client import AsyncAI21HTTPClient
|
13 | 13 | from ai21.http_client.http_client import AI21HTTPClient
|
14 | 14 | from ai21.models.assistant.assistant import Tool, ToolResources
|
15 |
| -from ai21.models.responses.assistant_response import AssistantResponse, ListAssistant |
| 15 | +from ai21.models.responses.assistant_response import AssistantResponse, ListAssistant, DeletedAssistantResponse |
16 | 16 | from ai21.types import NotGiven, NOT_GIVEN
|
17 | 17 |
|
18 | 18 |
|
@@ -76,6 +76,9 @@ def modify(
|
76 | 76 |
|
77 | 77 | return self._patch(path=f"/{self._module_name}/{assistant_id}", body=body, response_cls=AssistantResponse)
|
78 | 78 |
|
| 79 | + def delete(self, assistant_id: str) -> DeletedAssistantResponse: |
| 80 | + return self._delete(path=f"/{self._module_name}/{assistant_id}", response_cls=DeletedAssistantResponse) |
| 81 | + |
79 | 82 |
|
80 | 83 | class AsyncAssistants(AsyncStudioResource, BaseAssistants):
|
81 | 84 | def __init__(self, client: AsyncAI21HTTPClient):
|
@@ -136,3 +139,6 @@ async def modify(
|
136 | 139 | )
|
137 | 140 |
|
138 | 141 | return await self._patch(path=f"/{self._module_name}/{assistant_id}", body=body, response_cls=AssistantResponse)
|
| 142 | + |
| 143 | + async def delete(self, assistant_id: str) -> DeletedAssistantResponse: |
| 144 | + return await self._delete(path=f"/{self._module_name}/{assistant_id}", response_cls=DeletedAssistantResponse) |
0 commit comments