🔧 chore(utils.py): add support for handle_keys in build_input_keys_response function
The build_input_keys_response function now includes support for handle_keys in the response. This allows the function to populate the handle_keys field in the response with the values from the artifacts dictionary, if available.
This commit is contained in:
parent
356719f115
commit
d6bd8a1a1b
1 changed files with 1 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ def build_input_keys_response(langchain_object, artifacts):
|
|||
input_keys_response = {
|
||||
"input_keys": {key: "" for key in langchain_object.input_keys},
|
||||
"memory_keys": [],
|
||||
"handle_keys": artifacts.get("handle_keys", []),
|
||||
}
|
||||
|
||||
# Set the input keys values from artifacts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue