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(
|
||||
self,
|
||||
input_key: str,
|
||||
input_value: Text,
|
||||
runnable: Runnable,
|
||||
input_key: str = "input",
|
||||
output_key: str = "output",
|
||||
) -> Text:
|
||||
result = runnable.invoke({input_key: input_value})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue