-
I am following up the Build a Customer Support Bot Tutorial. and got some questions about the code: configuration = config.get("configurable", {})
passenger_id = configuration.get("passenger_id", None) And then I can get the passenger_id . But the wired thing is that why the function call gets the correct passenger_id whatever the code is? It seems this line of code affect nothing |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Good catch! Landed #623 to fix it (your recommendation was right). The function call still gets the value because the tool we defined fetches the user ID from the configuration NOT from the function parameters, so even though the LLM didn't know which user it's interacting with, the tools themselves were contextualized correctly. Thanks for catching my bug! |
Beta Was this translation helpful? Give feedback.
Good catch! Landed #623 to fix it (your recommendation was right).
The function call still gets the value because the tool we defined fetches the user ID from the configuration NOT from the function parameters, so even though the LLM didn't know which user it's interacting with, the tools themselves were contextualized correctly.
Thanks for catching my bug!