uncertainty-engine-types 0.0.9__tar.gz → 0.0.10__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.9 → uncertainty_engine_types-0.0.10}/PKG-INFO +1 -1
- {uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/pyproject.toml +1 -1
- {uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/__init__.py +2 -2
- uncertainty_engine_types-0.0.9/uncertainty_engine_types/conversation.py → uncertainty_engine_types-0.0.10/uncertainty_engine_types/chat_history.py +1 -1
- uncertainty_engine_types-0.0.10/uncertainty_engine_types/message.py +10 -0
- uncertainty_engine_types-0.0.10/uncertainty_engine_types/version.py +1 -0
- uncertainty_engine_types-0.0.9/uncertainty_engine_types/message.py +0 -30
- uncertainty_engine_types-0.0.9/uncertainty_engine_types/version.py +0 -1
- {uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/README.md +0 -0
- {uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/context.py +0 -0
- {uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/dataset.py +0 -0
- {uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/embeddings.py +0 -0
- {uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/execution_error.py +0 -0
- {uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/file.py +0 -0
- {uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/graph.py +0 -0
- {uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/handle.py +0 -0
- {uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/job.py +0 -0
- {uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/llm.py +0 -0
- {uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/model.py +0 -0
- {uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/node_info.py +0 -0
- {uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/sensor_designer.py +0 -0
- {uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/sql.py +0 -0
- {uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/token.py +0 -0
- {uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/utils.py +0 -0
- {uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/vector_store.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from . import utils
|
|
2
|
+
from .chat_history import ChatHistory
|
|
2
3
|
from .context import Context
|
|
3
|
-
from .conversation import Conversation
|
|
4
4
|
from .dataset import CSVDataset
|
|
5
5
|
from .embeddings import TextEmbeddingsConfig, TextEmbeddingsProvider
|
|
6
6
|
from .execution_error import ExecutionError
|
|
@@ -32,8 +32,8 @@ from .version import __version__
|
|
|
32
32
|
|
|
33
33
|
__all__ = [
|
|
34
34
|
"__version__",
|
|
35
|
+
"ChatHistory",
|
|
35
36
|
"Context",
|
|
36
|
-
"Conversation",
|
|
37
37
|
"CSVDataset",
|
|
38
38
|
"Document",
|
|
39
39
|
"ExecutionError",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.0.10"
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
from datetime import datetime
|
|
2
|
-
from typing import Dict, Literal, Sequence, Union
|
|
3
|
-
|
|
4
|
-
from pydantic import BaseModel, model_validator
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Value = Union[str, float, int]
|
|
8
|
-
StructuredOutput = Dict[str, Union[Value, Sequence[Value], Dict[str, Value]]]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class Message(BaseModel):
|
|
12
|
-
role: Literal["instruction", "user", "engine"]
|
|
13
|
-
content: Union[str, StructuredOutput]
|
|
14
|
-
timestamp: datetime
|
|
15
|
-
|
|
16
|
-
@model_validator(mode="before")
|
|
17
|
-
@classmethod
|
|
18
|
-
def validate(cls, values: Dict) -> Dict:
|
|
19
|
-
role = values.get("role")
|
|
20
|
-
content = values.get("content")
|
|
21
|
-
|
|
22
|
-
if role in ["instruction", "user"]:
|
|
23
|
-
if not isinstance(content, str):
|
|
24
|
-
raise ValueError(f"Content must be a string when role is {role}")
|
|
25
|
-
elif role == "engine":
|
|
26
|
-
if not isinstance(content, StructuredOutput):
|
|
27
|
-
raise ValueError(
|
|
28
|
-
"Content must be a structured output when role is engine"
|
|
29
|
-
)
|
|
30
|
-
return values
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.0.9"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/file.py
RENAMED
|
File without changes
|
{uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/graph.py
RENAMED
|
File without changes
|
|
File without changes
|
{uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/job.py
RENAMED
|
File without changes
|
{uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/llm.py
RENAMED
|
File without changes
|
{uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/sql.py
RENAMED
|
File without changes
|
{uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/token.py
RENAMED
|
File without changes
|
{uncertainty_engine_types-0.0.9 → uncertainty_engine_types-0.0.10}/uncertainty_engine_types/utils.py
RENAMED
|
File without changes
|
|
File without changes
|