Urgent.News

What's breaking now, across thousands of outlets.

AI

GitHub's Copilot SDK for Java: What Running Agents in Spring Boot Without Frameworks Reveals About Tool Integration

Every Java team adding AI to a backend right now faces the same fork in the road. If you are on Spring Boot, you reach for Spring AI. If you are not, you reach for LangChain4j. Both are good libraries, but both come with a commitment: you adopt their abstractions, their release cadence, and their opinion of what an agent loop looks like. On August 10, 2026, GitHub quietly published a third…

The GitHub Copilot SDK for Java offers a third option for Java developers looking to integrate AI into their backend applications. This SDK provides an agent runtime that can be dropped into any server-side Java application as a Maven dependency, eliminating the need for a Copilot subscription. It runs against various providers, including OpenAI, Anthropic, and Azure, with your own API key.

The SDK is not just a model client but an agent runtime with tool calling, streaming, and context management built in. It differs from other Java AI libraries, such as Spring AI and LangChain4j, which provide thin wrappers over provider HTTP endpoints or require defining tools through their abstraction layers. The Copilot SDK, however, introspects the method signatures to build function definitions that get sent to the model, eliminating the need for manual schema generation or tool annotations.

The SDK offers two modes: GitHub-hosted (using a Copilot subscription) and BYOK (bring your own key), which allows the agent loop to run in your JVM and point to any OpenAI-compatible endpoint using your own API key. For production Spring Boot services, the BYOK mode is recommended, as it means the agent loop runs in your process, providing control over rate limits, observability, and failure modes.

Integration with the SDK in a Spring Boot controller is straightforward. You create a CopilotClient instance by providing your API key and model, then register tools as Java methods using the session.registerTool() method. The SDK handles tool schema generation automatically and manages the execution flow. It returns streaming responses as a Publisher ChatChunk (Reactive Streams), which can be mapped to a Flux String in a Spring Boot controller method, handling backpressure with Spring WebFlux.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

My AI visibility score was 78%. Then I fixed how I measured it and it was 25%

In August, I published a number on my studio’s website: we had been named unprompted in 14 out of 18 blind answers across ChatGPT, Perplexity, and Gemini. It was wrong.

  • Initial AI visibility score was 78%, then corrected to 25%
  • Revised test conducted with isolated sessions for each engine
  • Issue lies in engines' decision-making, not in their knowledge

Robot comment classifier

(I used both AI and vibecoding tags because the article describes training a logistic regression/SVM on LLM output. I thought there was a statistics tag that would have been appropriate but apparently…

  • Classifier examines typographical marks in comments
  • Robots use em dashes, semicolons, unicode arrows, ellipses more often
  • Robots generate complex comments with commas, parentheses, line breaks

More from Saturday 22 August →