uncertainty-engine-types 0.0.7__tar.gz → 0.0.8__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.
Files changed (24) hide show
  1. {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.8}/PKG-INFO +1 -1
  2. {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.8}/pyproject.toml +1 -1
  3. {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.8}/uncertainty_engine_types/__init__.py +4 -7
  4. uncertainty_engine_types-0.0.8/uncertainty_engine_types/utils.py +9 -0
  5. uncertainty_engine_types-0.0.8/uncertainty_engine_types/version.py +1 -0
  6. uncertainty_engine_types-0.0.7/uncertainty_engine_types/document.py +0 -29
  7. uncertainty_engine_types-0.0.7/uncertainty_engine_types/tabular_data.py +0 -5
  8. uncertainty_engine_types-0.0.7/uncertainty_engine_types/version.py +0 -1
  9. {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.8}/README.md +0 -0
  10. {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.8}/uncertainty_engine_types/context.py +0 -0
  11. {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.8}/uncertainty_engine_types/conversation.py +0 -0
  12. {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.8}/uncertainty_engine_types/execution_error.py +0 -0
  13. {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.8}/uncertainty_engine_types/file.py +0 -0
  14. {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.8}/uncertainty_engine_types/graph.py +0 -0
  15. {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.8}/uncertainty_engine_types/handle.py +0 -0
  16. {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.8}/uncertainty_engine_types/job.py +0 -0
  17. {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.8}/uncertainty_engine_types/llm.py +0 -0
  18. {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.8}/uncertainty_engine_types/message.py +0 -0
  19. {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.8}/uncertainty_engine_types/model.py +0 -0
  20. {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.8}/uncertainty_engine_types/node_info.py +0 -0
  21. {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.8}/uncertainty_engine_types/sensor_designer.py +0 -0
  22. {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.8}/uncertainty_engine_types/sql.py +0 -0
  23. {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.8}/uncertainty_engine_types/token.py +0 -0
  24. {uncertainty_engine_types-0.0.7 → uncertainty_engine_types-0.0.8}/uncertainty_engine_types/vector_store.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: uncertainty-engine-types
3
- Version: 0.0.7
3
+ Version: 0.0.8
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
1
  [project]
2
2
  name = "uncertainty-engine-types"
3
- version = "0.0.7"
3
+ version = "0.0.8"
4
4
  description = "Common type definitions for the Uncertainty Engine"
5
5
  authors = [
6
6
  { name = "Freddy Wordingham", email = "freddy@digilab.ai" },
@@ -1,15 +1,15 @@
1
+ from . import utils
1
2
  from .context import Context
2
3
  from .conversation import Conversation
3
- from .document import Document, FileLocation, FileType
4
4
  from .execution_error import ExecutionError
5
5
  from .file import (
6
- PDF,
7
6
  Document,
8
7
  File,
9
8
  FileLocation,
10
9
  Image,
11
10
  LocalStorage,
12
11
  Mesh,
12
+ PDF,
13
13
  S3Storage,
14
14
  SQLTable,
15
15
  TabularData,
@@ -24,22 +24,19 @@ from .model import MachineLearningModel
24
24
  from .node_info import NodeInfo, NodeInputInfo, NodeOutputInfo
25
25
  from .sensor_designer import SensorDesigner
26
26
  from .sql import SQLConfig, SQLKind
27
- from .tabular_data import TabularData
28
27
  from .token import Token
29
28
  from .vector_store import VectorStoreConfig, VectorStoreProvider
30
29
  from .version import __version__
31
30
 
31
+
32
32
  __all__ = [
33
33
  "__version__",
34
34
  "Context",
35
35
  "Conversation",
36
36
  "Document",
37
- "Document",
38
37
  "ExecutionError",
39
38
  "File",
40
39
  "FileLocation",
41
- "FileLocation",
42
- "FileType",
43
40
  "Graph",
44
41
  "Handle",
45
42
  "Image",
@@ -64,9 +61,9 @@ __all__ = [
64
61
  "SQLKind",
65
62
  "SQLTable",
66
63
  "TabularData",
67
- "TabularData",
68
64
  "TargetHandle",
69
65
  "Token",
66
+ "utils",
70
67
  "VectorStoreConfig",
71
68
  "VectorStoreProvider",
72
69
  "WebPage",
@@ -0,0 +1,9 @@
1
+ from pydantic import ValidationError
2
+
3
+
4
+ def format_pydantic_errors(e: ValidationError) -> str:
5
+ msgs = []
6
+ for error in e.errors():
7
+ loc = " -> ".join(map(str, error["loc"]))
8
+ msgs.append(f"Error at '{loc}': {error['msg']}")
9
+ return "\n".join(msgs)
@@ -0,0 +1 @@
1
+ __version__ = "0.0.8"
@@ -1,29 +0,0 @@
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
@@ -1,5 +0,0 @@
1
- from pydantic import BaseModel
2
-
3
-
4
- class TabularData(BaseModel):
5
- csv: str
@@ -1 +0,0 @@
1
- __version__ = "0.0.7"