A little less sophisticated, but I've done something similar with Langchain4j and Quarkus. Ok, without the books. Just a Dungeon Master guiding you. But it's easier than one thinks to build stuff like this.
https://open.substack.com/pub/myfear/p/ai-dungeon-master-qua...