sapiopycommons 2025.4.30a499__py3-none-any.whl → 2025.4.30a501__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 sapiopycommons might be problematic. Click here for more details.
- sapiopycommons/ai/tool_service_base.py +4 -4
- {sapiopycommons-2025.4.30a499.dist-info → sapiopycommons-2025.4.30a501.dist-info}/METADATA +1 -1
- {sapiopycommons-2025.4.30a499.dist-info → sapiopycommons-2025.4.30a501.dist-info}/RECORD +5 -5
- {sapiopycommons-2025.4.30a499.dist-info → sapiopycommons-2025.4.30a501.dist-info}/WHEEL +0 -0
- {sapiopycommons-2025.4.30a499.dist-info → sapiopycommons-2025.4.30a501.dist-info}/licenses/LICENSE +0 -0
|
@@ -395,7 +395,7 @@ class ToolBase(ABC):
|
|
|
395
395
|
max_request_bytes=max_request_bytes,
|
|
396
396
|
))
|
|
397
397
|
|
|
398
|
-
def add_output(self, content_type: DataTypePbo, display_name: str,
|
|
398
|
+
def add_output(self, content_type: DataTypePbo, display_name: str, description: str, example: str | None = None) -> None:
|
|
399
399
|
"""
|
|
400
400
|
Add an output configuration to the tool. This determines how many inputs this tool will accept in the plan
|
|
401
401
|
manager, as well as what those inputs are. The IO number of the output will be set to the current number of
|
|
@@ -404,7 +404,7 @@ class ToolBase(ABC):
|
|
|
404
404
|
|
|
405
405
|
:param content_type: The content type of the output.
|
|
406
406
|
:param display_name: The display name of the output.
|
|
407
|
-
:param
|
|
407
|
+
:param description: The description of the output.
|
|
408
408
|
:param example: An example of the output.
|
|
409
409
|
"""
|
|
410
410
|
self.outputs.append(ToolOutputDetailsPbo(
|
|
@@ -412,7 +412,7 @@ class ToolBase(ABC):
|
|
|
412
412
|
io_number=len(self.outputs),
|
|
413
413
|
content_type=ProtobufUtils.content_type_str(content_type),
|
|
414
414
|
display_name=display_name,
|
|
415
|
-
description=
|
|
415
|
+
description=description,
|
|
416
416
|
example=example
|
|
417
417
|
)))
|
|
418
418
|
|
|
@@ -617,7 +617,7 @@ class ToolBase(ABC):
|
|
|
617
617
|
image_data: StepImageContainerPbo = self.request.input[index].item_container.image_container
|
|
618
618
|
return image_data.image_format, list(image_data.items)
|
|
619
619
|
|
|
620
|
-
def get_input_json(self, index: int = 0) -> list[list[Any]] |
|
|
620
|
+
def get_input_json(self, index: int = 0) -> list[list[Any]] | list[dict[str, Any]]:
|
|
621
621
|
"""
|
|
622
622
|
Parse the JSON data from the request object.
|
|
623
623
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: sapiopycommons
|
|
3
|
-
Version: 2025.4.
|
|
3
|
+
Version: 2025.4.30a501
|
|
4
4
|
Summary: Official Sapio Python API Utilities Package
|
|
5
5
|
Project-URL: Homepage, https://github.com/sapiosciences
|
|
6
6
|
Author-email: Jonathan Steck <jsteck@sapiosciences.com>, Yechen Qiao <yqiao@sapiosciences.com>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
sapiopycommons/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
sapiopycommons/ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
sapiopycommons/ai/protobuf_utils.py,sha256=1gB2IFbqwI2xI9868UnTzqflBsnXXk90n-IOEKGXWGk,22659
|
|
4
|
-
sapiopycommons/ai/tool_service_base.py,sha256=
|
|
4
|
+
sapiopycommons/ai/tool_service_base.py,sha256=p1bdFnZJxrBFfM5dTuz82wXpvbVhvP4tDOhgh9sAmOE,29754
|
|
5
5
|
sapiopycommons/ai/api/fielddefinitions/proto/fields_pb2.py,sha256=YcZjb_YM-XeLErM8hEC_S7vGMVGvcXAMGs2b-u5zvOE,2377
|
|
6
6
|
sapiopycommons/ai/api/fielddefinitions/proto/fields_pb2.pyi,sha256=FwtXmNAf7iYGEFm4kbqb04v77jNHbZg18ZmEDhle_bU,1444
|
|
7
7
|
sapiopycommons/ai/api/fielddefinitions/proto/fields_pb2_grpc.py,sha256=wPImJPdCUZNVEVoUWzsba9kGIXjEKPdUkawP5SnVyiU,932
|
|
@@ -85,7 +85,7 @@ sapiopycommons/webhook/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
|
|
|
85
85
|
sapiopycommons/webhook/webhook_context.py,sha256=D793uLsb1691SalaPnBUk3rOSxn_hYLhdvkaIxjNXss,1909
|
|
86
86
|
sapiopycommons/webhook/webhook_handlers.py,sha256=L0HetSm43NvA5KyW3xbLpGFh2DbAaeZJVtXIEl2fvV8,39689
|
|
87
87
|
sapiopycommons/webhook/webservice_handlers.py,sha256=Y5dHx_UFWFuSqaoPL6Re-fsKYRuxvCWZ8bj6KSZ3jfM,14285
|
|
88
|
-
sapiopycommons-2025.4.
|
|
89
|
-
sapiopycommons-2025.4.
|
|
90
|
-
sapiopycommons-2025.4.
|
|
91
|
-
sapiopycommons-2025.4.
|
|
88
|
+
sapiopycommons-2025.4.30a501.dist-info/METADATA,sha256=aCth3LS0bqXate1ddoHEe94-HaKsVSe5CNU01jKblt8,3143
|
|
89
|
+
sapiopycommons-2025.4.30a501.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
90
|
+
sapiopycommons-2025.4.30a501.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
|
|
91
|
+
sapiopycommons-2025.4.30a501.dist-info/RECORD,,
|
|
File without changes
|
{sapiopycommons-2025.4.30a499.dist-info → sapiopycommons-2025.4.30a501.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|