projectdavid 1.33.29__py3-none-any.whl → 1.33.30__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of projectdavid might be problematic. Click here for more details.
- projectdavid/clients/threads_client.py +14 -8
- {projectdavid-1.33.29.dist-info → projectdavid-1.33.30.dist-info}/METADATA +2 -2
- {projectdavid-1.33.29.dist-info → projectdavid-1.33.30.dist-info}/RECORD +6 -6
- {projectdavid-1.33.29.dist-info → projectdavid-1.33.30.dist-info}/WHEEL +0 -0
- {projectdavid-1.33.29.dist-info → projectdavid-1.33.30.dist-info}/licenses/LICENSE +0 -0
- {projectdavid-1.33.29.dist-info → projectdavid-1.33.30.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
#! projectdavid/clients/threads_client.py
|
|
2
2
|
from typing import Any, Dict, List, Optional
|
|
3
3
|
|
|
4
4
|
import httpx
|
|
@@ -154,17 +154,23 @@ class ThreadsClient(BaseAPIClient):
|
|
|
154
154
|
logging_utility.error("Unexpected error listing threads: %s", str(e))
|
|
155
155
|
raise
|
|
156
156
|
|
|
157
|
-
def delete_thread(self, thread_id: str) ->
|
|
157
|
+
def delete_thread(self, thread_id: str) -> validator.ThreadDeleted | None:
|
|
158
|
+
"""
|
|
159
|
+
Delete a thread.
|
|
160
|
+
▶ On success: returns ThreadDeleted(id=…, object='thread.deleted', deleted=True)
|
|
161
|
+
▶ If not found: returns None
|
|
162
|
+
"""
|
|
158
163
|
logging_utility.info("Deleting thread with id: %s", thread_id)
|
|
164
|
+
|
|
159
165
|
try:
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
return
|
|
166
|
+
resp = self.client.delete(f"/v1/threads/{thread_id}")
|
|
167
|
+
resp.raise_for_status() # 2xx → OK
|
|
168
|
+
return validator.ThreadDeleted(**resp.json()) # ← parse envelope
|
|
163
169
|
except httpx.HTTPStatusError as e:
|
|
164
170
|
if e.response.status_code == 404:
|
|
165
|
-
return
|
|
166
|
-
logging_utility.error("HTTP error deleting thread: %s",
|
|
171
|
+
return None # thread not found
|
|
172
|
+
logging_utility.error("HTTP error deleting thread: %s", e)
|
|
167
173
|
raise
|
|
168
174
|
except Exception as e:
|
|
169
|
-
logging_utility.error("Unexpected error deleting thread: %s",
|
|
175
|
+
logging_utility.error("Unexpected error deleting thread: %s", e)
|
|
170
176
|
raise
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: projectdavid
|
|
3
|
-
Version: 1.33.
|
|
3
|
+
Version: 1.33.30
|
|
4
4
|
Summary: Python SDK for interacting with the Entities Assistant API.
|
|
5
5
|
Author-email: Francis Neequaye Armah <francis.neequaye@projectdavid.co.uk>
|
|
6
6
|
License: PolyForm Noncommercial License 1.0.0
|
|
@@ -20,7 +20,7 @@ Requires-Dist: pydantic<3.0,>=2.0
|
|
|
20
20
|
Requires-Dist: python-dotenv<2.0,>=1.0.1
|
|
21
21
|
Requires-Dist: aiofiles<25.0,>=23.2.1
|
|
22
22
|
Requires-Dist: ollama<0.5.0,>=0.4.4
|
|
23
|
-
Requires-Dist: projectdavid_common==0.17.
|
|
23
|
+
Requires-Dist: projectdavid_common==0.17.7
|
|
24
24
|
Requires-Dist: qdrant-client<2.0.0,>=1.0.0
|
|
25
25
|
Requires-Dist: pdfplumber<0.12.0,>=0.11.0
|
|
26
26
|
Requires-Dist: validators<0.35.0,>=0.29.0
|
|
@@ -17,7 +17,7 @@ projectdavid/clients/inference_client.py,sha256=xz4ACPv5Tkis604QxO5mJX1inH_TGDfQ
|
|
|
17
17
|
projectdavid/clients/messages_client.py,sha256=467xeIt3VYs6cG8-bl-eDRi_auWOPmfd5tSJDmQSJUI,17232
|
|
18
18
|
projectdavid/clients/runs.py,sha256=-fXOq5L9w2efDPmZkNxb0s2yjl6oN0XN4_aLXqaeceo,25270
|
|
19
19
|
projectdavid/clients/synchronous_inference_wrapper.py,sha256=qh94rtNlLqgIxiA_ZbQ1ncOwQTi9aBj5os3sMExLh4E,7070
|
|
20
|
-
projectdavid/clients/threads_client.py,sha256=
|
|
20
|
+
projectdavid/clients/threads_client.py,sha256=trGWq2SyWvN6MSVLvjaQXiURi-VROdcMXlYye8RJwH4,7052
|
|
21
21
|
projectdavid/clients/tools_client.py,sha256=GkCVOmwpAoPqVt6aYmH0G1HIFha3iEwR9IIf9teR0j8,11487
|
|
22
22
|
projectdavid/clients/users_client.py,sha256=eCuUb9qvyH1GUFhZu6TRL9zdoK-qzHSs8-Vmrk_0mmg,13729
|
|
23
23
|
projectdavid/clients/vector_store_manager.py,sha256=A-L1rhURKwiRs0EDd1HOuIShOtaC9Hb1yHB4He456Zc,15943
|
|
@@ -37,8 +37,8 @@ projectdavid/utils/monitor_launcher.py,sha256=3YAgJdeuaUvq3JGvpA4ymqFsAnk29nH5q9
|
|
|
37
37
|
projectdavid/utils/peek_gate.py,sha256=5whMRnDOQjATRpThWDJkvY9ScXuJ7Sd_-9rvGgXeTAQ,2532
|
|
38
38
|
projectdavid/utils/run_monitor.py,sha256=F_WkqIP-qnWH-4llIbileWWLfRj2Q1Cg-ni23SR1rec,3786
|
|
39
39
|
projectdavid/utils/vector_search_formatter.py,sha256=YTe3HPGec26qGY7uxY8_GS8lc4QaN6aNXMzkl29nZpI,1735
|
|
40
|
-
projectdavid-1.33.
|
|
41
|
-
projectdavid-1.33.
|
|
42
|
-
projectdavid-1.33.
|
|
43
|
-
projectdavid-1.33.
|
|
44
|
-
projectdavid-1.33.
|
|
40
|
+
projectdavid-1.33.30.dist-info/licenses/LICENSE,sha256=_8yjiEGttpS284BkfhXxfERqTRZW_tUaHiBB0GTJTMg,4563
|
|
41
|
+
projectdavid-1.33.30.dist-info/METADATA,sha256=si-JQPG86oBZfZCjHfE8zDZbxMWWW_KeAZm8ZBhq4Ow,11555
|
|
42
|
+
projectdavid-1.33.30.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
43
|
+
projectdavid-1.33.30.dist-info/top_level.txt,sha256=kil8GU4s7qYRfNnzGnFHhZnSNRSxgNG-J4HLgQMmMtw,13
|
|
44
|
+
projectdavid-1.33.30.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|