uncertainty-engine-types 0.0.6__tar.gz → 0.0.7__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.6 → uncertainty_engine_types-0.0.7}/PKG-INFO +1 -1
- {uncertainty_engine_types-0.0.6 → uncertainty_engine_types-0.0.7}/pyproject.toml +1 -1
- {uncertainty_engine_types-0.0.6 → uncertainty_engine_types-0.0.7}/uncertainty_engine_types/__init__.py +29 -3
- uncertainty_engine_types-0.0.7/uncertainty_engine_types/document.py +29 -0
- uncertainty_engine_types-0.0.7/uncertainty_engine_types/file.py +48 -0
- uncertainty_engine_types-0.0.7/uncertainty_engine_types/handle.py +27 -0
- uncertainty_engine_types-0.0.7/uncertainty_engine_types/version.py +1 -0
- uncertainty_engine_types-0.0.6/uncertainty_engine_types/handle.py +0 -15
- uncertainty_engine_types-0.0.6/uncertainty_engine_types/version.py +0 -1
- {uncertainty_engine_types-0.0.6 → uncertainty_engine_types-0.0.7}/README.md +0 -0
- {uncertainty_engine_types-0.0.6 → uncertainty_engine_types-0.0.7}/uncertainty_engine_types/context.py +0 -0
- {uncertainty_engine_types-0.0.6 → uncertainty_engine_types-0.0.7}/uncertainty_engine_types/conversation.py +0 -0
- {uncertainty_engine_types-0.0.6 → uncertainty_engine_types-0.0.7}/uncertainty_engine_types/execution_error.py +0 -0
- {uncertainty_engine_types-0.0.6 → uncertainty_engine_types-0.0.7}/uncertainty_engine_types/graph.py +0 -0
- {uncertainty_engine_types-0.0.6 → uncertainty_engine_types-0.0.7}/uncertainty_engine_types/job.py +0 -0
- {uncertainty_engine_types-0.0.6 → uncertainty_engine_types-0.0.7}/uncertainty_engine_types/llm.py +0 -0
- {uncertainty_engine_types-0.0.6 → uncertainty_engine_types-0.0.7}/uncertainty_engine_types/message.py +0 -0
- {uncertainty_engine_types-0.0.6 → uncertainty_engine_types-0.0.7}/uncertainty_engine_types/model.py +0 -0
- {uncertainty_engine_types-0.0.6 → uncertainty_engine_types-0.0.7}/uncertainty_engine_types/node_info.py +0 -0
- {uncertainty_engine_types-0.0.6 → uncertainty_engine_types-0.0.7}/uncertainty_engine_types/sensor_designer.py +0 -0
- {uncertainty_engine_types-0.0.6 → uncertainty_engine_types-0.0.7}/uncertainty_engine_types/sql.py +0 -0
- {uncertainty_engine_types-0.0.6 → uncertainty_engine_types-0.0.7}/uncertainty_engine_types/tabular_data.py +0 -0
- {uncertainty_engine_types-0.0.6 → uncertainty_engine_types-0.0.7}/uncertainty_engine_types/token.py +0 -0
- {uncertainty_engine_types-0.0.6 → uncertainty_engine_types-0.0.7}/uncertainty_engine_types/vector_store.py +0 -0
|
@@ -1,13 +1,27 @@
|
|
|
1
1
|
from .context import Context
|
|
2
2
|
from .conversation import Conversation
|
|
3
|
+
from .document import Document, FileLocation, FileType
|
|
3
4
|
from .execution_error import ExecutionError
|
|
5
|
+
from .file import (
|
|
6
|
+
PDF,
|
|
7
|
+
Document,
|
|
8
|
+
File,
|
|
9
|
+
FileLocation,
|
|
10
|
+
Image,
|
|
11
|
+
LocalStorage,
|
|
12
|
+
Mesh,
|
|
13
|
+
S3Storage,
|
|
14
|
+
SQLTable,
|
|
15
|
+
TabularData,
|
|
16
|
+
WebPage,
|
|
17
|
+
)
|
|
4
18
|
from .graph import Graph, NodeElement, NodeId, SourceHandle, TargetHandle
|
|
5
19
|
from .handle import Handle
|
|
6
20
|
from .job import JobInfo, JobStatus
|
|
7
21
|
from .llm import LLMConfig, LLMProvider
|
|
8
22
|
from .message import Message
|
|
9
23
|
from .model import MachineLearningModel
|
|
10
|
-
from .node_info import NodeInfo, NodeInputInfo, NodeOutputInfo
|
|
24
|
+
from .node_info import NodeInfo, NodeInputInfo, NodeOutputInfo
|
|
11
25
|
from .sensor_designer import SensorDesigner
|
|
12
26
|
from .sql import SQLConfig, SQLKind
|
|
13
27
|
from .tabular_data import TabularData
|
|
@@ -15,33 +29,45 @@ from .token import Token
|
|
|
15
29
|
from .vector_store import VectorStoreConfig, VectorStoreProvider
|
|
16
30
|
from .version import __version__
|
|
17
31
|
|
|
18
|
-
|
|
19
32
|
__all__ = [
|
|
20
33
|
"__version__",
|
|
21
34
|
"Context",
|
|
22
35
|
"Conversation",
|
|
36
|
+
"Document",
|
|
37
|
+
"Document",
|
|
23
38
|
"ExecutionError",
|
|
39
|
+
"File",
|
|
40
|
+
"FileLocation",
|
|
41
|
+
"FileLocation",
|
|
42
|
+
"FileType",
|
|
24
43
|
"Graph",
|
|
25
44
|
"Handle",
|
|
45
|
+
"Image",
|
|
26
46
|
"JobInfo",
|
|
27
47
|
"JobStatus",
|
|
28
48
|
"LLMConfig",
|
|
29
49
|
"LLMProvider",
|
|
50
|
+
"LocalStorage",
|
|
30
51
|
"MachineLearningModel",
|
|
52
|
+
"Mesh",
|
|
31
53
|
"Message",
|
|
32
54
|
"NodeElement",
|
|
33
55
|
"NodeId",
|
|
34
56
|
"NodeInfo",
|
|
35
57
|
"NodeInputInfo",
|
|
36
58
|
"NodeOutputInfo",
|
|
59
|
+
"PDF",
|
|
60
|
+
"S3Storage",
|
|
37
61
|
"SensorDesigner",
|
|
38
62
|
"SourceHandle",
|
|
39
63
|
"SQLConfig",
|
|
40
64
|
"SQLKind",
|
|
65
|
+
"SQLTable",
|
|
66
|
+
"TabularData",
|
|
41
67
|
"TabularData",
|
|
42
68
|
"TargetHandle",
|
|
43
69
|
"Token",
|
|
44
70
|
"VectorStoreConfig",
|
|
45
71
|
"VectorStoreProvider",
|
|
46
|
-
"
|
|
72
|
+
"WebPage",
|
|
47
73
|
]
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from enum import StrEnum
|
|
2
|
+
from typing import Optional
|
|
3
|
+
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class FileLocation(StrEnum):
|
|
8
|
+
LOCAL = "local"
|
|
9
|
+
S3 = "s3"
|
|
10
|
+
SQL = "sql"
|
|
11
|
+
WWW = "www"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class FileType(StrEnum):
|
|
15
|
+
CSV = "csv"
|
|
16
|
+
DOCX = "docx"
|
|
17
|
+
PDF = "pdf"
|
|
18
|
+
TXT = "txt"
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class Document(BaseModel):
|
|
22
|
+
"""
|
|
23
|
+
Document identification.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
location: FileLocation
|
|
27
|
+
file_type: FileType
|
|
28
|
+
path: str
|
|
29
|
+
excerpt: Optional[str] = None
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
from typing import Union
|
|
2
|
+
|
|
3
|
+
from pydantic import BaseModel
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class S3Storage(BaseModel):
|
|
7
|
+
bucket: str
|
|
8
|
+
key: str
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class LocalStorage(BaseModel):
|
|
12
|
+
path: str
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
FileLocation = Union[S3Storage, LocalStorage]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class File(BaseModel):
|
|
19
|
+
pass
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class Document(File):
|
|
23
|
+
location: FileLocation
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class Image(File):
|
|
27
|
+
location: FileLocation
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class Mesh(File):
|
|
31
|
+
location: FileLocation
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class PDF(File):
|
|
35
|
+
location: FileLocation
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class SQLTable(File):
|
|
39
|
+
url: str
|
|
40
|
+
query: str
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class TabularData(File):
|
|
44
|
+
location: FileLocation
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class WebPage(File):
|
|
48
|
+
url: str
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from pydantic import BaseModel, model_validator
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class Handle(BaseModel):
|
|
5
|
+
node_name: str
|
|
6
|
+
node_handle: str
|
|
7
|
+
|
|
8
|
+
@model_validator(mode="before")
|
|
9
|
+
@classmethod
|
|
10
|
+
def split_handle(cls, values):
|
|
11
|
+
if isinstance(values, str):
|
|
12
|
+
parts = values.split(".")
|
|
13
|
+
if len(parts) != 2:
|
|
14
|
+
raise ValueError(
|
|
15
|
+
"Handle string must contain exactly one dot ('.') separating node and handle"
|
|
16
|
+
)
|
|
17
|
+
return {"node_name": parts[0], "node_handle": parts[1]}
|
|
18
|
+
return values
|
|
19
|
+
|
|
20
|
+
def __init__(self, *args, **kwargs):
|
|
21
|
+
if args:
|
|
22
|
+
if len(args) == 1 and isinstance(args[0], str):
|
|
23
|
+
# Convert the positional argument to a dict via model_validate
|
|
24
|
+
kwargs = self.__class__.model_validate(args[0]).model_dump()
|
|
25
|
+
else:
|
|
26
|
+
raise TypeError("Invalid positional arguments")
|
|
27
|
+
super().__init__(**kwargs)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.0.7"
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
from pydantic import BaseModel
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class Handle(BaseModel):
|
|
5
|
-
node_name: str
|
|
6
|
-
node_handle: str
|
|
7
|
-
|
|
8
|
-
def __init__(self, handle_str: str):
|
|
9
|
-
if handle_str.count(".") != 1:
|
|
10
|
-
raise ValueError(
|
|
11
|
-
"Handle string must contain exactly one dot ('.') separating node and handle"
|
|
12
|
-
)
|
|
13
|
-
|
|
14
|
-
node_name, node_handle = handle_str.split(".")
|
|
15
|
-
super().__init__(node_name=node_name, node_handle=node_handle)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.0.6"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{uncertainty_engine_types-0.0.6 → uncertainty_engine_types-0.0.7}/uncertainty_engine_types/graph.py
RENAMED
|
File without changes
|
{uncertainty_engine_types-0.0.6 → uncertainty_engine_types-0.0.7}/uncertainty_engine_types/job.py
RENAMED
|
File without changes
|
{uncertainty_engine_types-0.0.6 → uncertainty_engine_types-0.0.7}/uncertainty_engine_types/llm.py
RENAMED
|
File without changes
|
|
File without changes
|
{uncertainty_engine_types-0.0.6 → uncertainty_engine_types-0.0.7}/uncertainty_engine_types/model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{uncertainty_engine_types-0.0.6 → uncertainty_engine_types-0.0.7}/uncertainty_engine_types/sql.py
RENAMED
|
File without changes
|
|
File without changes
|
{uncertainty_engine_types-0.0.6 → uncertainty_engine_types-0.0.7}/uncertainty_engine_types/token.py
RENAMED
|
File without changes
|
|
File without changes
|