malevich-coretools 0.3.42__py3-none-any.whl → 0.3.44__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.
Potentially problematic release.
This version of malevich-coretools might be problematic. Click here for more details.
- malevich_coretools/abstract/abstract.py +20 -0
- malevich_coretools/batch/utils.py +1 -1
- malevich_coretools/funcs/funcs.py +737 -23
- malevich_coretools/funcs/helpers.py +8 -0
- malevich_coretools/secondary/const.py +9 -0
- malevich_coretools/secondary/helpers.py +9 -3
- malevich_coretools/utils.py +862 -73
- {malevich_coretools-0.3.42.dist-info → malevich_coretools-0.3.44.dist-info}/METADATA +1 -1
- {malevich_coretools-0.3.42.dist-info → malevich_coretools-0.3.44.dist-info}/RECORD +12 -12
- {malevich_coretools-0.3.42.dist-info → malevich_coretools-0.3.44.dist-info}/WHEEL +1 -1
- {malevich_coretools-0.3.42.dist-info → malevich_coretools-0.3.44.dist-info}/LICENSE +0 -0
- {malevich_coretools-0.3.42.dist-info → malevich_coretools-0.3.44.dist-info}/top_level.txt +0 -0
|
@@ -628,3 +628,23 @@ class WSApp(BaseModel):
|
|
|
628
628
|
|
|
629
629
|
class WSApps(BaseModel):
|
|
630
630
|
data: List[WSApp]
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
class MCPToolSimple(BaseModel):
|
|
634
|
+
name: Optional[str] # can be None on updates
|
|
635
|
+
description: Optional[str] = None
|
|
636
|
+
inputSchema: Optional[Dict[str, Any]] = None
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
class MCPTool(MCPToolSimple):
|
|
640
|
+
id: Optional[str] = None # None if create, id otherwise
|
|
641
|
+
taskId: Optional[str] = None
|
|
642
|
+
pipelineId: Optional[str] = None
|
|
643
|
+
cfgId: Optional[str] = None
|
|
644
|
+
runSettings: Optional[RunSettings] = None
|
|
645
|
+
enableNotAuthorized: Optional[bool] = False
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
class MCPToolCall(BaseModel):
|
|
649
|
+
name: str
|
|
650
|
+
arguments: Dict[str, Any]
|
|
@@ -80,7 +80,7 @@ class DefferOperationInternal(str):
|
|
|
80
80
|
if self.__result_model is not None and self.__code < 400: # ok
|
|
81
81
|
try:
|
|
82
82
|
from malevich_coretools.secondary import model_from_json
|
|
83
|
-
self.__data = model_from_json(res, self.__result_model)
|
|
83
|
+
self.__data = model_from_json(res, self.__result_model, is_list=None)
|
|
84
84
|
except BaseException:
|
|
85
85
|
Config.logger.error(f"parse {self.__alias} failed, model={self.__result_model.__name__}")
|
|
86
86
|
self.__data = res
|