fix(nodes): GraphInvocation should use InputField

This commit is contained in:
psychedelicious 2023-10-17 23:22:30 +11:00
parent 8910e912c7
commit bbae4045c9

View File

@ -193,7 +193,7 @@ class GraphInvocation(BaseInvocation):
"""Execute a graph"""
# TODO: figure out how to create a default here
graph: "Graph" = Field(description="The graph to run", default=None)
graph: Optional["Graph"] = InputField(description="The graph to run", default=None)
def invoke(self, context: InvocationContext) -> GraphInvocationOutput:
"""Invoke with provided services and return outputs."""