uncertainty-engine-types 0.15.0__tar.gz → 0.16.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.15.0 → uncertainty_engine_types-0.16.0}/PKG-INFO +1 -1
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/pyproject.toml +1 -1
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/__init__.py +2 -0
- uncertainty_engine_types-0.16.0/uncertainty_engine_types/tool_metadata.py +41 -0
- uncertainty_engine_types-0.16.0/uncertainty_engine_types/version.py +1 -0
- uncertainty_engine_types-0.15.0/uncertainty_engine_types/version.py +0 -1
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/README.md +0 -0
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/chat_history.py +0 -0
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/context.py +0 -0
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/dataset.py +0 -0
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/embeddings.py +0 -0
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/execution_error.py +0 -0
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/file.py +0 -0
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/graph.py +0 -0
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/handle.py +0 -0
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/id.py +0 -0
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/job.py +0 -0
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/llm.py +0 -0
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/message.py +0 -0
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/model.py +0 -0
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/model_config.py +0 -0
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/node_info.py +0 -0
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/prompt.py +0 -0
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/run_workflow.py +0 -0
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/sensor_designer.py +0 -0
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/sql.py +0 -0
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/token.py +0 -0
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/uncertainty_plot.py +0 -0
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/utils.py +0 -0
- {uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/vector_store.py +0 -0
|
@@ -50,6 +50,7 @@ from uncertainty_engine_types.run_workflow import (
|
|
|
50
50
|
from uncertainty_engine_types.sensor_designer import SensorDesigner
|
|
51
51
|
from uncertainty_engine_types.sql import SQLConfig, SQLKind
|
|
52
52
|
from uncertainty_engine_types.token import Token
|
|
53
|
+
from uncertainty_engine_types.tool_metadata import ToolMetadata
|
|
53
54
|
from uncertainty_engine_types.uncertainty_plot import UncertaintyPlot
|
|
54
55
|
from uncertainty_engine_types.vector_store import VectorStoreConfig, VectorStoreProvider
|
|
55
56
|
from uncertainty_engine_types.version import __version__
|
|
@@ -105,4 +106,5 @@ __all__ = [
|
|
|
105
106
|
"OverrideWorkflowInput",
|
|
106
107
|
"OverrideWorkflowOutput",
|
|
107
108
|
"RunWorkflowRequest",
|
|
109
|
+
"ToolMetadata",
|
|
108
110
|
]
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
from pydantic import BaseModel, Field
|
|
2
|
+
|
|
3
|
+
from uncertainty_engine_types import NodeInputInfo, NodeOutputInfo
|
|
4
|
+
|
|
5
|
+
NodeId = str
|
|
6
|
+
"""Unique ID of a Uncertainty Engine node. Eg `label` field in the SDK"""
|
|
7
|
+
HandleLabel = str
|
|
8
|
+
"""Unique ID of a handle to a given node. Eg `input_variance`"""
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ToolMetadata(BaseModel):
|
|
12
|
+
"""Tool metadata."""
|
|
13
|
+
|
|
14
|
+
inputs: dict[NodeId, dict[HandleLabel, NodeInputInfo]] = Field(default_factory=dict)
|
|
15
|
+
"""Defines which inputs on a workflow can be used as Tool Inputs"""
|
|
16
|
+
outputs: dict[NodeId, dict[HandleLabel, NodeOutputInfo]] = Field(
|
|
17
|
+
default_factory=dict
|
|
18
|
+
)
|
|
19
|
+
"""Defines which outputs on a workflow can be used as Tool outputs"""
|
|
20
|
+
|
|
21
|
+
def is_empty(self) -> bool:
|
|
22
|
+
"""Check if the metadata is completely empty"""
|
|
23
|
+
return not self.inputs and not self.outputs
|
|
24
|
+
|
|
25
|
+
def has_partial_data(self) -> bool:
|
|
26
|
+
"""Check if only inputs or only outputs are defined"""
|
|
27
|
+
return bool(self.inputs) != bool(self.outputs)
|
|
28
|
+
|
|
29
|
+
def validate_complete(self) -> None:
|
|
30
|
+
"""
|
|
31
|
+
Validate that tool metadata is complete (has both inputs and outputs).
|
|
32
|
+
|
|
33
|
+
Raises:
|
|
34
|
+
ValueError: If metadata has only inputs or only outputs
|
|
35
|
+
"""
|
|
36
|
+
if self.has_partial_data():
|
|
37
|
+
raise ValueError(
|
|
38
|
+
"Tool metadata must have both inputs AND outputs defined. "
|
|
39
|
+
f"Currently has: inputs={'yes' if self.inputs else 'no'}, "
|
|
40
|
+
f"outputs={'yes' if self.outputs else 'no'}"
|
|
41
|
+
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.16.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.15.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/file.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/id.py
RENAMED
|
File without changes
|
{uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/job.py
RENAMED
|
File without changes
|
{uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/llm.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{uncertainty_engine_types-0.15.0 → uncertainty_engine_types-0.16.0}/uncertainty_engine_types/sql.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|