The idea was to use AI to build something and integrate something that called AI (an API or service etc). After some brainstorming with my personal agent 'Jarvis', we decided on a DnD style game, powered by AI. Which would integrate the Laravel AI SDK, hitting two birds with one stone; using an AI service and also learning something new (this is upskill day), this was something on my todo list for a while.
Learnt how the Laravel AI SDK is implemented by; creating an agent, providing instructions and allowing the agent to remember conversations. A key part to the conversation history is that the structured response is not included in the content for agent conversations, unless a stringified JSON is returned as a regular stringified message.