Refactor RunnableExecutor.py to add default values for input_key and output_key
This commit is contained in:
parent
a8d9dea167
commit
3a8d29241d
1 changed files with 1 additions and 1 deletions
|
|
@ -32,9 +32,9 @@ class RunnableExecComponent(CustomComponent):
|
||||||
|
|
||||||
def build(
|
def build(
|
||||||
self,
|
self,
|
||||||
input_key: str,
|
|
||||||
input_value: Text,
|
input_value: Text,
|
||||||
runnable: Runnable,
|
runnable: Runnable,
|
||||||
|
input_key: str = "input",
|
||||||
output_key: str = "output",
|
output_key: str = "output",
|
||||||
) -> Text:
|
) -> Text:
|
||||||
result = runnable.invoke({input_key: input_value})
|
result = runnable.invoke({input_key: input_value})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue