๐จ 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.