Lesson 4: Persistence and Streaming in short course: AI Agents in LangGraph
is broken in several places. Please take care to fix it.
1st ::
from langgraph.checkpoint.sqlite import SqliteSaver
memory = SqliteSaver.from_conn_string(“:memory:”)
results in ModuleNotFoundError: No module named ‘langgraph.checkpoint.sqlite’
I updated my notebook in order to be able to run it successfully according to the feedback here:
2nd :: Streaming tokens is not working. I could fix the code to execute but it never returns the tokens but only this part:
Calling: {‘name’: ‘tavily_search_results_json’, ‘args’: {‘query’: ‘current weather in Sofia’}, ‘id’: ‘call_uLoGSgAOu2xBmduJAnHPyQCq’, ‘type’: ‘tool_call’}
Back to the model!
Please update the code to show how to get the actual tokens or update the lesson.
According to my debugging with the help of gpt-o1:
Based on your debug output, your model is sending only a single chunk with either an empty content or the full final content—i.e. no incremental tokens at all.
@Sangy , that’s nice but it would be even better if the DeepLearning.AI people fix the Notebooks for everyone who attempts to take the course and is not aware that there are issues.
@TMosh ,The whole community platform structure is a mess for me. It could have been done better. Can you please share a link to the place you suggest. Thanks!
For reference, see the “Short Courses” link in the left-side menu. There, each course has a dedicated forum area.
You can move this thread by using the “pencil” icon in the thread title. Scroll all the way to the top of this page. Click on the “pencil”. Pick the correct forum using the drop-down list and search tool. Then add a week number tag or topic name.
You mean the Short Course Q&A, where I need to read all the tiles to fine the course I am looking for I will know for the future but imagine if they add more courses to this page where you can’t search by course name…
Yes, I found one on the home page and then it is gone as soon as you enter any of the categories Sorry, I don’t mean to complain but do believe a better organisation of the content and the navigation could be helpful.