kodexa 6.3.37315098740__py3-none-any.whl → 6.3.37315190663__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.
- kodexa/model/objects.py +2 -2
- kodexa/platform/client.py +7 -3
- {kodexa-6.3.37315098740.dist-info → kodexa-6.3.37315190663.dist-info}/METADATA +1 -1
- {kodexa-6.3.37315098740.dist-info → kodexa-6.3.37315190663.dist-info}/RECORD +6 -6
- {kodexa-6.3.37315098740.dist-info → kodexa-6.3.37315190663.dist-info}/LICENSE +0 -0
- {kodexa-6.3.37315098740.dist-info → kodexa-6.3.37315190663.dist-info}/WHEEL +0 -0
kodexa/model/objects.py
CHANGED
@@ -2451,10 +2451,10 @@ class Message(BaseModel):
|
|
2451
2451
|
created_on: Optional[StandardDateTime] = Field(None, alias="createdOn")
|
2452
2452
|
updated_on: Optional[StandardDateTime] = Field(None, alias="updatedOn")
|
2453
2453
|
channel: Optional[Channel] = None
|
2454
|
-
|
2454
|
+
block: Optional[MessageBlock] = Field(None, alias="block")
|
2455
2455
|
message_type: Optional[str] = Field(None, alias="messageType")
|
2456
2456
|
content: Optional[str] = None
|
2457
|
-
|
2457
|
+
feedback: Optional[MessageFeedback] = Field(None, alias="feedback")
|
2458
2458
|
assistant: Optional[Assistant] = None
|
2459
2459
|
user: Optional[User] = None
|
2460
2460
|
context: Optional[MessageContext] = None
|
kodexa/platform/client.py
CHANGED
@@ -608,10 +608,13 @@ class EntityEndpoint(ClientEndpoint):
|
|
608
608
|
"""
|
609
609
|
raise NotImplementedError()
|
610
610
|
|
611
|
-
def create(self):
|
611
|
+
def create(self) -> "EntityEndpoint":
|
612
612
|
"""
|
613
613
|
Creates the entity.
|
614
614
|
|
615
|
+
Returns:
|
616
|
+
EntityEndpoint: The created entity (with the ID in place)
|
617
|
+
|
615
618
|
Raises:
|
616
619
|
Exception: If the entity already exists.
|
617
620
|
"""
|
@@ -623,6 +626,7 @@ class EntityEndpoint(ClientEndpoint):
|
|
623
626
|
|
624
627
|
# We need to update the id
|
625
628
|
self.id = response.json()["id"]
|
629
|
+
return self
|
626
630
|
|
627
631
|
def update(self):
|
628
632
|
"""
|
@@ -2193,8 +2197,8 @@ class ChannelEndpoint(EntityEndpoint, Channel):
|
|
2193
2197
|
message_endpoint.channel = self.detach()
|
2194
2198
|
message_endpoint.message_type = message.message_type
|
2195
2199
|
message_endpoint.content = message.content
|
2196
|
-
message_endpoint.
|
2197
|
-
message_endpoint.
|
2200
|
+
message_endpoint.block = message.block
|
2201
|
+
message_endpoint.feedback = message.feedback
|
2198
2202
|
return message_endpoint.create()
|
2199
2203
|
|
2200
2204
|
|
@@ -6,12 +6,12 @@ kodexa/connectors/connectors.py,sha256=FpUZDkSyHld2b9eYRuVOWzaFtuGoaRuPXXicJB7TH
|
|
6
6
|
kodexa/model/__init__.py,sha256=rtLXYJBxB-rnukhslN9rlqoB3--1H3253HyHGbD_Gc8,796
|
7
7
|
kodexa/model/base.py,sha256=KJEupciN3Zrl4ALcSqXmIOQQO2twEdkjXp-M3gEu9z4,489
|
8
8
|
kodexa/model/model.py,sha256=GIHdQkFhE2xu8oLBgSXhZ_bvECcnS6_qrqwCtSbqnZI,114148
|
9
|
-
kodexa/model/objects.py,sha256=
|
9
|
+
kodexa/model/objects.py,sha256=YtddrsRxIBXFa36Q8c7aJm3pa8q-oWwT6gGWcsSOCoc,155516
|
10
10
|
kodexa/model/persistence.py,sha256=TajtXfHp7dL85R5ui9A2h6rLMecDUr6OYZHVgm8CVJw,57360
|
11
11
|
kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
|
12
12
|
kodexa/pipeline/pipeline.py,sha256=cIRFOoJkguIYgNzx6FYrODdBpcY25CM_SULsqSsHeXE,24323
|
13
13
|
kodexa/platform/__init__.py,sha256=1O3oiWMg292NPL_NacKDnK1T3_R6cMorrPRue_9e-O4,216
|
14
|
-
kodexa/platform/client.py,sha256=
|
14
|
+
kodexa/platform/client.py,sha256=fJwKMvR1xII-bMZxLC2FvNDUrRp4Vb5T6xo6ujtMcqA,203762
|
15
15
|
kodexa/platform/kodexa.py,sha256=g9Vcp2CtPn6haCQLc7TEmQmROQ1x8Bdpxfx1iK1KTqU,32292
|
16
16
|
kodexa/selectors/__init__.py,sha256=xA9-4vpyaAZWPSk3bh2kvDLkdv6XEmm7PjFbpziiTIk,100
|
17
17
|
kodexa/selectors/ast.py,sha256=gG-1st841IntgBE5V7p3Cq9azaym2jV5lB_AIywQTCI,13269
|
@@ -34,7 +34,7 @@ kodexa/testing/test_components.py,sha256=4BnzCCOA5v__82mB1TIBPHfNIGJbkZz9PiTZiNK
|
|
34
34
|
kodexa/testing/test_utils.py,sha256=IWLKBvMHATzrsoO9PQFGcwoGcuZykhAS3QRddfzb_XE,14043
|
35
35
|
kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
|
36
36
|
kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
37
|
-
kodexa-6.3.
|
38
|
-
kodexa-6.3.
|
39
|
-
kodexa-6.3.
|
40
|
-
kodexa-6.3.
|
37
|
+
kodexa-6.3.37315190663.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
38
|
+
kodexa-6.3.37315190663.dist-info/METADATA,sha256=HZThU6WN4r7XWKQXYcwkCuDe9gat3-qTHfmZEcYYtHw,4003
|
39
|
+
kodexa-6.3.37315190663.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
40
|
+
kodexa-6.3.37315190663.dist-info/RECORD,,
|
File without changes
|
File without changes
|