Closed Valdanitooooo closed 1 week ago
Hi @Valdanitooooo
I think the error is because the library only support a langgraph state where the properties are the same has the default react agent state.
I see 2 options:
No matter which of the options solves your problem, it would be very nice of you to add an example of your use case in the « functional test » directory and README.
I can take a deeper look next week if needed.
Thanks a lot for your interest in this library and your support for it 😀
it would be very nice of you to add an example of your use case in the « functional test » directory and README.
I would love to do that, but my test code needs to install the dependency langgraph@git+https://github.com/Valdanitooooo/langgraph.git@dev#subdirectory=libs/langgraph
to run well, which is not constructive, so I think it would be better to update the README after this issue is solved. I can put the test code in the « functional test » directory first. 😉
This seem to be a recurent issue / missunderstanding. I will soon update the library README and add a usage example on how to use a custom LangGraph agent (which does not requires external deps).
Thanks for your contribution @Valdanitooooo ! Your pull request is now merged in the main repo.
First of all, thank you for your great work in making it so easy to build the agent API !🫶
I hope to use graph as an agent to provide services, Because the react agent are not free enough.
Here is my code
Server
Client
Error
My solution
Then I made modifications to the Langgraph source code, and my application runs well. https://github.com/Valdanitooooo/langgraph/commit/c2d05edcd04becf3619d025eb90f65d0966077a1
My question
I'm not sure if it's a problem with langgraph or your code, I hope to find the best solution. I hope I have expressed myself clearly. ❤️