Added nodes for float params: ParamFloatInvocation and FloatCollectionOutput. Also added FloatOutput.

This commit is contained in:
user1
2023-05-26 11:06:37 -07:00
committed by Kent Keirsey
parent a4dec8c1d6
commit d9b1e4a98c
3 changed files with 28 additions and 1 deletions

View File

@ -34,6 +34,15 @@ class IntOutput(BaseInvocationOutput):
# fmt: on
class FloatOutput(BaseInvocationOutput):
"""A float output"""
# fmt: off
type: Literal["float_output"] = "float_output"
param: float = Field(default=None, description="The output float")
# fmt: on
class AddInvocation(BaseInvocation, MathInvocationConfig):
"""Adds two numbers"""