kodexa 7.0.7611067729__py3-none-any.whl → 7.0.7643549994__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 +4 -4
- kodexa/platform/client.py +2 -2
- {kodexa-7.0.7611067729.dist-info → kodexa-7.0.7643549994.dist-info}/METADATA +1 -1
- {kodexa-7.0.7611067729.dist-info → kodexa-7.0.7643549994.dist-info}/RECORD +6 -6
- {kodexa-7.0.7611067729.dist-info → kodexa-7.0.7643549994.dist-info}/LICENSE +0 -0
- {kodexa-7.0.7611067729.dist-info → kodexa-7.0.7643549994.dist-info}/WHEEL +0 -0
kodexa/model/objects.py
CHANGED
@@ -2893,7 +2893,6 @@ class Workspace(BaseModel):
|
|
2893
2893
|
project: Optional[Project] = None
|
2894
2894
|
name: Optional[str] = None
|
2895
2895
|
description: Optional[str] = None
|
2896
|
-
channel: Optional[Channel] = None
|
2897
2896
|
workspace_storage: Optional[WorkspaceStorage] = Field(
|
2898
2897
|
None, alias="workspaceStorage"
|
2899
2898
|
)
|
@@ -4196,6 +4195,7 @@ class Guidance(BaseModel):
|
|
4196
4195
|
|
4197
4196
|
compiled_guidance: Optional[Dict[str, Any]] = Field(None, alias="compiledGuidance")
|
4198
4197
|
|
4198
|
+
|
4199
4199
|
class GuidanceSet(ExtensionPackProvided):
|
4200
4200
|
"""
|
4201
4201
|
|
@@ -4237,7 +4237,7 @@ class Prompt(ExtensionPackProvided):
|
|
4237
4237
|
"""
|
4238
4238
|
|
4239
4239
|
"""
|
4240
|
-
|
4240
|
+
prompt_template: Optional[str] = None
|
4241
4241
|
options: Optional[List[Option]] = Field(
|
4242
4242
|
None, description="Options for the prompt"
|
4243
4243
|
)
|
@@ -4245,10 +4245,10 @@ class Prompt(ExtensionPackProvided):
|
|
4245
4245
|
|
4246
4246
|
def render(self, properties):
|
4247
4247
|
if self.template_type == "FSTRING":
|
4248
|
-
return self.
|
4248
|
+
return self.prompt_template.format(**properties)
|
4249
4249
|
elif self.template_type == "MUSTACHE":
|
4250
4250
|
import chevron
|
4251
|
-
return chevron.render(self.
|
4251
|
+
return chevron.render(self.prompt_template, properties)
|
4252
4252
|
else:
|
4253
4253
|
raise Exception(f"Unknown template type {self.template_type}")
|
4254
4254
|
|
kodexa/platform/client.py
CHANGED
@@ -4445,8 +4445,8 @@ class DocumentFamilyEndpoint(DocumentFamily, ClientEndpoint):
|
|
4445
4445
|
content_object = self.content_objects[-1]
|
4446
4446
|
url = f"/api/stores/{self.store_ref.replace(':', '/')}/families/{self.id}/objects/{content_object.id}/_replaceTags"
|
4447
4447
|
self.client.put(
|
4448
|
-
url, params={'replaceData': replace_data},
|
4449
|
-
body=document.get_feature_set(owner_uri).
|
4448
|
+
url, params={'replaceData': replace_data, 'ownerUri': owner_uri},
|
4449
|
+
body=document.get_feature_set(owner_uri).model_dump(by_alias=True),
|
4450
4450
|
)
|
4451
4451
|
|
4452
4452
|
|
@@ -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=CaZK8nMhT1LdCpt4aLhebJGcorjq9qRID1FjnXnP14M,521
|
8
8
|
kodexa/model/model.py,sha256=2rbNYpBIrOXZ1Vz1d6JfFxYg-tXujjE765pzoGgTNT8,114447
|
9
|
-
kodexa/model/objects.py,sha256=
|
9
|
+
kodexa/model/objects.py,sha256=wzAV2DNkL-Zj1qIoyICAehmQstZrnplkIidS0VEoPvY,169958
|
10
10
|
kodexa/model/persistence.py,sha256=Ekf276WAtY2MOkryug9IpcM_HwnJSPpSWEFZgiUODMc,57390
|
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=VV3suLX2aYCMVn9nNwxnE_dCtEyAk1KXCVPXuR80tc4,209206
|
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-7.0.
|
38
|
-
kodexa-7.0.
|
39
|
-
kodexa-7.0.
|
40
|
-
kodexa-7.0.
|
37
|
+
kodexa-7.0.7643549994.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
38
|
+
kodexa-7.0.7643549994.dist-info/METADATA,sha256=4EzcB1SoMzaIcR47Mlxd2lp7FRrOLXD-f_MaLhr0JJQ,4067
|
39
|
+
kodexa-7.0.7643549994.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
40
|
+
kodexa-7.0.7643549994.dist-info/RECORD,,
|
File without changes
|
File without changes
|