Closed hellseyfer closed 5 months ago
Hi @hellseyfer I didn't try it with agent_executors, but from what I can see in your example, the issue is quite likely because your input schema requires 2 attributes: input
and chat_history
The default @nlux/langchain
adapter config assume that the input schema only requires 1 input: The user prompt.
If you use a more complex schema, you will need to provide an inputPreProcessor
in the frontend, to update the user input to make it match your schema. You can do that by using the inputPreProcessor
config (documentation here)
I created an example here that I expect to work with your schema: https://codesandbox.io/p/sandbox/lingering-wind-jzgmyk?file=%2FApp.tsx%3A15%2C6 ( you will need to change the URL to make it match your LangServe sever URL)
Give it a try and let me know.
worked like a charm. Thank you
I tried this without success:
I'm using langchain adapter in the frontend. langchain version is 0.1.4