projectdavid-common 0.17.19__py3-none-any.whl → 0.18.0__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.
- projectdavid_common/schemas/runs_schema.py +12 -12
- {projectdavid_common-0.17.19.dist-info → projectdavid_common-0.18.0.dist-info}/METADATA +1 -1
- {projectdavid_common-0.17.19.dist-info → projectdavid_common-0.18.0.dist-info}/RECORD +6 -6
- {projectdavid_common-0.17.19.dist-info → projectdavid_common-0.18.0.dist-info}/WHEEL +0 -0
- {projectdavid_common-0.17.19.dist-info → projectdavid_common-0.18.0.dist-info}/entry_points.txt +0 -0
- {projectdavid_common-0.17.19.dist-info → projectdavid_common-0.18.0.dist-info}/top_level.txt +0 -0
|
@@ -34,13 +34,13 @@ class TruncationStrategy(str, Enum):
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
# --------------------------------------------------------------------------- #
|
|
37
|
-
# Base
|
|
37
|
+
# Base-level model returned by most endpoints
|
|
38
38
|
# --------------------------------------------------------------------------- #
|
|
39
39
|
class Run(BaseModel):
|
|
40
40
|
id: str
|
|
41
41
|
user_id: Optional[str] = Field(
|
|
42
42
|
default=None,
|
|
43
|
-
description="Filled in by the server from the caller’s API
|
|
43
|
+
description="Filled in by the server from the caller’s API-key. "
|
|
44
44
|
"Clients MAY omit or set to None.",
|
|
45
45
|
)
|
|
46
46
|
|
|
@@ -66,7 +66,8 @@ class Run(BaseModel):
|
|
|
66
66
|
thread_id: str
|
|
67
67
|
tool_choice: str
|
|
68
68
|
tools: List[Tool]
|
|
69
|
-
|
|
69
|
+
# Accept 'auto' or None on read
|
|
70
|
+
truncation_strategy: Optional[TruncationStrategy] = None
|
|
70
71
|
usage: Optional[Any]
|
|
71
72
|
temperature: float
|
|
72
73
|
top_p: float
|
|
@@ -76,17 +77,15 @@ class Run(BaseModel):
|
|
|
76
77
|
|
|
77
78
|
# --------------------------------------------------------------------------- #
|
|
78
79
|
# Payload used by SDK / tests when creating runs
|
|
79
|
-
# user_id is optional
|
|
80
|
+
# user_id is optional - server overwrites it from auth context
|
|
80
81
|
# --------------------------------------------------------------------------- #
|
|
81
82
|
class RunCreate(BaseModel):
|
|
82
83
|
id: str
|
|
83
84
|
assistant_id: str
|
|
84
|
-
# ── NEW optional user_id (ignored by server if provided) ───────────── #
|
|
85
85
|
user_id: Optional[str] = Field(
|
|
86
86
|
default=None,
|
|
87
|
-
json_schema_extra={"readOnly": True},
|
|
87
|
+
json_schema_extra={"readOnly": True},
|
|
88
88
|
)
|
|
89
|
-
# ───────────────────────────────────────────────────────────────────── #
|
|
90
89
|
cancelled_at: Optional[int] = None
|
|
91
90
|
completed_at: Optional[int] = None
|
|
92
91
|
created_at: int
|
|
@@ -108,12 +107,12 @@ class RunCreate(BaseModel):
|
|
|
108
107
|
thread_id: str
|
|
109
108
|
tool_choice: str = "none"
|
|
110
109
|
tools: List[Tool] = Field(default_factory=list)
|
|
111
|
-
|
|
110
|
+
# Optional so callers can omit and let DB default 'auto' apply
|
|
111
|
+
truncation_strategy: Optional[TruncationStrategy] = None
|
|
112
112
|
usage: Optional[Any] = None
|
|
113
113
|
temperature: float = 0.7
|
|
114
114
|
top_p: float = 0.9
|
|
115
115
|
tool_resources: Dict[str, Any] = Field(default_factory=dict)
|
|
116
|
-
|
|
117
116
|
model_config = ConfigDict(from_attributes=True)
|
|
118
117
|
|
|
119
118
|
|
|
@@ -145,7 +144,8 @@ class RunReadDetailed(BaseModel):
|
|
|
145
144
|
thread_id: str
|
|
146
145
|
tool_choice: Optional[str] = None
|
|
147
146
|
tools: List[ToolRead]
|
|
148
|
-
|
|
147
|
+
# Accept 'auto' or None on read
|
|
148
|
+
truncation_strategy: Optional[TruncationStrategy] = None
|
|
149
149
|
usage: Optional[Any] = None
|
|
150
150
|
temperature: float
|
|
151
151
|
top_p: float
|
|
@@ -155,14 +155,14 @@ class RunReadDetailed(BaseModel):
|
|
|
155
155
|
|
|
156
156
|
|
|
157
157
|
# --------------------------------------------------------------------------- #
|
|
158
|
-
# Small helper for the status
|
|
158
|
+
# Small helper for the status-only update endpoint
|
|
159
159
|
# --------------------------------------------------------------------------- #
|
|
160
160
|
class RunStatusUpdate(BaseModel):
|
|
161
161
|
status: RunStatus
|
|
162
162
|
|
|
163
163
|
|
|
164
164
|
# --------------------------------------------------------------------------- #
|
|
165
|
-
# Small helper for the status
|
|
165
|
+
# Small helper for the status-only update endpoint
|
|
166
166
|
# --------------------------------------------------------------------------- #
|
|
167
167
|
class RunListResponse(BaseModel):
|
|
168
168
|
object: Literal["list"] = "list"
|
|
@@ -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=
|
|
19
|
+
projectdavid_common/schemas/runs_schema.py,sha256=UwshWUBIKa8M8hDisue8speKubcOiRnZLmKyxFoN7XQ,5687
|
|
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.
|
|
30
|
-
projectdavid_common-0.
|
|
31
|
-
projectdavid_common-0.
|
|
32
|
-
projectdavid_common-0.
|
|
33
|
-
projectdavid_common-0.
|
|
29
|
+
projectdavid_common-0.18.0.dist-info/METADATA,sha256=LeqyI7QmQSIzzitR0wMVX0h_jH2zzA6M5M5XVm9Cof0,1673
|
|
30
|
+
projectdavid_common-0.18.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
31
|
+
projectdavid_common-0.18.0.dist-info/entry_points.txt,sha256=Y8HAIUW0ifCKcAzAqR21wu1ATHNFWWWiUB33UYv095o,74
|
|
32
|
+
projectdavid_common-0.18.0.dist-info/top_level.txt,sha256=lJ-jkZ0n0jWktoMJFcw-DzLoMTY2juuw5fgMIqYu1UU,20
|
|
33
|
+
projectdavid_common-0.18.0.dist-info/RECORD,,
|
|
File without changes
|
{projectdavid_common-0.17.19.dist-info → projectdavid_common-0.18.0.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{projectdavid_common-0.17.19.dist-info → projectdavid_common-0.18.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|