feat: add template to input_keys_response
This commit is contained in:
parent
b8f150d1ac
commit
6cf9639128
1 changed files with 3 additions and 0 deletions
|
|
@ -44,4 +44,7 @@ def build_input_keys_response(langchain_object):
|
|||
# Add memory variables to memory_keys
|
||||
input_keys_response["memory_keys"] = langchain_object.memory.memory_variables
|
||||
|
||||
if hasattr(langchain_object, "prompt"):
|
||||
input_keys_response["template"] = langchain_object.prompt.template
|
||||
|
||||
return input_keys_response
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue