I recommend you to check out the previous parts if you don’t know what this “neural narratives” thing is about. In short, I wrote in Python a system to have multi-character conversations with large language models (like Llama 3.1), in which the characters are isolated in terms of memories and bios, so no leakage to other participants like in Mantella. Here’s the GitHub repo.
The previous entry ended with my player character and his partner arresting Elara Thorn, the suspicious scholar.
Well, I’m stumped. The following conversation happened immediately after.
As I tried to figure out what to do, I kept the facts of the story in my head, but why would I need to do that? Am I not programming a page that could handle such stuff? So I programmed it in.

The user has to introduce those facts manually; I can’t think of any reliable way for the large language model to determine them instead. In any case, now that I keep a file of known facts, they are used when prompting the AI for concepts, interesting situations, interesting dilemmas, and goals.
Anyway, my player character and his partner have to inform the missing teenager’s father that the main culprit is going to walk free for now.
No choice but to release the charming miss Thorn from custody.
I am a bit over my head.
Pingback: Neural narratives in Python #11 – The Domains of the Emperor Owl
Pingback: Neural narratives in Python #13 – The Domains of the Emperor Owl