sapiopycommons 2025.4.30a500__py3-none-any.whl → 2025.4.30a502__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.

@@ -189,7 +189,7 @@ class ToolServiceBase(ToolServiceServicer, ABC):
189
189
  A base class for implementing a tool service. Subclasses should implement the register_tools method to register
190
190
  their tools with the service.
191
191
  """
192
- def GetToolDetailsPbo(self, request: ToolDetailsRequestPbo, context: ServicerContext) -> ToolDetailsResponsePbo:
192
+ def GetToolDetails(self, request: ToolDetailsRequestPbo, context: ServicerContext) -> ToolDetailsResponsePbo:
193
193
  try:
194
194
  # Get the tool details from the registered tools.
195
195
  details: list[ToolDetailsPbo] = self.get_details()
@@ -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=descriptions,
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]] | [list[dict[str, 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.30a500
3
+ Version: 2025.4.30a502
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=CIM-6J3dn182YQx-J5eYq4w_ivwcn1ap1-sCp9xYLX0,29757
4
+ sapiopycommons/ai/tool_service_base.py,sha256=5EstdLagpI_nk-2zj5WGUNgBtsA2yjQGgVNYLOi5TBM,29751
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.30a500.dist-info/METADATA,sha256=DpeIypzaulapPL3e2PzgdAHeyyE_AYtkf1FF_FfQr9s,3143
89
- sapiopycommons-2025.4.30a500.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
90
- sapiopycommons-2025.4.30a500.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
91
- sapiopycommons-2025.4.30a500.dist-info/RECORD,,
88
+ sapiopycommons-2025.4.30a502.dist-info/METADATA,sha256=dKjN1l9UsL_4npDE9SkLwRtLj9mHu-KzHwgstW99ltA,3143
89
+ sapiopycommons-2025.4.30a502.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
90
+ sapiopycommons-2025.4.30a502.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
91
+ sapiopycommons-2025.4.30a502.dist-info/RECORD,,