Developer builds UK civic research AI agent using Spring Boot 4.1 and Spring AI 2.0
A developer has built a civic research assistant using Spring Boot 4.1 and Spring AI 2.0 that helps users identify the most effective way to raise issues with the UK Parliament. The tool accepts a plain-English description of an issue and a UK postcode, then uses ChatGPT alongside free UK postcode and Open Parliament APIs to retrieve relevant information. Rather than following a hard-coded workflow, the system registers several tool methods and allows the language model to decide which to call and in what order. The assistant returns a structured final answer in which every claim is backed by a citation verified to have originated from an actual tool call, preventing the model from fabricating sources. The full tutorial and complete source code have been published online, covering tool-calling setup, structured output handling, and changes since Spring AI 1.x.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in