Part 4 of the “From Zero to AI Agent: My Journey into Java-based Intelligent Applications” series

Now that we have our MCPService handling tool connections, we need to add the “intelligence” to our agent. This means connecting to Large Language Models (LLMs) that will help us understand user queries and decide which tools to use.

Today we’ll build a HTTP client that can talk to popular LLM providers like Groq and Google Gemini. No complex libraries, just modern Java HTTP calls with clean JSON parsing using records and Jackson.

Why These LLM Providers?

These providers are chosen for their generous free tiers, offering high token quotas ideal for prototyping and learning.

Groq: Fast inference with Llama models, great for real-time apps. Its free tier supports up to 131,072 …

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help