๐Ÿšจ Just unlocked Spring AI โ†’ Ollama function calling in session 3 of my LLM game dev series.
All built in Java, live-coded.
Let me break it down ๐Ÿงต
Had to upgrade to Spring AI 1.1.0-SNAPSHOT due to function call exceptions.
โœ… That fixed it.
โœ… Function calls are now routed cleanly to Ollama (LLaMA 3.2).
New in this session:
๐ŸŽฎ Health + mana bar logic
๐ŸŽฎ AI-driven success/failure outcomes
๐ŸŽฎ Inventory system (partially wired)
โ˜ ๏ธ The player can now lose!
Couldnโ€™t generate ASCII art (again ๐Ÿ˜…) โ€” we ran out of time.
But it's next on the list!
The big win?
AI doesn't just write the story โ€” it calls Java functions to alter game state.
LLMs are finally doing things, not just saying them.
Before you continue to YouTube