Refactor RunnableExecutor.py to add default values for input_key and output_key

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-27 15:33:19 -03:00
commit 3a8d29241d

View file

@ -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})