🚀 LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Exercises.
🎓 COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.

Project 28: Dashboard Alerts Bot

AI Engineer
Current Task

Objective

Review day: combine streaming and callbacks — days 16 and 17 — to log each chunk as it streams into a dashboard sidebar.

Task: stream a response while appending each chunk to a log list, then print the log's length.

index.py
log = [] for chunk in chain.stream({"input": "Summarize today's dashboard alerts."}): log.append(chunk.content) print(len(log))

* Hint: Correct characters turn green, incorrect ones turn red.

Live Preview
🖼️

Verify your code to see the preview