kodexa 7.0.11234515814__tar.gz → 7.0.11275546208__tar.gz

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.
Files changed (48) hide show
  1. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/PKG-INFO +1 -1
  2. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/platform/client.py +1 -0
  3. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/platform/kodexa.py +17 -11
  4. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/pyproject.toml +1 -1
  5. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/LICENSE +0 -0
  6. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/README.md +0 -0
  7. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/__init__.py +0 -0
  8. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/assistant/__init__.py +0 -0
  9. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/assistant/assistant.py +0 -0
  10. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/connectors/__init__.py +0 -0
  11. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/connectors/connectors.py +0 -0
  12. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/dataclasses/__init__.py +0 -0
  13. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/dataclasses/templates/llm_data_class.j2 +0 -0
  14. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/model/__init__.py +0 -0
  15. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/model/base.py +0 -0
  16. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/model/entities/__init__.py +0 -0
  17. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/model/entities/check_response.py +0 -0
  18. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/model/entities/product.py +0 -0
  19. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/model/entities/product_subscription.py +0 -0
  20. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/model/model.py +0 -0
  21. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/model/objects.py +0 -0
  22. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/model/persistence.py +0 -0
  23. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/pipeline/__init__.py +0 -0
  24. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/pipeline/pipeline.py +0 -0
  25. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/platform/__init__.py +0 -0
  26. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/platform/interaction.py +0 -0
  27. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/selectors/__init__.py +0 -0
  28. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/selectors/ast.py +0 -0
  29. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/selectors/core.py +0 -0
  30. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/selectors/lexrules.py +0 -0
  31. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/selectors/lextab.py +0 -0
  32. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/selectors/lextab.pyi +0 -0
  33. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/selectors/parserules.py +0 -0
  34. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/selectors/parserules.pyi +0 -0
  35. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/selectors/parsetab.py +0 -0
  36. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/selectors/parsetab.pyi +0 -0
  37. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/spatial/__init__.py +0 -0
  38. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/spatial/azure_models.py +0 -0
  39. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/spatial/bbox_common.py +0 -0
  40. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/spatial/table_form_common.py +0 -0
  41. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/steps/__init__.py +0 -0
  42. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/steps/common.py +0 -0
  43. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/testing/__init__.py +0 -0
  44. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/testing/test_components.py +0 -0
  45. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/testing/test_utils.py +0 -0
  46. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/training/__init__.py +0 -0
  47. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/training/train_utils.py +0 -0
  48. {kodexa-7.0.11234515814 → kodexa-7.0.11275546208}/kodexa/utils/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.0.11234515814
3
+ Version: 7.0.11275546208
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -7094,6 +7094,7 @@ class KodexaClient:
7094
7094
  "message": MessageEndpoint,
7095
7095
  "prompt": PromptEndpoint,
7096
7096
  "guidance": GuidanceSetEndpoint,
7097
+ "retainedGuidance": RetainedGuidanceEndpoint,
7097
7098
  "channel": ChannelEndpoint,
7098
7099
  "product": ProductEndpoint,
7099
7100
  "task": TaskEndpoint,
@@ -29,7 +29,7 @@ from kodexa.model.objects import (
29
29
  DocumentFamilyEvent,
30
30
  ChannelEvent,
31
31
  DataObjectEvent,
32
- WorkspaceEvent,
32
+ WorkspaceEvent, DocumentFamily,
33
33
  )
34
34
  from kodexa.pipeline import PipelineContext, PipelineStatistics
35
35
  from kodexa.platform.client import DocumentStoreEndpoint, KodexaClient, process_response
@@ -911,16 +911,22 @@ class EventHelper:
911
911
  context={}, content_provider=self, execution_id=self.event.execution.id
912
912
  )
913
913
 
914
- if self.event.store_ref and self.event.document_family_id:
915
- logger.info("We have storeRef and document family")
916
- rds: DocumentStoreEndpoint = KodexaClient().get_object_by_ref(
917
- "store", self.event.store_ref
918
- )
919
- document_family = rds.get_family(self.event.document_family_id)
920
-
921
- context.document_family = document_family
922
- context.document_store = rds
923
-
914
+ if isinstance(self.event, DocumentFamilyEvent):
915
+ # Can we get the document family
916
+ dfe:DocumentFamilyEvent = self.event
917
+ if dfe.document_family:
918
+ logger.info(f"Setting document family for context: {dfe.document_family}")
919
+ context.document_family = dfe.document_family
920
+ logger.info(f"Getting document store for family: {context.document_family.store_ref}")
921
+ context.document_store = KodexaClient().get_object_by_ref("store", context.document_family.store_ref)
922
+ if isinstance(self.event, ContentEvent):
923
+ ce:ContentEvent = self.event
924
+ if ce.content_object:
925
+ logger.info(f"Setting content object for context: {ce.content_object}")
926
+ context.content_object = ce.content_object
927
+ logger.info(f"Getting document store for content object: {context.content_object.store_ref}")
928
+ context.document_store = KodexaClient().get_object_by_ref("store", context.content_object.store_ref)
929
+ logger.info("Returning context")
924
930
  return context
925
931
 
926
932
  def get_input_document(self, context):
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "kodexa"
3
- version = "7.0.011234515814"
3
+ version = "7.0.011275546208"
4
4
  description = "Python SDK for the Kodexa Platform"
5
5
  authors = ["Austin Redenbaugh <austin@kodexa.com>", "Philip Dodds <philip@kodexa.com>", "Romar Cablao <rcablao@kodexa.com>", "Amadea Paula Dodds <amadeapaula@kodexa.com>"]
6
6
  readme = "README.md"