kodexa 6.3.36350621280__py3-none-any.whl → 6.3.36382785075__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 CHANGED
@@ -1502,12 +1502,12 @@ class ObjectEventType(Enum):
1502
1502
  derived_object = "DERIVED_OBJECT"
1503
1503
 
1504
1504
 
1505
- class Type1(Enum):
1505
+ class ExecutionEventType(Enum):
1506
1506
  start_execution = "START_EXECUTION"
1507
1507
  step_update = "STEP_UPDATE"
1508
1508
  assistant_event = "ASSISTANT_EVENT"
1509
1509
  assistant_response = "ASSISTANT_RESPONSE"
1510
-
1510
+ abend = "ABEND"
1511
1511
 
1512
1512
  class Status6(Enum):
1513
1513
  pending = "PENDING"
@@ -3397,7 +3397,7 @@ class ExecutionEvent(BaseModel):
3397
3397
  change_sequence: Optional[int] = Field(None, alias="changeSequence")
3398
3398
  created_on: Optional[StandardDateTime] = Field(None, alias="createdOn")
3399
3399
  updated_on: Optional[StandardDateTime] = Field(None, alias="updatedOn")
3400
- type: Type1
3400
+ type: ExecutionEventType
3401
3401
  status: Optional[Status6] = None
3402
3402
  execution: Optional[Execution] = None
3403
3403
  store_ref: Optional[str] = Field(None, alias="storeRef")
kodexa/platform/client.py CHANGED
@@ -1759,8 +1759,10 @@ class AssistantEndpoint(Assistant, ClientEndpoint):
1759
1759
  :return:
1760
1760
  """
1761
1761
  url = f"/api/assistants/{self.id}/memory/{key}"
1762
- response = self.client.put(url, body=data)
1763
- self.change_sequence = response.json().get("changeSequence")
1762
+ response = self.client.put(url, body={
1763
+ 'key': key,
1764
+ 'data': data
1765
+ })
1764
1766
  return response.json()
1765
1767
 
1766
1768
  def get_memory(self, key: str):
@@ -1771,7 +1773,7 @@ class AssistantEndpoint(Assistant, ClientEndpoint):
1771
1773
  """
1772
1774
  url = f"/api/assistants/{self.id}/memory/{key}"
1773
1775
  response = self.client.get(url)
1774
- return response.json()
1776
+ return response.json()["data"]
1775
1777
 
1776
1778
  def delete(self):
1777
1779
  """Delete the assistant."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 6.3.36350621280
3
+ Version: 6.3.36382785075
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -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=LDiyiRuM3hGg-bx387cZ5xRT81UV2Y5ZpNx_vv1UZRw,113718
9
- kodexa/model/objects.py,sha256=ckU8pO2Zwidlq8fqpeOTXkaY0HwcWxozKBA6AZBR5wY,154065
9
+ kodexa/model/objects.py,sha256=Xg8avVtIOFcSN4KvSFDXd83uMx8HtqblXRYQESQXciA,154110
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=lgwrENi1HtTd6mN6ys7SjVfiJbwMU6DTmN43fR9OF-c,24462
13
13
  kodexa/platform/__init__.py,sha256=1O3oiWMg292NPL_NacKDnK1T3_R6cMorrPRue_9e-O4,216
14
- kodexa/platform/client.py,sha256=AsK0BpDWBL10lx0CIGmbT587BHeG1HM7NCullW1MkcI,200064
14
+ kodexa/platform/client.py,sha256=NjQcmreZkAEuVMFMAlKA-911jOHKPW-67irGMKOoZxQ,200059
15
15
  kodexa/platform/kodexa.py,sha256=J5OeAC29RSX1ZcBXpQpYM6urxDcTeF_7lv0ZQOofcb8,33668
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.36350621280.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
38
- kodexa-6.3.36350621280.dist-info/METADATA,sha256=G4-sQyRP3yqxxnwm8zdEfXb5Du9h45abMzNwWl7LSgY,4043
39
- kodexa-6.3.36350621280.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
40
- kodexa-6.3.36350621280.dist-info/RECORD,,
37
+ kodexa-6.3.36382785075.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
38
+ kodexa-6.3.36382785075.dist-info/METADATA,sha256=7pnXh7Hk7pUPp0Li0kEXDT4FXF59VHLKB2H08AReLoo,4043
39
+ kodexa-6.3.36382785075.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
40
+ kodexa-6.3.36382785075.dist-info/RECORD,,