sapiopycommons 2025.7.18a614__py3-none-any.whl → 2025.7.18a620__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.

@@ -412,7 +412,7 @@ class ToolBase(ABC):
412
412
  ))
413
413
 
414
414
  def add_output(self, content_type: DataTypePbo, display_name: str, description: str,
415
- testing_example: str | bytes | None = None, structure_example: str | bytes | None = None) -> None:
415
+ testing_example: str | bytes, structure_example: str | bytes | None = None) -> None:
416
416
  """
417
417
  Add an output configuration to the tool. This determines how many inputs this tool will accept in the plan
418
418
  manager, as well as what those inputs are. The IO number of the output will be set to the current number of
@@ -430,18 +430,18 @@ class ToolBase(ABC):
430
430
  JSON output may look. This does not need to be an entirely valid example, and should often be truncated for
431
431
  brevity.
432
432
  """
433
- structure: ExampleContainerPbo | None = None
434
- if isinstance(structure_example, str):
435
- structure = ExampleContainerPbo(text_example=structure_example)
436
- elif isinstance(structure_example, bytes):
437
- structure = ExampleContainerPbo(binary_example=structure_example)
438
-
439
433
  testing: ExampleContainerPbo | None = None
440
434
  if isinstance(testing_example, str):
441
435
  testing = ExampleContainerPbo(text_example=testing_example)
442
436
  elif isinstance(testing_example, bytes):
443
437
  testing = ExampleContainerPbo(binary_example=testing_example)
444
438
 
439
+ structure: ExampleContainerPbo | None = None
440
+ if isinstance(structure_example, str):
441
+ structure = ExampleContainerPbo(text_example=structure_example)
442
+ elif isinstance(structure_example, bytes):
443
+ structure = ExampleContainerPbo(binary_example=structure_example)
444
+
445
445
  self.outputs.append(ToolOutputDetailsPbo(
446
446
  base_config=ToolIoConfigBasePbo(
447
447
  io_number=len(self.outputs),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: sapiopycommons
3
- Version: 2025.7.18a614
3
+ Version: 2025.7.18a620
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>
@@ -2,7 +2,7 @@ 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=5Y0z_lRVipbHPJcHJf9GosK-ZjAh_I2JI3QwV8iyfKg,24884
4
4
  sapiopycommons/ai/test_client.py,sha256=8AlRTuy7XUC40aU4SgTQkNc_ZBp_ANhVNEKbUx8ABRM,10430
5
- sapiopycommons/ai/tool_service_base.py,sha256=rKFWDWdCz7NYr6V-crprnXdrOjItWqH-1OFM4vHLSDw,37312
5
+ sapiopycommons/ai/tool_service_base.py,sha256=Eg6lVDPmRK3U4VCXUA9eOakv4mACVRvvV5eTvCfVB1E,37298
6
6
  sapiopycommons/ai/api/fielddefinitions/proto/fields_pb2.py,sha256=YcZjb_YM-XeLErM8hEC_S7vGMVGvcXAMGs2b-u5zvOE,2377
7
7
  sapiopycommons/ai/api/fielddefinitions/proto/fields_pb2.pyi,sha256=FwtXmNAf7iYGEFm4kbqb04v77jNHbZg18ZmEDhle_bU,1444
8
8
  sapiopycommons/ai/api/fielddefinitions/proto/fields_pb2_grpc.py,sha256=wPImJPdCUZNVEVoUWzsba9kGIXjEKPdUkawP5SnVyiU,932
@@ -86,7 +86,7 @@ sapiopycommons/webhook/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
86
86
  sapiopycommons/webhook/webhook_context.py,sha256=D793uLsb1691SalaPnBUk3rOSxn_hYLhdvkaIxjNXss,1909
87
87
  sapiopycommons/webhook/webhook_handlers.py,sha256=L0HetSm43NvA5KyW3xbLpGFh2DbAaeZJVtXIEl2fvV8,39689
88
88
  sapiopycommons/webhook/webservice_handlers.py,sha256=Y5dHx_UFWFuSqaoPL6Re-fsKYRuxvCWZ8bj6KSZ3jfM,14285
89
- sapiopycommons-2025.7.18a614.dist-info/METADATA,sha256=rlFy7ClFDUE87l9zfvvvN6TJ4_EokvhxZBzJ5D0G7MQ,3143
90
- sapiopycommons-2025.7.18a614.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
91
- sapiopycommons-2025.7.18a614.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
92
- sapiopycommons-2025.7.18a614.dist-info/RECORD,,
89
+ sapiopycommons-2025.7.18a620.dist-info/METADATA,sha256=F81GzrnbMfsazdCyadIA4-i-DPKy6WqmsOEddBP4tAc,3143
90
+ sapiopycommons-2025.7.18a620.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
91
+ sapiopycommons-2025.7.18a620.dist-info/licenses/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
92
+ sapiopycommons-2025.7.18a620.dist-info/RECORD,,