This project demonstrates a fullstack application using a React frontend and a LangGraph Fastapi powered backend agent.
And you will find a lot of similarities with google deep search and jd agent, because they are both give this project spirit.
-
Don't use
BaseMessagesor other langchain messages class in return state, because they will trigger unnecessary messages event to the frontend. BTW, they also include a lot of unnecessary meta data, the best practice is to use a simple dictionary to store the data, and it compatible with the openai api used format -
When use
Commandorconditional_edge:Commanduse to goto a node and need to update state at the same timeconditional_edgeuse the state to decide which node to goto, and it doesn't need to update state at the same time.
- 增加秘塔搜索 API 接口
- 增加 serper 搜索接口