agentex-sdk 0.2.9__py3-none-any.whl → 0.2.10__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.
- agentex/_version.py +1 -1
- agentex/lib/utils/model_utils.py +4 -0
- {agentex_sdk-0.2.9.dist-info → agentex_sdk-0.2.10.dist-info}/METADATA +1 -1
- {agentex_sdk-0.2.9.dist-info → agentex_sdk-0.2.10.dist-info}/RECORD +7 -7
- {agentex_sdk-0.2.9.dist-info → agentex_sdk-0.2.10.dist-info}/WHEEL +0 -0
- {agentex_sdk-0.2.9.dist-info → agentex_sdk-0.2.10.dist-info}/entry_points.txt +0 -0
- {agentex_sdk-0.2.9.dist-info → agentex_sdk-0.2.10.dist-info}/licenses/LICENSE +0 -0
agentex/_version.py
CHANGED
agentex/lib/utils/model_utils.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
from collections.abc import Iterable, Mapping
|
2
|
+
from datetime import datetime
|
2
3
|
from typing import Any, TypeVar
|
3
4
|
|
4
5
|
from pydantic import BaseModel as PydanticBaseModel
|
@@ -35,6 +36,9 @@ def recursive_model_dump(obj: Any) -> Any:
|
|
35
36
|
if isinstance(obj, PydanticBaseModel):
|
36
37
|
# Serialize BaseModel to dict
|
37
38
|
return obj.model_dump(mode="json")
|
39
|
+
elif isinstance(obj, datetime):
|
40
|
+
# Serialize datetime to ISO format string
|
41
|
+
return obj.isoformat()
|
38
42
|
elif isinstance(obj, Mapping):
|
39
43
|
# Recursively serialize dictionary values
|
40
44
|
return {k: recursive_model_dump(v) for k, v in obj.items()}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: agentex-sdk
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.10
|
4
4
|
Summary: The official Python library for the agentex API
|
5
5
|
Project-URL: Homepage, https://github.com/scaleapi/agentex-python
|
6
6
|
Project-URL: Repository, https://github.com/scaleapi/agentex-python
|
@@ -11,7 +11,7 @@ agentex/_resource.py,sha256=S1t7wmR5WUvoDIhZjo_x-E7uoTJBynJ3d8tPJMQYdjw,1106
|
|
11
11
|
agentex/_response.py,sha256=Tb9zazsnemO2rTxWtBjAD5WBqlhli5ZaXGbiKgdu5DE,28794
|
12
12
|
agentex/_streaming.py,sha256=FNGJExRCF-vTRUZHFKUfoAWFhDGOB3XbioVCF37Jr7E,10104
|
13
13
|
agentex/_types.py,sha256=KyKYySGIfHPod2hho1fPxssk5NuVn8C4MeMTtA-lg80,6198
|
14
|
-
agentex/_version.py,sha256=
|
14
|
+
agentex/_version.py,sha256=_mJ9of_Lm7nKai8Hhv6-2h2UqVzI0If7oT16sQ_8DMs,160
|
15
15
|
agentex/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
agentex/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
17
17
|
agentex/_utils/_logs.py,sha256=LUjFPc3fweSChBUmjhQD8uYmwQAmFMNDuVFKfjYBQfM,777
|
@@ -220,7 +220,7 @@ agentex/lib/utils/iterables.py,sha256=cD49hj98mtY0QPaS0ZA2kguNeGzRU4UfbZfwyASWdz
|
|
220
220
|
agentex/lib/utils/json_schema.py,sha256=nSHbi6LC-oWXHP6sMLCBychA7B0R2DItRIJNCCEzRsY,741
|
221
221
|
agentex/lib/utils/logging.py,sha256=RychRZ4I5JlhBRtkP6KGMZBEcRVNN8mpBjv03aV2S0E,798
|
222
222
|
agentex/lib/utils/mcp.py,sha256=lYQPwKAOH6Gf2I_TeovhEG9YUijUPcN0rENNdT0Vk6c,505
|
223
|
-
agentex/lib/utils/model_utils.py,sha256=
|
223
|
+
agentex/lib/utils/model_utils.py,sha256=DC1CHm_X7ZZ2skBdbY7sEepEmgQlOoohswRD8I92I20,1709
|
224
224
|
agentex/lib/utils/parsing.py,sha256=2T-B4nJSupo2RLf9AkpV6VQHqDnF97ZBgO6zvGCauCo,369
|
225
225
|
agentex/lib/utils/regex.py,sha256=Y3VcehCznAqa59D4WTwK_ki722oudHBlFqBk0I930zo,212
|
226
226
|
agentex/lib/utils/registration.py,sha256=FAL40KSMRCltHZcDtioGeRNgfB19Twqu6Srp4x7UMSU,3781
|
@@ -296,8 +296,8 @@ agentex/types/messages/batch_update_params.py,sha256=Ug5CThbD49a8j4qucg04OdmVrp_
|
|
296
296
|
agentex/types/messages/batch_update_response.py,sha256=TbSBe6SuPzjXXWSj-nRjT1JHGBooTshHQQDa1AixQA8,278
|
297
297
|
agentex/types/shared/__init__.py,sha256=IKs-Qn5Yja0kFh1G1kDqYZo43qrOu1hSoxlPdN-85dI,149
|
298
298
|
agentex/types/shared/delete_response.py,sha256=8qH3zvQXaOHYQSHyXi7UQxdR4miTzR7V9K4zXVsiUyk,215
|
299
|
-
agentex_sdk-0.2.
|
300
|
-
agentex_sdk-0.2.
|
301
|
-
agentex_sdk-0.2.
|
302
|
-
agentex_sdk-0.2.
|
303
|
-
agentex_sdk-0.2.
|
299
|
+
agentex_sdk-0.2.10.dist-info/METADATA,sha256=nXcuEA6wWpPB-EIqn44tqDVicB1MxEzfVOvwC6DURts,15038
|
300
|
+
agentex_sdk-0.2.10.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
301
|
+
agentex_sdk-0.2.10.dist-info/entry_points.txt,sha256=V7vJuMZdF0UlvgX6KiBN7XUvq_cxF5kplcYvc1QlFaQ,62
|
302
|
+
agentex_sdk-0.2.10.dist-info/licenses/LICENSE,sha256=Q1AOx2FtRcMlyMgQJ9eVN2WKPq2mQ33lnB4tvWxabLA,11337
|
303
|
+
agentex_sdk-0.2.10.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|