Project

Riddle Quest with LangGraph

Challenging
1 completion
~ 6 hours
New

Learn how to build stateful, human-in-the-loop workflows with LangGraph and enforce structured LLM output with Pydantic. Practice routing and pausing graph execution, preserving data across threads, and running tasks in parallel. Use checkpoint history to return to an earlier state and explore another path without generating the same content again.

Provided by

JetBrains Academy JetBrains Academy

About

A mysterious vault awaits, but opening it requires solving a riddle. In this project, you’ll use LangGraph to transform a simple riddle generator into an interactive, stateful application. You’ll add hints, persist player preferences, generate riddles in parallel, and return to earlier graph states to explore alternative paths.

Graduate project icon

Graduate project

This project covers the core topics of the AI Agents: Theory and Practice course, making it sufficiently challenging to be a proud addition to your portfolio.

At least one graduate project is required to complete the course.

What you'll learn

Once you choose a project, we'll provide you with a study plan that includes all the necessary topics from your course to get it built. Here’s what awaits you:
Pause the graph, resume it, and judge the player’s guess.
Add more attempts and reveal hints when the player submits an incorrect answer.
Collect user preferences and use them to generate a riddle.
One vault is no longer enough. Generate multiple vaults concurrently and let the player decide which challenge to enter.
Use checkpoint history to revisit the unchosen vault without generating either riddle again.