cs-models 0.0.602__py3-none-any.whl → 0.0.604__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 cs-models might be problematic. Click here for more details.
- cs_models/resources/AssistantCopilot/__init__.py +0 -0
- cs_models/resources/AssistantCopilot/models.py +30 -0
- cs_models/resources/AssistantCopilot/schemas.py +12 -0
- cs_models/resources/AssistantCopilotTasks/__init__.py +0 -0
- cs_models/resources/AssistantCopilotTasks/models.py +38 -0
- cs_models/resources/AssistantCopilotTasks/schemas.py +9 -0
- cs_models/resources/AssistantSearchCopilot/models.py +1 -0
- cs_models/resources/AssistantSearchCopilot/schemas.py +1 -0
- {cs_models-0.0.602.dist-info → cs_models-0.0.604.dist-info}/METADATA +1 -1
- {cs_models-0.0.602.dist-info → cs_models-0.0.604.dist-info}/RECORD +12 -6
- {cs_models-0.0.602.dist-info → cs_models-0.0.604.dist-info}/WHEEL +0 -0
- {cs_models-0.0.602.dist-info → cs_models-0.0.604.dist-info}/top_level.txt +0 -0
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from datetime import datetime
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import (
|
|
4
|
+
Column,
|
|
5
|
+
Integer,
|
|
6
|
+
DateTime,
|
|
7
|
+
Text,
|
|
8
|
+
String,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
from ...database import Base
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class AssistantCopilotModel(Base):
|
|
15
|
+
__tablename__ = "assistant_copilot"
|
|
16
|
+
|
|
17
|
+
id = Column(Integer, primary_key=True)
|
|
18
|
+
user_id = Column(String(128), nullable=False)
|
|
19
|
+
query = Column(String(256), nullable=False)
|
|
20
|
+
timestamp = Column(DateTime, nullable=False)
|
|
21
|
+
llm_result = Column(Text, nullable=True)
|
|
22
|
+
status_code = Column(String(20), nullable=True)
|
|
23
|
+
status = Column(String(191), nullable=True)
|
|
24
|
+
updated_at = Column(
|
|
25
|
+
DateTime,
|
|
26
|
+
nullable=False,
|
|
27
|
+
# https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
|
|
28
|
+
default=lambda: datetime.utcnow(),
|
|
29
|
+
onupdate=lambda: datetime.utcnow(),
|
|
30
|
+
)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from marshmallow import Schema, fields
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class AssistantCopilotResourceSchema(Schema):
|
|
5
|
+
id = fields.Integer(dump_only=True)
|
|
6
|
+
user_id = fields.String(required=True)
|
|
7
|
+
query = fields.String(required=True)
|
|
8
|
+
timestamp = fields.DateTime(required=True)
|
|
9
|
+
llm_result = fields.String(allow_none=True)
|
|
10
|
+
status = fields.String(allow_none=True)
|
|
11
|
+
status_code = fields.String(allow_none=True)
|
|
12
|
+
updated_at = fields.DateTime(dump_only=True)
|
|
File without changes
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from datetime import datetime
|
|
2
|
+
|
|
3
|
+
from sqlalchemy import (
|
|
4
|
+
Column,
|
|
5
|
+
Integer,
|
|
6
|
+
DateTime,
|
|
7
|
+
ForeignKey,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
from ...database import Base
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class AssistantCopilotTaskModel(Base):
|
|
14
|
+
__tablename__ = "assistant_copilot_tasks"
|
|
15
|
+
|
|
16
|
+
id = Column(Integer, primary_key=True)
|
|
17
|
+
assistant_copilot_id = Column(
|
|
18
|
+
Integer,
|
|
19
|
+
ForeignKey('assistant_copilot.id'),
|
|
20
|
+
nullable=False,
|
|
21
|
+
)
|
|
22
|
+
assistant_search_copilot_id = Column(
|
|
23
|
+
Integer,
|
|
24
|
+
ForeignKey('assistant_search_copilot.id'),
|
|
25
|
+
nullable=True,
|
|
26
|
+
)
|
|
27
|
+
assistant_session_id = Column(
|
|
28
|
+
Integer,
|
|
29
|
+
ForeignKey('assistant_sessions.id'),
|
|
30
|
+
nullable=True,
|
|
31
|
+
)
|
|
32
|
+
updated_at = Column(
|
|
33
|
+
DateTime,
|
|
34
|
+
nullable=False,
|
|
35
|
+
# https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
|
|
36
|
+
default=lambda: datetime.utcnow(),
|
|
37
|
+
onupdate=lambda: datetime.utcnow(),
|
|
38
|
+
)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
from marshmallow import Schema, fields
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class AssistantCopilotTaskResourceSchema(Schema):
|
|
5
|
+
id = fields.Integer(dump_only=True)
|
|
6
|
+
assistant_copilot_id = fields.Integer(required=True)
|
|
7
|
+
assistant_search_copilot_id = fields.Integer(allow_none=True)
|
|
8
|
+
assistant_session_id = fields.Integer(allow_none=True)
|
|
9
|
+
updated_at = fields.DateTime(dump_only=True)
|
|
@@ -5,5 +5,6 @@ class AssistantSearchCopilotResourceSchema(Schema):
|
|
|
5
5
|
id = fields.Integer(dump_only=True)
|
|
6
6
|
assistant_user_query_id = fields.Integer(allow_none=True)
|
|
7
7
|
status = fields.String(allow_none=True)
|
|
8
|
+
status_code = fields.String(allow_none=True)
|
|
8
9
|
search_payloads = fields.String(allow_none=True)
|
|
9
10
|
updated_at = fields.DateTime(dump_only=True)
|
|
@@ -28,12 +28,18 @@ cs_models/resources/AssistantCommandEdge/models.py,sha256=3blYNPb6zH6ewfj-VK7z77
|
|
|
28
28
|
cs_models/resources/AssistantCommandTable/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
29
29
|
cs_models/resources/AssistantCommandTable/models.py,sha256=spy6CuB3JTYvVVlns526l2hIRlFSi6PcdKHbwb3U9DU,1109
|
|
30
30
|
cs_models/resources/AssistantCommandTable/schemas.py,sha256=VvIQKKXEpuI6VR0nHvKkK11LiM30G5hJL2CowUXc1Lw,665
|
|
31
|
+
cs_models/resources/AssistantCopilot/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
32
|
+
cs_models/resources/AssistantCopilot/models.py,sha256=qPtY7lap-nb2yOcjtQS3lLzhIZU18JeVruOdbAQjIGI,834
|
|
33
|
+
cs_models/resources/AssistantCopilot/schemas.py,sha256=5Knq3Zwg9dpPYuR5JBTJOP9JTPnvdrIH0mG-qZ0XEVE,448
|
|
34
|
+
cs_models/resources/AssistantCopilotTasks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
|
+
cs_models/resources/AssistantCopilotTasks/models.py,sha256=JiHoyqJlMqNLVSd__3aoNPoG1d8yQ1abRS1U8UQaDcg,937
|
|
36
|
+
cs_models/resources/AssistantCopilotTasks/schemas.py,sha256=5T64fscZLthM1bxl8EPfr9Pkzw8wgzuX4YoCxV0FIwU,362
|
|
31
37
|
cs_models/resources/AssistantScratchPad/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
32
38
|
cs_models/resources/AssistantScratchPad/models.py,sha256=A2XS32dkIEdx2ToL_vA9i4b9cTLWKVRXhP35RbROW9Q,1025
|
|
33
39
|
cs_models/resources/AssistantScratchPad/schemas.py,sha256=yAuRxZfnmbYMvtGxE56ub8OEPmk84NAJAJJZbuFQE94,468
|
|
34
40
|
cs_models/resources/AssistantSearchCopilot/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
|
-
cs_models/resources/AssistantSearchCopilot/models.py,sha256=
|
|
36
|
-
cs_models/resources/AssistantSearchCopilot/schemas.py,sha256=
|
|
41
|
+
cs_models/resources/AssistantSearchCopilot/models.py,sha256=goeBVLehkfgMotWyIHZUbXEkaAfj5STxmZi_C3ezjsg,854
|
|
42
|
+
cs_models/resources/AssistantSearchCopilot/schemas.py,sha256=eA8fQxrW7q7mZUKAIV-a0uRS6eLI-L2MxHmx7DoQGJY,390
|
|
37
43
|
cs_models/resources/AssistantSearchCopilotMarkdown/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
38
44
|
cs_models/resources/AssistantSearchCopilotMarkdown/models.py,sha256=1kP7JU2Bxlcl_dG2aSg88SertHL4mcNrlCnoECHq3vU,760
|
|
39
45
|
cs_models/resources/AssistantSearchCopilotMarkdown/schemas.py,sha256=74k6fc1Ev9CBqLv_8YdxVIq_tppLP_1CKUYtH-nkcv0,291
|
|
@@ -985,7 +991,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
985
991
|
cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
|
|
986
992
|
cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
|
|
987
993
|
cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
|
|
988
|
-
cs_models-0.0.
|
|
989
|
-
cs_models-0.0.
|
|
990
|
-
cs_models-0.0.
|
|
991
|
-
cs_models-0.0.
|
|
994
|
+
cs_models-0.0.604.dist-info/METADATA,sha256=wPLObkSfe4XyVJFAHd1UDve1kF0QYqfKcRHTfLIF6FY,791
|
|
995
|
+
cs_models-0.0.604.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
996
|
+
cs_models-0.0.604.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
|
|
997
|
+
cs_models-0.0.604.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|