projectdavid 1.34.8__py3-none-any.whl → 1.34.9__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/runs.py +8 -29
- {projectdavid-1.34.8.dist-info → projectdavid-1.34.9.dist-info}/METADATA +1 -1
- {projectdavid-1.34.8.dist-info → projectdavid-1.34.9.dist-info}/RECORD +6 -6
- {projectdavid-1.34.8.dist-info → projectdavid-1.34.9.dist-info}/WHEEL +0 -0
- {projectdavid-1.34.8.dist-info → projectdavid-1.34.9.dist-info}/licenses/LICENSE +0 -0
- {projectdavid-1.34.8.dist-info → projectdavid-1.34.9.dist-info}/top_level.txt +0 -0
projectdavid/clients/runs.py
CHANGED
|
@@ -48,26 +48,6 @@ class RunsClient(BaseAPIClient):
|
|
|
48
48
|
Create a run. The server injects user_id from the API key.
|
|
49
49
|
We normalize all timestamp fields to epoch ints (or None).
|
|
50
50
|
"""
|
|
51
|
-
|
|
52
|
-
def _epoch(v):
|
|
53
|
-
# Accept None, int, datetime, or stringified int
|
|
54
|
-
if v is None:
|
|
55
|
-
return None
|
|
56
|
-
if isinstance(v, int):
|
|
57
|
-
return v
|
|
58
|
-
if isinstance(v, float):
|
|
59
|
-
return int(v)
|
|
60
|
-
if hasattr(v, "timestamp"): # datetime / date
|
|
61
|
-
return int(v.timestamp())
|
|
62
|
-
try:
|
|
63
|
-
return int(str(v))
|
|
64
|
-
except Exception:
|
|
65
|
-
return None
|
|
66
|
-
|
|
67
|
-
now = int(time.time())
|
|
68
|
-
if meta_data is None:
|
|
69
|
-
meta_data = {}
|
|
70
|
-
|
|
71
51
|
# Build the Pydantic payload with epoch-normalized timestamps
|
|
72
52
|
run_payload = ent_validator.RunCreate(
|
|
73
53
|
id=UtilsInterface.IdentifierService.generate_run_id(),
|
|
@@ -76,11 +56,11 @@ class RunsClient(BaseAPIClient):
|
|
|
76
56
|
thread_id=thread_id,
|
|
77
57
|
instructions=instructions,
|
|
78
58
|
meta_data=meta_data,
|
|
79
|
-
cancelled_at=
|
|
80
|
-
completed_at=
|
|
81
|
-
created_at=
|
|
82
|
-
expires_at=
|
|
83
|
-
failed_at=
|
|
59
|
+
cancelled_at=None,
|
|
60
|
+
completed_at=None,
|
|
61
|
+
created_at=int(time.time()),
|
|
62
|
+
expires_at=int(time.time() + 3600),
|
|
63
|
+
failed_at=None,
|
|
84
64
|
incomplete_details=None,
|
|
85
65
|
last_error=None,
|
|
86
66
|
max_completion_tokens=1000,
|
|
@@ -90,15 +70,14 @@ class RunsClient(BaseAPIClient):
|
|
|
90
70
|
parallel_tool_calls=False,
|
|
91
71
|
required_action=None,
|
|
92
72
|
response_format="text",
|
|
93
|
-
started_at=
|
|
73
|
+
started_at=None,
|
|
94
74
|
status=StatusEnum.queued,
|
|
95
75
|
tool_choice="none",
|
|
96
76
|
tools=[],
|
|
97
77
|
truncation_strategy={},
|
|
98
78
|
usage=None,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
top_p=1, # or None if you prefer to omit
|
|
79
|
+
temperature=1,
|
|
80
|
+
top_p=1,
|
|
102
81
|
tool_resources={},
|
|
103
82
|
)
|
|
104
83
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: projectdavid
|
|
3
|
-
Version: 1.34.
|
|
3
|
+
Version: 1.34.9
|
|
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
|
|
@@ -15,7 +15,7 @@ projectdavid/clients/file_search.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
|
|
|
15
15
|
projectdavid/clients/files_client.py,sha256=XkIDzbQFGDrd88taf0Kouc_4YJOPIYEHiIyWYLKDofI,15581
|
|
16
16
|
projectdavid/clients/inference_client.py,sha256=xz4ACPv5Tkis604QxO5mJX1inH_TGDfQP-31geETYpE,6609
|
|
17
17
|
projectdavid/clients/messages_client.py,sha256=-tUubr5f62nLER6BxVY3ihp3vn3pnZH-ceigvQRSlYs,16825
|
|
18
|
-
projectdavid/clients/runs.py,sha256=
|
|
18
|
+
projectdavid/clients/runs.py,sha256=qiekGeTOj3xHJu1n3uGAVbLjmu0bA8tmFbbtz3v2Oic,25830
|
|
19
19
|
projectdavid/clients/synchronous_inference_wrapper.py,sha256=qh94rtNlLqgIxiA_ZbQ1ncOwQTi9aBj5os3sMExLh4E,7070
|
|
20
20
|
projectdavid/clients/threads_client.py,sha256=9RshJD09kfYxfarTysQz_Bwbv4XxQaHQXhCLRMdaWcI,7392
|
|
21
21
|
projectdavid/clients/tools_client.py,sha256=GkCVOmwpAoPqVt6aYmH0G1HIFha3iEwR9IIf9teR0j8,11487
|
|
@@ -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.34.
|
|
41
|
-
projectdavid-1.34.
|
|
42
|
-
projectdavid-1.34.
|
|
43
|
-
projectdavid-1.34.
|
|
44
|
-
projectdavid-1.34.
|
|
40
|
+
projectdavid-1.34.9.dist-info/licenses/LICENSE,sha256=_8yjiEGttpS284BkfhXxfERqTRZW_tUaHiBB0GTJTMg,4563
|
|
41
|
+
projectdavid-1.34.9.dist-info/METADATA,sha256=GCC1yt8cTO4eqa2FdnJ0j75CYIgUDuT_bBnRABqqAsc,11555
|
|
42
|
+
projectdavid-1.34.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
43
|
+
projectdavid-1.34.9.dist-info/top_level.txt,sha256=kil8GU4s7qYRfNnzGnFHhZnSNRSxgNG-J4HLgQMmMtw,13
|
|
44
|
+
projectdavid-1.34.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|