uncertainty-engine-types 0.10.0__py3-none-any.whl → 0.11.0__py3-none-any.whl

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.
@@ -25,7 +25,13 @@ from .llm import LLMConfig, LLMProvider
25
25
  from .message import Message
26
26
  from .model import MachineLearningModel
27
27
  from .model_config import ModelConfig
28
- from .node_info import NodeInfo, NodeInputInfo, NodeOutputInfo, NodeRequirementsInfo
28
+ from .node_info import (
29
+ NodeInfo,
30
+ NodeInputInfo,
31
+ NodeOutputInfo,
32
+ NodeRequirementsInfo,
33
+ ScalingInfo,
34
+ )
29
35
  from .prompt import Prompt
30
36
  from .sensor_designer import SensorDesigner
31
37
  from .sql import SQLConfig, SQLKind
@@ -65,6 +71,7 @@ __all__ = [
65
71
  "Prompt",
66
72
  "ResourceID",
67
73
  "S3Storage",
74
+ "ScalingInfo",
68
75
  "SensorDesigner",
69
76
  "SourceHandle",
70
77
  "SQLConfig",
@@ -1,6 +1,6 @@
1
1
  from typing import Any, Optional
2
2
 
3
- from pydantic import BaseModel
3
+ from pydantic import BaseModel, ConfigDict
4
4
 
5
5
  from .version import __version__
6
6
 
@@ -27,6 +27,18 @@ class NodeRequirementsInfo(BaseModel):
27
27
  timeout: int
28
28
 
29
29
 
30
+ class ScalingInfo(BaseModel):
31
+ """Scaling configuration."""
32
+
33
+ model_config = ConfigDict(use_attribute_docstrings=True)
34
+
35
+ max: int = 1
36
+ """Maximum number of service tasks to scale out to."""
37
+
38
+ min: int = 0
39
+ """Minimum number of service tasks to scale in to."""
40
+
41
+
30
42
  class NodeInfo(BaseModel, extra="allow"):
31
43
  """
32
44
  Node information.
@@ -52,7 +64,14 @@ class NodeInfo(BaseModel, extra="allow"):
52
64
  Deployment requirements.
53
65
  """
54
66
 
67
+ scaling: ScalingInfo = ScalingInfo()
68
+ """Scaling configuration."""
69
+
55
70
  load_balancer_url: Optional[str] = None
71
+
72
+ queue_name: Optional[str] = None
73
+ """Name of the node's job queue."""
74
+
56
75
  queue_url: Optional[str] = None
57
76
  service_arn: Optional[str] = None
58
77
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: uncertainty-engine-types
3
- Version: 0.10.0
3
+ Version: 0.11.0
4
4
  Summary: Common type definitions for the Uncertainty Engine
5
5
  Author: Freddy Wordingham
6
6
  Author-email: freddy@digilab.ai
@@ -1,4 +1,4 @@
1
- uncertainty_engine_types/__init__.py,sha256=QxuxItecFrZwOKNgPrdIO7i-YnEH3QAT3__86eTqSV8,1948
1
+ uncertainty_engine_types/__init__.py,sha256=0FAX_KGWHoFlMgPmIUEqR5YfTSr7ffvdIt3I_O-1ETk,2005
2
2
  uncertainty_engine_types/chat_history.py,sha256=OY1fZXP7_AtPKEmgjxh60PlbEGtQWJWafZMgs2Ec0BU,121
3
3
  uncertainty_engine_types/context.py,sha256=gi1izptPe05ksem5TGZNIzgzO_QmomzXwTGqvB5I9Sc,914
4
4
  uncertainty_engine_types/dataset.py,sha256=sDpQu5X3KxJ1lNkZOwhppJ2SY0Cv19cbcYfGpp_hyUQ,75
@@ -13,7 +13,7 @@ uncertainty_engine_types/llm.py,sha256=Ae7dw1R5RKLJHFjNwBzynLd-ddikKP0NsvHvoMdmn
13
13
  uncertainty_engine_types/message.py,sha256=sX1tq_BbZC9r9-Vf0A3WHiOFRE2hAAlY-7rD52kbsoU,381
14
14
  uncertainty_engine_types/model.py,sha256=O9E_7DE9AKEc1o2VnhpUyl3Quh4sGdV43gqDJwk-y68,196
15
15
  uncertainty_engine_types/model_config.py,sha256=pCawKIo2l0O3eRLE5Ese7jaxomIyPXGW3XIcAx6TckY,558
16
- uncertainty_engine_types/node_info.py,sha256=ifSEkDVcS_B38jXx52nedU-wXe2GHD1Yt8Fqv0V3Ix0,1434
16
+ uncertainty_engine_types/node_info.py,sha256=R1AZczUnYMhUkTgNMmW2d1YJ5JG7ai4Nfewgh0XuPMc,1880
17
17
  uncertainty_engine_types/prompt.py,sha256=l__qXytAapKg1Hoaj3RSVYN3rhy638nuUZIS-se0eMc,74
18
18
  uncertainty_engine_types/sensor_designer.py,sha256=hr3ek4_dRjRK0-78uaT6h8-bGUCm7Mfs6mxJSWxE64c,80
19
19
  uncertainty_engine_types/sql.py,sha256=SBzmgMEZ-sa-OBRoZbmKiOqddop4zJixgxx-JCus9fY,298
@@ -22,6 +22,6 @@ uncertainty_engine_types/uncertainty_plot.py,sha256=kJr0SuJ6JeTxaf2adpDNWqx7vVLZ
22
22
  uncertainty_engine_types/utils.py,sha256=72QVig8Kb5uIR-e1nofm-3x9CouebdQJIruDbq-aIn0,271
23
23
  uncertainty_engine_types/vector_store.py,sha256=9fYPJ04jWcy2DruyUSjiKQAgmqq-wgeAi5dBIrAOm30,392
24
24
  uncertainty_engine_types/version.py,sha256=H9NWRZb7NbeRRPLP_V1fARmLNXranorVM-OOY-8_2ug,22
25
- uncertainty_engine_types-0.10.0.dist-info/METADATA,sha256=1GK1FkKrMzPgLQAI78_Oqbjxcb3yxNHH24BtGdEjatM,2816
26
- uncertainty_engine_types-0.10.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
27
- uncertainty_engine_types-0.10.0.dist-info/RECORD,,
25
+ uncertainty_engine_types-0.11.0.dist-info/METADATA,sha256=oRFqeZERfP-ejwdnKru7T9RpqLOtbJDht_ZItE6w72s,2816
26
+ uncertainty_engine_types-0.11.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
27
+ uncertainty_engine_types-0.11.0.dist-info/RECORD,,