projectdavid-common 0.17.16__py3-none-any.whl → 0.17.18__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.
@@ -3,7 +3,6 @@ schemas/run_schema.py
3
3
  Keeps client / server / SDK in sync with the new user_id column on runs.
4
4
  """
5
5
 
6
- from datetime import datetime
7
6
  from enum import Enum
8
7
  from typing import Any, Dict, List, Literal, Optional
9
8
 
@@ -29,6 +28,11 @@ class RunStatus(str, Enum):
29
28
  retrying = "retrying"
30
29
 
31
30
 
31
+ class TruncationStrategy(str, Enum):
32
+ auto = "auto"
33
+ disabled = "disabled"
34
+
35
+
32
36
  # --------------------------------------------------------------------------- #
33
37
  # Base‑level model returned by most endpoints
34
38
  # --------------------------------------------------------------------------- #
@@ -58,11 +62,11 @@ class Run(BaseModel):
58
62
  required_action: Optional[str]
59
63
  response_format: str
60
64
  started_at: Optional[int]
61
- status: RunStatus | str
65
+ status: RunStatus
62
66
  thread_id: str
63
67
  tool_choice: str
64
68
  tools: List[Tool]
65
- truncation_strategy: Dict[str, Any]
69
+ truncation_strategy: TruncationStrategy = TruncationStrategy.auto
66
70
  usage: Optional[Any]
67
71
  temperature: float
68
72
  top_p: float
@@ -100,11 +104,11 @@ class RunCreate(BaseModel):
100
104
  required_action: Optional[str] = None
101
105
  response_format: str = "text"
102
106
  started_at: Optional[int] = None
103
- status: RunStatus | str = RunStatus.pending
107
+ status: RunStatus = RunStatus.pending
104
108
  thread_id: str
105
109
  tool_choice: str = "none"
106
110
  tools: List[Tool] = Field(default_factory=list)
107
- truncation_strategy: Dict[str, Any] = Field(default_factory=dict)
111
+ truncation_strategy: TruncationStrategy = TruncationStrategy.auto
108
112
  usage: Optional[Any] = None
109
113
  temperature: float = 0.7
110
114
  top_p: float = 0.9
@@ -137,11 +141,11 @@ class RunReadDetailed(BaseModel):
137
141
  required_action: Optional[str] = None
138
142
  response_format: str
139
143
  started_at: Optional[int] = None
140
- status: RunStatus | str
144
+ status: RunStatus
141
145
  thread_id: str
142
- tool_choice: str
146
+ tool_choice: Optional[str] = None
143
147
  tools: List[ToolRead]
144
- truncation_strategy: Dict[str, Any]
148
+ truncation_strategy: TruncationStrategy = TruncationStrategy.auto
145
149
  usage: Optional[Any] = None
146
150
  temperature: float
147
151
  top_p: float
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: projectdavid_common
3
- Version: 0.17.16
3
+ Version: 0.17.18
4
4
  Summary: Common shared custom packages
5
5
  Author-email: "Francis N." <francis.neequaye@projectdavid.co.uk>
6
6
  License: MIT
@@ -16,7 +16,7 @@ projectdavid_common/schemas/enums.py,sha256=pQdkz_hmfU_vcZdn4XOvcPOcQihaX_iuQIFk
16
16
  projectdavid_common/schemas/files_schema.py,sha256=hNMqVDRc5lsdhxyPWO79QjIpE7NKmKzdQ6hJG8L6LfA,3025
17
17
  projectdavid_common/schemas/inference_schema.py,sha256=LPjKDCq7jBPbQCgwlM97rxO477v3vWwb6RYh4DW0KIs,228
18
18
  projectdavid_common/schemas/messages_schema.py,sha256=LOG22KlDyX_9RWjBuBCox8iMaw1VWqEJBMRE-A7ZOZA,3223
19
- projectdavid_common/schemas/runs_schema.py,sha256=inh8u3-4pdz1UXuY6Nk1zYzVlZbFcQibuXBJs8picgM,5831
19
+ projectdavid_common/schemas/runs_schema.py,sha256=PjhwGqKMCB68GBQPXzTRUkqYMQAPNjMry1If7lAqSO8,5943
20
20
  projectdavid_common/schemas/stream_schema.py,sha256=_0Op35E5TZ-XLM8j5b3xDRuUobGq2eh40oCx1RyGi_A,645
21
21
  projectdavid_common/schemas/threads_schema.py,sha256=tnGGOZ52xmel2DaWiFtCbfMkEW056xI-WMt4yotmmHI,1533
22
22
  projectdavid_common/schemas/tools_schema.py,sha256=RywLJk1a1-liPnqpf8s9IfTaMBG6uqj3YtV52H7U18g,1815
@@ -26,8 +26,8 @@ projectdavid_common/schemas/vectors_schema.py,sha256=KG4HSa6yVgBLe01iSdXKoU3UxRS
26
26
  projectdavid_common/utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  projectdavid_common/utilities/identifier_service.py,sha256=7hL4_i7pGs6bibCSkXQIwpMSUCFASFE0VPm6gqMv4sk,2950
28
28
  projectdavid_common/utilities/logging_service.py,sha256=ONKy3PRjIrxIrTJ_X3iv7v9HA0wyejyw4WrQYlJy7Oc,2614
29
- projectdavid_common-0.17.16.dist-info/METADATA,sha256=xVkf_yWPl4HI1XcYH3t-7dF5S0KrpFKnP51nduymDMg,1674
30
- projectdavid_common-0.17.16.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
31
- projectdavid_common-0.17.16.dist-info/entry_points.txt,sha256=Y8HAIUW0ifCKcAzAqR21wu1ATHNFWWWiUB33UYv095o,74
32
- projectdavid_common-0.17.16.dist-info/top_level.txt,sha256=lJ-jkZ0n0jWktoMJFcw-DzLoMTY2juuw5fgMIqYu1UU,20
33
- projectdavid_common-0.17.16.dist-info/RECORD,,
29
+ projectdavid_common-0.17.18.dist-info/METADATA,sha256=2ChrRklrquwuOu2kcrz0ipvSvWFnR1HToGHexCaTIbU,1674
30
+ projectdavid_common-0.17.18.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
31
+ projectdavid_common-0.17.18.dist-info/entry_points.txt,sha256=Y8HAIUW0ifCKcAzAqR21wu1ATHNFWWWiUB33UYv095o,74
32
+ projectdavid_common-0.17.18.dist-info/top_level.txt,sha256=lJ-jkZ0n0jWktoMJFcw-DzLoMTY2juuw5fgMIqYu1UU,20
33
+ projectdavid_common-0.17.18.dist-info/RECORD,,