cheshirecat-python-sdk 1.7.2__py3-none-any.whl → 1.7.3__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.
- cheshirecat_python_sdk/endpoints/health_check.py +12 -2
- {cheshirecat_python_sdk-1.7.2.dist-info → cheshirecat_python_sdk-1.7.3.dist-info}/METADATA +1 -1
- {cheshirecat_python_sdk-1.7.2.dist-info → cheshirecat_python_sdk-1.7.3.dist-info}/RECORD +5 -5
- {cheshirecat_python_sdk-1.7.2.dist-info → cheshirecat_python_sdk-1.7.3.dist-info}/WHEEL +0 -0
- {cheshirecat_python_sdk-1.7.2.dist-info → cheshirecat_python_sdk-1.7.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
from cheshirecat_python_sdk.endpoints.base import AbstractEndpoint
|
|
2
2
|
|
|
3
3
|
class HealthCheckEndpoint(AbstractEndpoint):
|
|
4
|
-
def
|
|
4
|
+
def liveness(self):
|
|
5
5
|
"""
|
|
6
6
|
This endpoint is used to check if the server is running.
|
|
7
7
|
:return: dict, the status of the server.
|
|
8
8
|
"""
|
|
9
|
-
response = self.get_http_session().get("/")
|
|
9
|
+
response = self.get_http_session().get("/health/liveness")
|
|
10
|
+
response.raise_for_status()
|
|
11
|
+
|
|
12
|
+
return response.json()
|
|
13
|
+
|
|
14
|
+
def readiness(self):
|
|
15
|
+
"""
|
|
16
|
+
This endpoint is used to check if the server is running.
|
|
17
|
+
:return: dict, the status of the server.
|
|
18
|
+
"""
|
|
19
|
+
response = self.get_http_session().get("/health/readiness")
|
|
10
20
|
response.raise_for_status()
|
|
11
21
|
|
|
12
22
|
return response.json()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cheshirecat-python-sdk
|
|
3
|
-
Version: 1.7.
|
|
3
|
+
Version: 1.7.3
|
|
4
4
|
Summary: Python SDK for the Cloud-ready fork of the Cheshire Cat
|
|
5
5
|
Project-URL: Repository, https://github.com/matteocacciola/cheshirecat-python-sdk
|
|
6
6
|
Project-URL: Documentation, https://github.com/matteocacciola/cheshirecat-python-sdk#README
|
|
@@ -20,7 +20,7 @@ cheshirecat_python_sdk/endpoints/conversation.py,sha256=jG1z7ivdD53H8JZe7WZWihoB
|
|
|
20
20
|
cheshirecat_python_sdk/endpoints/custom_endpoint.py,sha256=HVRQMqA5JfPr87gHtWpYcsXsE-TA-coXLcvsPKabqds,2791
|
|
21
21
|
cheshirecat_python_sdk/endpoints/embedder.py,sha256=4B2yc3KBThKGreq_KPTTCsxt2Ekktw_muZ5gBfxrrwY,1741
|
|
22
22
|
cheshirecat_python_sdk/endpoints/file_manager.py,sha256=qzMzvSt3eBYNb5VstQq8MdV1JC6QsUNOPrwb8yAR_OA,4226
|
|
23
|
-
cheshirecat_python_sdk/endpoints/health_check.py,sha256=
|
|
23
|
+
cheshirecat_python_sdk/endpoints/health_check.py,sha256=qv_5imbN39PqPyuBvlNoSqXqAvTvPv7UXI4zcfH8tlg,710
|
|
24
24
|
cheshirecat_python_sdk/endpoints/large_language_model.py,sha256=SS787ZKMZQ7KQNvl7a7rfBCm6s1j3ifDfWQcrM4tn-k,2109
|
|
25
25
|
cheshirecat_python_sdk/endpoints/memory.py,sha256=dEnQ2Hb_VG907p7T9oQgPCWWFHAUwkgwpVVJ1bLsWGw,8959
|
|
26
26
|
cheshirecat_python_sdk/endpoints/message.py,sha256=QTUSUJcj52VhfnX9hdjsD2aLeFC43O4eU8ld5lRvITU,2607
|
|
@@ -42,7 +42,7 @@ cheshirecat_python_sdk/models/api/tokens.py,sha256=5vzQqmcYWg593U1cTnnmLPZMNkgNN
|
|
|
42
42
|
cheshirecat_python_sdk/models/api/users.py,sha256=2l86y6ol0R0823gGl4bmc1TzGP4ZyvTm9AR8riKiatA,160
|
|
43
43
|
cheshirecat_python_sdk/models/api/nested/memories.py,sha256=ddGDsmZa2refElM0sGz9QfKHGk50wsTpkwN5qDC5bF4,946
|
|
44
44
|
cheshirecat_python_sdk/models/api/nested/plugins.py,sha256=7vrwgXh0csaUn11YKY_OWnGEnD8Fu_ewKxt024VOBEs,738
|
|
45
|
-
cheshirecat_python_sdk-1.7.
|
|
46
|
-
cheshirecat_python_sdk-1.7.
|
|
47
|
-
cheshirecat_python_sdk-1.7.
|
|
48
|
-
cheshirecat_python_sdk-1.7.
|
|
45
|
+
cheshirecat_python_sdk-1.7.3.dist-info/METADATA,sha256=dTIDOlGA3_ZxozOkspAz0wqxRNIvJFlBbtqyb_kP4gc,44136
|
|
46
|
+
cheshirecat_python_sdk-1.7.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
47
|
+
cheshirecat_python_sdk-1.7.3.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
48
|
+
cheshirecat_python_sdk-1.7.3.dist-info/RECORD,,
|
|
File without changes
|
{cheshirecat_python_sdk-1.7.2.dist-info → cheshirecat_python_sdk-1.7.3.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|