uncertainty-engine-types 0.7.0__py3-none-any.whl → 0.9.0__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.
@@ -1,19 +1,40 @@
1
- from pydantic import BaseModel
1
+ from pydantic import BaseModel, ConfigDict
2
2
 
3
- from .node_info import NodeInfo
3
+ from uncertainty_engine_types.node_info import NodeInfo
4
4
 
5
5
 
6
6
  class UserContext(BaseModel):
7
7
  email: str
8
8
  project_id: str
9
9
  cost_code: str
10
+ user_id: str | None = None
10
11
 
11
12
 
12
13
  class Context(BaseModel):
14
+ """The context around an Uncertainty Engine node execution."""
15
+
13
16
  sync: bool
17
+ """Whether to run the node synchronously."""
18
+
14
19
  job_id: str
20
+ """The node execution job ID."""
21
+
15
22
  queue_url: str
23
+ """The node queue URL."""
24
+
16
25
  cache_url: str
26
+ """The node cache URL."""
27
+
17
28
  timeout: int
29
+ """The node timeout in seconds."""
30
+
18
31
  nodes: dict[str, NodeInfo]
32
+ """Dictionary of nodes and their runtime details."""
33
+
19
34
  user: UserContext
35
+ """The context around the user executing the node."""
36
+
37
+ is_root: bool = False
38
+ """Indicates whether a node is the root node of a workflow."""
39
+
40
+ model_config = ConfigDict(use_attribute_docstrings=True)
@@ -1 +1 @@
1
- __version__ = "0.7.0"
1
+ __version__ = "0.9.0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: uncertainty-engine-types
3
- Version: 0.7.0
3
+ Version: 0.9.0
4
4
  Summary: Common type definitions for the Uncertainty Engine
5
5
  Author: Freddy Wordingham
6
6
  Author-email: freddy@digilab.ai
@@ -1,8 +1,7 @@
1
1
  uncertainty_engine_types/__init__.py,sha256=QxuxItecFrZwOKNgPrdIO7i-YnEH3QAT3__86eTqSV8,1948
2
2
  uncertainty_engine_types/chat_history.py,sha256=OY1fZXP7_AtPKEmgjxh60PlbEGtQWJWafZMgs2Ec0BU,121
3
- uncertainty_engine_types/context.py,sha256=1iDcfMLi_fKh_YVUAKif2NOdrA_vuXOQvBZKbF4uJZk,317
3
+ uncertainty_engine_types/context.py,sha256=gi1izptPe05ksem5TGZNIzgzO_QmomzXwTGqvB5I9Sc,914
4
4
  uncertainty_engine_types/dataset.py,sha256=sDpQu5X3KxJ1lNkZOwhppJ2SY0Cv19cbcYfGpp_hyUQ,75
5
- uncertainty_engine_types/distributions.py,sha256=k9T1PmLFYJUSEYeml8vrM48vdF3Yio4679_E9twdZS4,198
6
5
  uncertainty_engine_types/embeddings.py,sha256=sNDWjpuqmzOefKyQX--9EpdeTEyI4kQeSH4IELVUT7g,982
7
6
  uncertainty_engine_types/execution_error.py,sha256=tvIBuZPM8UhFUERHCEqoW8blAYYuBq1ZqidO0i_BCGs,105
8
7
  uncertainty_engine_types/file.py,sha256=J202bhOIVnvvvAG54sXyYF8fwjZGTUP3097ARnRnb3Q,579
@@ -22,7 +21,7 @@ uncertainty_engine_types/token.py,sha256=4tQQkvl-zsYoVk8ZEx0cB2JiU0VDRJ6uUe76XBX
22
21
  uncertainty_engine_types/uncertainty_plot.py,sha256=kJr0SuJ6JeTxaf2adpDNWqx7vVLZRpKG8tFbdx90pas,547
23
22
  uncertainty_engine_types/utils.py,sha256=72QVig8Kb5uIR-e1nofm-3x9CouebdQJIruDbq-aIn0,271
24
23
  uncertainty_engine_types/vector_store.py,sha256=9fYPJ04jWcy2DruyUSjiKQAgmqq-wgeAi5dBIrAOm30,392
25
- uncertainty_engine_types/version.py,sha256=RaANGbRu5e-vehwXI1-Qe2ggPPfs1TQaZj072JdbLk4,22
26
- uncertainty_engine_types-0.7.0.dist-info/METADATA,sha256=0t50EYJpW4a2LeueibBBfQcX2hpJ0r4t2he5TMkVAFg,2815
27
- uncertainty_engine_types-0.7.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
28
- uncertainty_engine_types-0.7.0.dist-info/RECORD,,
24
+ uncertainty_engine_types/version.py,sha256=H9NWRZb7NbeRRPLP_V1fARmLNXranorVM-OOY-8_2ug,22
25
+ uncertainty_engine_types-0.9.0.dist-info/METADATA,sha256=NQnQZh0dJ5ntXnaAO8azV2gg0yKsPHoLUVAOIbLPF3U,2815
26
+ uncertainty_engine_types-0.9.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
27
+ uncertainty_engine_types-0.9.0.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- from pydantic import BaseModel
2
-
3
-
4
- class Distribution(BaseModel):
5
- type: str
6
- parameters: dict[str, float]
7
-
8
-
9
- class ParameterDistribution(BaseModel):
10
- name: str
11
- distribution: Distribution