uncertainty-engine-types 0.0.13__py3-none-any.whl → 0.1.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,6 +1,6 @@
1
1
  from . import utils
2
2
  from .chat_history import ChatHistory
3
- from .context import Context
3
+ from .context import Context, UserContext
4
4
  from .dataset import CSVDataset
5
5
  from .embeddings import TextEmbeddingsConfig, TextEmbeddingsProvider
6
6
  from .execution_error import ExecutionError
@@ -25,7 +25,7 @@ from .llm import LLMConfig, LLMProvider
25
25
  from .message import Message
26
26
  from .model import MachineLearningModel
27
27
  from .model_config import ModelConfig
28
- from .node_info import NodeInfo, NodeInputInfo, NodeOutputInfo
28
+ from .node_info import NodeInfo, NodeInputInfo, NodeOutputInfo, NodeRequirementsInfo
29
29
  from .prompt import Prompt
30
30
  from .sensor_designer import SensorDesigner
31
31
  from .sql import SQLConfig, SQLKind
@@ -60,6 +60,7 @@ __all__ = [
60
60
  "NodeInfo",
61
61
  "NodeInputInfo",
62
62
  "NodeOutputInfo",
63
+ "NodeRequirementsInfo",
63
64
  "PDF",
64
65
  "Prompt",
65
66
  "ResourceID",
@@ -74,6 +75,7 @@ __all__ = [
74
75
  "TextEmbeddingsConfig",
75
76
  "TextEmbeddingsProvider",
76
77
  "Token",
78
+ "UserContext",
77
79
  "UncertaintyPlot",
78
80
  "utils",
79
81
  "VectorStoreConfig",
@@ -3,6 +3,12 @@ from pydantic import BaseModel
3
3
  from .node_info import NodeInfo
4
4
 
5
5
 
6
+ class UserContext(BaseModel):
7
+ email: str
8
+ project_id: str
9
+ cost_code: str
10
+
11
+
6
12
  class Context(BaseModel):
7
13
  sync: bool
8
14
  job_id: str
@@ -10,3 +16,4 @@ class Context(BaseModel):
10
16
  cache_url: str
11
17
  timeout: int
12
18
  nodes: dict[str, NodeInfo]
19
+ user: UserContext
@@ -20,7 +20,24 @@ class NodeOutputInfo(BaseModel):
20
20
  description: str
21
21
 
22
22
 
23
- class NodeInfo(BaseModel):
23
+ class NodeRequirementsInfo(BaseModel):
24
+ cpu: int
25
+ gpu: bool
26
+ memory: int
27
+ timeout: int
28
+
29
+
30
+ class NodeInfo(BaseModel, extra="allow"):
31
+ """
32
+ Node information.
33
+ """
34
+
35
+ # New properties must be added as optional. The Node Registry uses this
36
+ # model and must support Nodes that don't provide a full set of details.
37
+ #
38
+ # Likewise, the `extra="allow"` argument allows the Node Registry to
39
+ # deserialise `NodeInfo` models with properties added post-release.
40
+
24
41
  id: str
25
42
  label: str
26
43
  category: str
@@ -30,6 +47,11 @@ class NodeInfo(BaseModel):
30
47
  cost: int
31
48
  inputs: dict[str, NodeInputInfo]
32
49
  outputs: dict[str, NodeOutputInfo] = {}
50
+ requirements: Optional[NodeRequirementsInfo] = None
51
+ """
52
+ Deployment requirements.
53
+ """
54
+
33
55
  load_balancer_url: Optional[str] = None
34
56
  queue_url: Optional[str] = None
35
57
  cache_url: Optional[str] = None
@@ -1 +1 @@
1
- __version__ = "0.0.13"
1
+ __version__ = "0.1.0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: uncertainty-engine-types
3
- Version: 0.0.13
3
+ Version: 0.1.0
4
4
  Summary: Common type definitions for the Uncertainty Engine
5
5
  Author: Freddy Wordingham
6
6
  Author-email: freddy@digilab.ai
@@ -1,6 +1,6 @@
1
- uncertainty_engine_types/__init__.py,sha256=yUPp9RpvuwNXZUpmVwcqZ8Q51Oa8d9j0ika5sw0weB0,1866
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=k9rlArn-L2x1P5vWy5khfuqJW5tJOqr3NlhubZCbyG4,209
3
+ uncertainty_engine_types/context.py,sha256=1iDcfMLi_fKh_YVUAKif2NOdrA_vuXOQvBZKbF4uJZk,317
4
4
  uncertainty_engine_types/dataset.py,sha256=sDpQu5X3KxJ1lNkZOwhppJ2SY0Cv19cbcYfGpp_hyUQ,75
5
5
  uncertainty_engine_types/embeddings.py,sha256=sNDWjpuqmzOefKyQX--9EpdeTEyI4kQeSH4IELVUT7g,982
6
6
  uncertainty_engine_types/execution_error.py,sha256=tvIBuZPM8UhFUERHCEqoW8blAYYuBq1ZqidO0i_BCGs,105
@@ -13,7 +13,7 @@ uncertainty_engine_types/llm.py,sha256=Ae7dw1R5RKLJHFjNwBzynLd-ddikKP0NsvHvoMdmn
13
13
  uncertainty_engine_types/message.py,sha256=5IY-S6Ipt6oYmnVSkRVv3QLSH-lKQvpxp_qF5YGSbok,209
14
14
  uncertainty_engine_types/model.py,sha256=O9E_7DE9AKEc1o2VnhpUyl3Quh4sGdV43gqDJwk-y68,196
15
15
  uncertainty_engine_types/model_config.py,sha256=AeN5oR06uZJMGoAJoaI_Ix4nCy5nNcU2Wh69ijP39rQ,286
16
- uncertainty_engine_types/node_info.py,sha256=2p87fCdX_CrdT2ZODtGJ-mR1Mvg46WhaE1GMddaEVak,800
16
+ uncertainty_engine_types/node_info.py,sha256=XHONP6rNbAcLOHFxi-NPl1-UrKAH9P8C1yUr_rDiyCg,1362
17
17
  uncertainty_engine_types/prompt.py,sha256=l__qXytAapKg1Hoaj3RSVYN3rhy638nuUZIS-se0eMc,74
18
18
  uncertainty_engine_types/sensor_designer.py,sha256=hr3ek4_dRjRK0-78uaT6h8-bGUCm7Mfs6mxJSWxE64c,80
19
19
  uncertainty_engine_types/sql.py,sha256=SBzmgMEZ-sa-OBRoZbmKiOqddop4zJixgxx-JCus9fY,298
@@ -21,7 +21,7 @@ uncertainty_engine_types/token.py,sha256=4tQQkvl-zsYoVk8ZEx0cB2JiU0VDRJ6uUe76XBX
21
21
  uncertainty_engine_types/uncertainty_plot.py,sha256=kJr0SuJ6JeTxaf2adpDNWqx7vVLZRpKG8tFbdx90pas,547
22
22
  uncertainty_engine_types/utils.py,sha256=72QVig8Kb5uIR-e1nofm-3x9CouebdQJIruDbq-aIn0,271
23
23
  uncertainty_engine_types/vector_store.py,sha256=9fYPJ04jWcy2DruyUSjiKQAgmqq-wgeAi5dBIrAOm30,392
24
- uncertainty_engine_types/version.py,sha256=SxvRes_80c-42zwvn5BXPvpGVs_EZ69FUEtUBF1k9Ts,23
25
- uncertainty_engine_types-0.0.13.dist-info/METADATA,sha256=lmGp8vQgY44E6PoGzr8CfFz0sjkw05L4ZQZ7yWmPSJw,2816
26
- uncertainty_engine_types-0.0.13.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
27
- uncertainty_engine_types-0.0.13.dist-info/RECORD,,
24
+ uncertainty_engine_types/version.py,sha256=kUR5RAFc7HCeiqdlX36dZOHkUI5wI6V_43RpEcD8b-0,22
25
+ uncertainty_engine_types-0.1.0.dist-info/METADATA,sha256=jvQ6vZ_5TG74GjT0maweL1klrkSWR9iIYgUE8zP0qgs,2815
26
+ uncertainty_engine_types-0.1.0.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
27
+ uncertainty_engine_types-0.1.0.dist-info/RECORD,,