uncertainty-engine-types 0.0.4__tar.gz → 0.0.6__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 (21) hide show
  1. {uncertainty_engine_types-0.0.4 → uncertainty_engine_types-0.0.6}/PKG-INFO +7 -27
  2. {uncertainty_engine_types-0.0.4 → uncertainty_engine_types-0.0.6}/README.md +6 -26
  3. {uncertainty_engine_types-0.0.4 → uncertainty_engine_types-0.0.6}/pyproject.toml +1 -1
  4. {uncertainty_engine_types-0.0.4 → uncertainty_engine_types-0.0.6}/uncertainty_engine_types/__init__.py +5 -2
  5. uncertainty_engine_types-0.0.6/uncertainty_engine_types/job.py +18 -0
  6. {uncertainty_engine_types-0.0.4 → uncertainty_engine_types-0.0.6}/uncertainty_engine_types/model.py +1 -1
  7. {uncertainty_engine_types-0.0.4 → uncertainty_engine_types-0.0.6}/uncertainty_engine_types/node_info.py +4 -7
  8. uncertainty_engine_types-0.0.6/uncertainty_engine_types/version.py +1 -0
  9. uncertainty_engine_types-0.0.4/uncertainty_engine_types/version.py +0 -1
  10. {uncertainty_engine_types-0.0.4 → uncertainty_engine_types-0.0.6}/uncertainty_engine_types/context.py +0 -0
  11. {uncertainty_engine_types-0.0.4 → uncertainty_engine_types-0.0.6}/uncertainty_engine_types/conversation.py +0 -0
  12. {uncertainty_engine_types-0.0.4 → uncertainty_engine_types-0.0.6}/uncertainty_engine_types/execution_error.py +0 -0
  13. {uncertainty_engine_types-0.0.4 → uncertainty_engine_types-0.0.6}/uncertainty_engine_types/graph.py +0 -0
  14. {uncertainty_engine_types-0.0.4 → uncertainty_engine_types-0.0.6}/uncertainty_engine_types/handle.py +0 -0
  15. {uncertainty_engine_types-0.0.4 → uncertainty_engine_types-0.0.6}/uncertainty_engine_types/llm.py +0 -0
  16. {uncertainty_engine_types-0.0.4 → uncertainty_engine_types-0.0.6}/uncertainty_engine_types/message.py +0 -0
  17. {uncertainty_engine_types-0.0.4 → uncertainty_engine_types-0.0.6}/uncertainty_engine_types/sensor_designer.py +0 -0
  18. {uncertainty_engine_types-0.0.4 → uncertainty_engine_types-0.0.6}/uncertainty_engine_types/sql.py +0 -0
  19. {uncertainty_engine_types-0.0.4 → uncertainty_engine_types-0.0.6}/uncertainty_engine_types/tabular_data.py +0 -0
  20. {uncertainty_engine_types-0.0.4 → uncertainty_engine_types-0.0.6}/uncertainty_engine_types/token.py +0 -0
  21. {uncertainty_engine_types-0.0.4 → uncertainty_engine_types-0.0.6}/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.4
3
+ Version: 0.0.6
4
4
  Summary: Common type definitions for the Uncertainty Engine
5
5
  Author: Freddy Wordingham
6
6
  Author-email: freddy@digilab.ai
@@ -45,15 +45,9 @@ This library should be used by other packages to ensure consistency in the types
45
45
 
46
46
  ### Language Learning Models (LLMs)
47
47
 
48
- - **LLM**
49
- Abstract base class for language learning models.
50
- - **OpenAILLM**
51
- LLM implementation using OpenAI.
52
- - **OllamaLLM**
53
- LLM implementation using Ollama.
54
48
  - **LLMProvider**
55
49
  Enum listing supported LLM providers.
56
- - **LLMManager**
50
+ - **LLMConfig**
57
51
  Manages connections to LLMs based on the chosen provider and configuration.
58
52
 
59
53
  ### Messaging
@@ -63,10 +57,8 @@ This library should be used by other packages to ensure consistency in the types
63
57
 
64
58
  ### TwinLab Models
65
59
 
66
- - **TwinLabModel**
60
+ - **MachineLearningModel**
67
61
  Represents a model configuration including metadata.
68
- - **save_model**
69
- Function to persist a model configuration.
70
62
 
71
63
  ### Node Metadata
72
64
 
@@ -86,14 +78,10 @@ This library should be used by other packages to ensure consistency in the types
86
78
 
87
79
  ### SQL Database Types
88
80
 
89
- - **SQLDatabase**
90
- Abstract base class for executing SQL queries.
91
- - **PostgreSQL**
92
- Implementation of SQLDatabase for PostgreSQL.
93
81
  - **SQLKind**
94
82
  Enum listing supported SQL database types.
95
- - **SQLManager**
96
- Manages connections and operations for SQL databases.
83
+ - **SQLConfig**
84
+ Configures connections and operations for SQL databases.
97
85
 
98
86
  ### Tabular Data
99
87
 
@@ -107,16 +95,8 @@ This library should be used by other packages to ensure consistency in the types
107
95
 
108
96
  ### Vector Stores
109
97
 
110
- - **VectorStoreConnection**
111
- Abstract base class for vector store operations.
112
- - **WeaviateVectorStoreConnection**
113
- Implements a connection to a Weaviate vector store.
114
98
  - **VectorStoreProvider**
115
99
  Enum for supported vector store providers.
116
- - **VectorStoreManager**
117
- Manages connections to vector stores.
118
- - **get_persistent_vector_store**
119
- Function to establish a persistent connection to a Weaviate vector store.
120
- - **get_embedding_function**
121
- Retrieves an embedding function based on configuration, supporting both HuggingFace and OpenAI options.
100
+ - **VectorStoreConfig**
101
+ Configures connections to vector stores.
122
102
 
@@ -30,15 +30,9 @@ This library should be used by other packages to ensure consistency in the types
30
30
 
31
31
  ### Language Learning Models (LLMs)
32
32
 
33
- - **LLM**
34
- Abstract base class for language learning models.
35
- - **OpenAILLM**
36
- LLM implementation using OpenAI.
37
- - **OllamaLLM**
38
- LLM implementation using Ollama.
39
33
  - **LLMProvider**
40
34
  Enum listing supported LLM providers.
41
- - **LLMManager**
35
+ - **LLMConfig**
42
36
  Manages connections to LLMs based on the chosen provider and configuration.
43
37
 
44
38
  ### Messaging
@@ -48,10 +42,8 @@ This library should be used by other packages to ensure consistency in the types
48
42
 
49
43
  ### TwinLab Models
50
44
 
51
- - **TwinLabModel**
45
+ - **MachineLearningModel**
52
46
  Represents a model configuration including metadata.
53
- - **save_model**
54
- Function to persist a model configuration.
55
47
 
56
48
  ### Node Metadata
57
49
 
@@ -71,14 +63,10 @@ This library should be used by other packages to ensure consistency in the types
71
63
 
72
64
  ### SQL Database Types
73
65
 
74
- - **SQLDatabase**
75
- Abstract base class for executing SQL queries.
76
- - **PostgreSQL**
77
- Implementation of SQLDatabase for PostgreSQL.
78
66
  - **SQLKind**
79
67
  Enum listing supported SQL database types.
80
- - **SQLManager**
81
- Manages connections and operations for SQL databases.
68
+ - **SQLConfig**
69
+ Configures connections and operations for SQL databases.
82
70
 
83
71
  ### Tabular Data
84
72
 
@@ -92,15 +80,7 @@ This library should be used by other packages to ensure consistency in the types
92
80
 
93
81
  ### Vector Stores
94
82
 
95
- - **VectorStoreConnection**
96
- Abstract base class for vector store operations.
97
- - **WeaviateVectorStoreConnection**
98
- Implements a connection to a Weaviate vector store.
99
83
  - **VectorStoreProvider**
100
84
  Enum for supported vector store providers.
101
- - **VectorStoreManager**
102
- Manages connections to vector stores.
103
- - **get_persistent_vector_store**
104
- Function to establish a persistent connection to a Weaviate vector store.
105
- - **get_embedding_function**
106
- Retrieves an embedding function based on configuration, supporting both HuggingFace and OpenAI options.
85
+ - **VectorStoreConfig**
86
+ Configures connections to vector stores.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "uncertainty-engine-types"
3
- version = "0.0.4"
3
+ version = "0.0.6"
4
4
  description = "Common type definitions for the Uncertainty Engine"
5
5
  authors = [
6
6
  { name = "Freddy Wordingham", email = "freddy@digilab.ai" },
@@ -3,9 +3,10 @@ from .conversation import Conversation
3
3
  from .execution_error import ExecutionError
4
4
  from .graph import Graph, NodeElement, NodeId, SourceHandle, TargetHandle
5
5
  from .handle import Handle
6
+ from .job import JobInfo, JobStatus
6
7
  from .llm import LLMConfig, LLMProvider
7
8
  from .message import Message
8
- from .model import TwinLabModel
9
+ from .model import MachineLearningModel
9
10
  from .node_info import NodeInfo, NodeInputInfo, NodeOutputInfo, Versions
10
11
  from .sensor_designer import SensorDesigner
11
12
  from .sql import SQLConfig, SQLKind
@@ -22,8 +23,11 @@ __all__ = [
22
23
  "ExecutionError",
23
24
  "Graph",
24
25
  "Handle",
26
+ "JobInfo",
27
+ "JobStatus",
25
28
  "LLMConfig",
26
29
  "LLMProvider",
30
+ "MachineLearningModel",
27
31
  "Message",
28
32
  "NodeElement",
29
33
  "NodeId",
@@ -37,7 +41,6 @@ __all__ = [
37
41
  "TabularData",
38
42
  "TargetHandle",
39
43
  "Token",
40
- "TwinLabModel",
41
44
  "VectorStoreConfig",
42
45
  "VectorStoreProvider",
43
46
  "Versions",
@@ -0,0 +1,18 @@
1
+ from enum import StrEnum
2
+ from typing import Optional
3
+
4
+ from pydantic import BaseModel
5
+
6
+
7
+ class JobStatus(StrEnum):
8
+ PENDING = "pending"
9
+ RUNNING = "running"
10
+ COMPLETED = "completed"
11
+ FAILED = "failed"
12
+
13
+
14
+ class JobInfo(BaseModel):
15
+ status: JobStatus
16
+ message: Optional[str] = None
17
+ inputs: dict
18
+ outputs: Optional[dict] = None
@@ -1,7 +1,7 @@
1
1
  from pydantic import BaseModel, ConfigDict
2
2
 
3
3
 
4
- class TwinLabModel(BaseModel):
4
+ class MachineLearningModel(BaseModel):
5
5
  model_type: str
6
6
  config: dict
7
7
  metadata: dict
@@ -5,12 +5,6 @@ from pydantic import BaseModel
5
5
  from .version import __version__
6
6
 
7
7
 
8
- class Versions(BaseModel):
9
- base_image: str
10
- types_lib: str = __version__
11
- node: str
12
-
13
-
14
8
  class NodeInputInfo(BaseModel):
15
9
  type: str
16
10
  label: str
@@ -36,6 +30,9 @@ class NodeInfo(BaseModel):
36
30
  cost: int
37
31
  inputs: dict[str, NodeInputInfo]
38
32
  outputs: dict[str, NodeOutputInfo] = {}
33
+ load_balancer_url: Optional[str] = None
39
34
  queue_url: Optional[str] = None
40
35
  cache_url: Optional[str] = None
41
- versions: Versions
36
+ version_types_lib: str = __version__
37
+ version_base_image: int
38
+ version_node: int
@@ -0,0 +1 @@
1
+ __version__ = "0.0.6"
@@ -1 +0,0 @@
1
- __version__ = "0.0.4"