MCPcopy
hub / github.com/StructuredLabs/preswald / ComponentReturn

Class ComponentReturn

preswald/interfaces/component_return.py:1–14  ·  view source on GitHub ↗

Wrapper for component return values that separates the visible return value from the internal component metadata (e.g. for render tracking).

Source from the content-addressed store, hash-verified

1class ComponentReturn:
2 """
3 Wrapper for component return values that separates the visible return
4 value from the internal component metadata (e.g. for render tracking).
5 """
6
7 def __init__(self, value, component):
8 self.value = value
9 self._preswald_component = component
10
11 def __str__(self): return str(self.value)
12 def __float__(self): return float(self.value)
13 def __bool__(self): return bool(self.value)
14 def __repr__(self): return repr(self.value)

Callers 15

alertFunction · 0.90
big_numberFunction · 0.90
buttonFunction · 0.90
chatFunction · 0.90
checkboxFunction · 0.90
genericFunction · 0.90
imageFunction · 0.90
json_viewerFunction · 0.90
matplotlibFunction · 0.90
playgroundFunction · 0.90
plotlyFunction · 0.90
progressFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected