uncertainty-engine-types 0.0.13__tar.gz → 0.1.0__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.
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/PKG-INFO +1 -1
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/pyproject.toml +1 -1
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/__init__.py +4 -2
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/context.py +7 -0
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/node_info.py +23 -1
- uncertainty_engine_types-0.1.0/uncertainty_engine_types/version.py +1 -0
- uncertainty_engine_types-0.0.13/uncertainty_engine_types/version.py +0 -1
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/README.md +0 -0
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/chat_history.py +0 -0
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/dataset.py +0 -0
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/embeddings.py +0 -0
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/execution_error.py +0 -0
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/file.py +0 -0
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/graph.py +0 -0
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/handle.py +0 -0
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/id.py +0 -0
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/job.py +0 -0
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/llm.py +0 -0
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/message.py +0 -0
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/model.py +0 -0
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/model_config.py +0 -0
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/prompt.py +0 -0
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/sensor_designer.py +0 -0
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/sql.py +0 -0
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/token.py +0 -0
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/uncertainty_plot.py +0 -0
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/utils.py +0 -0
- {uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/vector_store.py +0 -0
|
@@ -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
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.0.13"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/file.py
RENAMED
|
File without changes
|
{uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/graph.py
RENAMED
|
File without changes
|
|
File without changes
|
{uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/id.py
RENAMED
|
File without changes
|
{uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/job.py
RENAMED
|
File without changes
|
{uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/llm.py
RENAMED
|
File without changes
|
|
File without changes
|
{uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/sql.py
RENAMED
|
File without changes
|
{uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/token.py
RENAMED
|
File without changes
|
|
File without changes
|
{uncertainty_engine_types-0.0.13 → uncertainty_engine_types-0.1.0}/uncertainty_engine_types/utils.py
RENAMED
|
File without changes
|
|
File without changes
|