kodexa 7.0.7435066045__py3-none-any.whl → 7.0.7436815088__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/platform/client.py CHANGED
@@ -85,7 +85,7 @@ from kodexa.model.objects import (
85
85
  ReprocessRequest,
86
86
  PageExtensionPack,
87
87
  PageOrganization,
88
- DocumentFamilyStatistics, MessageContext, PagePrompt, Prompt,
88
+ DocumentFamilyStatistics, MessageContext, PagePrompt, Prompt, GuidanceSet, PageGuidanceSet,
89
89
  )
90
90
 
91
91
  logger = logging.getLogger()
@@ -1988,6 +1988,32 @@ class ProjectDocumentStoresEndpoint(ProjectResourceEndpoint):
1988
1988
  return DocumentStoreEndpoint
1989
1989
 
1990
1990
 
1991
+ class GuidanceSetEndpoint(ComponentInstanceEndpoint, GuidanceSet):
1992
+
1993
+ def get_type(self) -> str:
1994
+ """
1995
+ Get the type of the endpoint.
1996
+
1997
+ Returns:
1998
+ str: The type of the endpoint, "guidance".
1999
+ """
2000
+ return "guidance"
2001
+
2002
+
2003
+ class PageGuidanceSetEndpoint(PageGuidanceSet, GuidanceSetEndpoint):
2004
+ """Handles the endpoint for the Page GuidanceSetEndpoint
2005
+
2006
+ This class inherits from both the GuidanceSetEndpoint and PagePrompt classes.
2007
+ Currently, it doesn't add any additional functionality to its parent classes.
2008
+
2009
+ Note:
2010
+ This class is currently a placeholder and may have additional methods and attributes
2011
+ added in the future.
2012
+ """
2013
+
2014
+ pass
2015
+
2016
+
1991
2017
  class PromptEndpoint(ComponentInstanceEndpoint, Prompt):
1992
2018
 
1993
2019
  def get_type(self) -> str:
@@ -2805,17 +2831,56 @@ class StoresEndpoint(ComponentEndpoint, ClientEndpoint, OrganizationOwned):
2805
2831
  raise ValueError(f"Unknown store type {object_dict['storeType']}")
2806
2832
 
2807
2833
 
2808
- class PromptsEndpoint(ComponentEndpoint, ClientEndpoint, OrganizationOwned):
2834
+ class GuidanceEndpoint(ComponentEndpoint, ClientEndpoint, OrganizationOwned):
2809
2835
  """
2810
- Represents a prompts endpoint.
2836
+ Represents a guidance endpoint.
2811
2837
 
2812
2838
  This class is used to interact with the prompts endpoint of the API.
2813
2839
  It provides methods to get the type, page class, and instance class of the endpoint,
2814
2840
  as well as to deploy an extension pack from a URL.
2815
2841
  """
2842
+ def get_type(self) -> str:
2843
+ """
2844
+ Get the type of the endpoint.
2816
2845
 
2817
- """Represents an extension packs endpoint"""
2846
+ Returns:
2847
+ str: The type of the endpoint, "prompts".
2848
+ """
2849
+ return "guidance"
2818
2850
 
2851
+ def get_page_class(self, object_dict=None):
2852
+ """
2853
+ Get the page class of the endpoint.
2854
+
2855
+ Args:
2856
+ object_dict (dict, optional): An optional dictionary of objects.
2857
+
2858
+ Returns:
2859
+ PageGuidanceSetEndpoint: The page class of the endpoint.
2860
+ """
2861
+ return PageGuidanceSetEndpoint
2862
+
2863
+ def get_instance_class(self, object_dict=None):
2864
+ """
2865
+ Get the instance class of the endpoint.
2866
+
2867
+ Args:
2868
+ object_dict (dict, optional): An optional dictionary of objects.
2869
+
2870
+ Returns:
2871
+ ExtensionPackEndpoint: The instance class of the endpoint.
2872
+ """
2873
+ return GuidanceSetEndpoint
2874
+
2875
+
2876
+ class PromptsEndpoint(ComponentEndpoint, ClientEndpoint, OrganizationOwned):
2877
+ """
2878
+ Represents a prompts endpoint.
2879
+
2880
+ This class is used to interact with the prompts endpoint of the API.
2881
+ It provides methods to get the type, page class, and instance class of the endpoint,
2882
+ as well as to deploy an extension pack from a URL.
2883
+ """
2819
2884
  def get_type(self) -> str:
2820
2885
  """
2821
2886
  Get the type of the endpoint.
@@ -2845,9 +2910,9 @@ class PromptsEndpoint(ComponentEndpoint, ClientEndpoint, OrganizationOwned):
2845
2910
  object_dict (dict, optional): An optional dictionary of objects.
2846
2911
 
2847
2912
  Returns:
2848
- ExtensionPackEndpoint: The instance class of the endpoint.
2913
+ PromptEndpoint: The instance class of the endpoint.
2849
2914
  """
2850
- return ExtensionPackEndpoint
2915
+ return PromptEndpoint
2851
2916
 
2852
2917
 
2853
2918
  class ExtensionPacksEndpoint(ComponentEndpoint, ClientEndpoint, OrganizationOwned):
@@ -5710,6 +5775,18 @@ OBJECT_TYPES = {
5710
5775
  "type": ActionEndpoint,
5711
5776
  "endpoint": ActionsEndpoint,
5712
5777
  },
5778
+ "prompts": {
5779
+ "name": "prompt",
5780
+ "plural": "prompts",
5781
+ "type": PromptEndpoint,
5782
+ "endpoint": PromptsEndpoint,
5783
+ },
5784
+ "guidance": {
5785
+ "name": "guidance",
5786
+ "plural": "guidance",
5787
+ "type": GuidanceSetEndpoint,
5788
+ "endpoint": GuidanceEndpoint,
5789
+ },
5713
5790
  "modelRuntimes": {
5714
5791
  "name": "modelRuntime",
5715
5792
  "plural": "modelRuntimes",
@@ -6511,7 +6588,9 @@ class KodexaClient:
6511
6588
  "assistant": AssistantDefinitionEndpoint,
6512
6589
  "exception": DataExceptionEndpoint,
6513
6590
  "workspace": WorkspaceEndpoint,
6514
- "message": MessageEndpoint,
6591
+ "message": MessageEndpoint,
6592
+ "prompt": PromptEndpoint,
6593
+ "guidance": GuidanceSetEndpoint,
6515
6594
  }
6516
6595
 
6517
6596
  if component_type in known_components:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.0.7435066045
3
+ Version: 7.0.7436815088
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=CaZK8nMhT1LdCpt4aLhebJGcorjq9qRID1FjnXnP14M,521
8
8
  kodexa/model/model.py,sha256=GIHdQkFhE2xu8oLBgSXhZ_bvECcnS6_qrqwCtSbqnZI,114148
9
- kodexa/model/objects.py,sha256=eNCOr8ruTf6dsvxxawaMk2Dqljhm101LKJXfLK1iEKw,157247
9
+ kodexa/model/objects.py,sha256=uXtd4hhgs_dpSRxZXYoUBiMR-AJyDBDxajYiQNlSV2o,167809
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=zlBN4rF_axfvnJLo0e7-gMUqwckigDKK8qbld7nywgk,206143
14
+ kodexa/platform/client.py,sha256=LBp5OCjaeYj8RC9eFUdaSl-2qJZnWKw4KK_d38K6CIE,208431
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.7435066045.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
38
- kodexa-7.0.7435066045.dist-info/METADATA,sha256=0TdiQkknb28yBuph9RxIZig4hUNn9cKrlo8kqb-XcnA,4067
39
- kodexa-7.0.7435066045.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
40
- kodexa-7.0.7435066045.dist-info/RECORD,,
37
+ kodexa-7.0.7436815088.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
38
+ kodexa-7.0.7436815088.dist-info/METADATA,sha256=6R2PkNPeCjM876atGhcrxJSfULh-MUk_NWSgtmBcKUc,4067
39
+ kodexa-7.0.7436815088.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
40
+ kodexa-7.0.7436815088.dist-info/RECORD,,