projectdavid 1.33.30__py3-none-any.whl → 1.33.31__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 +18 -4
- {projectdavid-1.33.30.dist-info → projectdavid-1.33.31.dist-info}/METADATA +2 -2
- {projectdavid-1.33.30.dist-info → projectdavid-1.33.31.dist-info}/RECORD +6 -6
- {projectdavid-1.33.30.dist-info → projectdavid-1.33.31.dist-info}/WHEEL +0 -0
- {projectdavid-1.33.30.dist-info → projectdavid-1.33.31.dist-info}/licenses/LICENSE +0 -0
- {projectdavid-1.33.30.dist-info → projectdavid-1.33.31.dist-info}/top_level.txt +0 -0
|
@@ -104,16 +104,30 @@ class ThreadsClient(BaseAPIClient):
|
|
|
104
104
|
logging_utility.error("Unexpected error retrieving thread: %s", str(e))
|
|
105
105
|
raise
|
|
106
106
|
|
|
107
|
-
def update_thread(
|
|
107
|
+
def update_thread(
|
|
108
|
+
self,
|
|
109
|
+
thread_id: str,
|
|
110
|
+
*,
|
|
111
|
+
participant_ids: Optional[List[str]] = None,
|
|
112
|
+
meta_data: Optional[Dict[str, Any]] = None,
|
|
113
|
+
tool_resources: Optional[Dict[str, Any]] = None,
|
|
114
|
+
) -> validator.ThreadReadDetailed:
|
|
108
115
|
logging_utility.info("Updating thread with id: %s", thread_id)
|
|
109
116
|
try:
|
|
110
|
-
validated_updates = validator.ThreadUpdate(
|
|
111
|
-
|
|
112
|
-
|
|
117
|
+
validated_updates = validator.ThreadUpdate(
|
|
118
|
+
participant_ids=participant_ids,
|
|
119
|
+
meta_data=meta_data,
|
|
120
|
+
tool_resources=tool_resources,
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
response = self.client.put(
|
|
124
|
+
f"/v1/threads/{thread_id}",
|
|
125
|
+
json=validated_updates.model_dump(),
|
|
113
126
|
)
|
|
114
127
|
response.raise_for_status()
|
|
115
128
|
updated_thread = response.json()
|
|
116
129
|
return validator.ThreadReadDetailed(**updated_thread)
|
|
130
|
+
|
|
117
131
|
except httpx.HTTPStatusError as e:
|
|
118
132
|
logging_utility.error("HTTP error updating thread: %s", str(e))
|
|
119
133
|
raise
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: projectdavid
|
|
3
|
-
Version: 1.33.
|
|
3
|
+
Version: 1.33.31
|
|
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.8
|
|
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=9RshJD09kfYxfarTysQz_Bwbv4XxQaHQXhCLRMdaWcI,7392
|
|
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.31.dist-info/licenses/LICENSE,sha256=_8yjiEGttpS284BkfhXxfERqTRZW_tUaHiBB0GTJTMg,4563
|
|
41
|
+
projectdavid-1.33.31.dist-info/METADATA,sha256=oBvbSuyUeF1QBgEVkW2ctBBvtrbS3_d18LIZGnQNbLc,11555
|
|
42
|
+
projectdavid-1.33.31.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
43
|
+
projectdavid-1.33.31.dist-info/top_level.txt,sha256=kil8GU4s7qYRfNnzGnFHhZnSNRSxgNG-J4HLgQMmMtw,13
|
|
44
|
+
projectdavid-1.33.31.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|