How to send tool-call by stream from fastapi to frontend web ui (next.js)?
I have two frontend (AI-CHATBOT) and backend (fastapi+langraph) when send message from frontend to backend then the backend send stream text to call tool-call and also argument (json data) to give frontend show UI form then user entry data then send to backend again then backend send result to frontend on chat. How to config?
Basic Examples:
https://github.com/vercel/ai/tree/main/examples/next-fastapi
https://github.com/vercel-labs/ai-sdk-preview-python-streaming
https://github.com/vercel-labs/ai-sdk-preview-python-streaming/blob/main/api/index.py
I want to use the same ai-chatbot code and Backend how to config to send tool-call?
Hey @angpao , were you able to get this working?
Yes,I can. More question is how to connect frontend to langgraph?