frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Understanding Tool Calling in LLMs – Step-by-Step with REST and Spring AI

https://muthuishere.medium.com/understanding-tool-function-calling-in-llms-step-by-step-examples-in-rest-and-spring-ai-2149ecd6b18b
45•muthuishere•7h ago

Comments

upghost•1h ago
I think it's interesting and odd that tool calling took the form of this gnarly json blob. I much prefer the NexusRaven[1] style where you provide python function stubs with docstrings and get back python function invocations with the arguments populated. Of course I don't really understand why MCP is popular over REST or CLI, either.

[1]: https://github.com/nexusflowai/NexusRaven-V2

max-privatevoid•38m ago
The actual API call is still going to be JSON. How do you deal with that? Pack your Python function definitions into an array of huge opaque strings? And who would want to write a parser for that?
upghost•5m ago
I'm sure you realize it gets reassembled into "huge opaque strings" when it is fed into the LLM as context. The arbitrary transport of the context as JSON is just a bit of protocol theater.

You don't really have to parse the output, Python already has a parser in the form of the AST library[1].

But I get your drift. Depending on your workflow this could seem like more work.

[1]: https://docs.python.org/3/library/ast.html#module-ast

nullorempty•29m ago
I don't think Spring is well regarded on HN.
sorokod•18m ago
"Just write this...." adds an annotation

One of the many issues with Spring is that abstractions it provides are extremely leaky [1]. It leaks frequently and when it does, an engineer is faced with the need to comprehend a pile of technology that was supposed to be abstracted away in the first place.

[1] https://en.wikipedia.org/wiki/Leaky_abstraction

th0ma5•9m ago
I think about this occasionally trying to rationalize it. I see similar patterns in other things like R and Julia where they design something in the environment to seem like a composable tool, and maybe it is but only within two or three specific compositions and then the way the environment is described sure seems to imply some kind of universality but it just doesn't work. Some even seem to keep patching every leak (maybe Spring means Spring a leak? Haha) and there's a sunk cost fallacy thing with an immense documentation page.

The average Windows user doesn't care about TPM 2.0

https://www.neowin.net/editorials/the-average-windows-user-doesnt-care-about-tpm-20/
1•transpute•1m ago•0 comments

SimSun 12pt: A Default with a Legacy

https://fayziev.com/blog/simsun-a-default-with-a-legacy
1•Nurbek-F•1m ago•0 comments

A Technical Look at Iran's Internet Shutdowns

https://zola.ink/blog/posts/a-technical-look-at-irans-internet-shutdown
1•znano•1m ago•0 comments

Prompt Engineering: From Zero to Hero

https://promptz2h.com/
1•blackpc•1m ago•0 comments

A Rust implementation of the Haraka hash function

https://github.com/gendx/haraka-rs
1•znano•2m ago•0 comments

An Ultra Opinionated Guide to Reinforcement Learning

https://twitter.com/jsuarez5341/status/1943692998975402064
1•unignorant•3m ago•0 comments

Passive-Agressive Office Simulator Slack Bot

https://github.com/tholman/office-simulator
1•ajd555•3m ago•0 comments

Centuries-old DNA reveals origins of Greenland's unique dogs

https://www.nature.com/articles/d41586-025-02184-8
1•rntn•5m ago•0 comments

Show HN: CMS-like editing for Markdown with contenteditable and 100 lines of JS

https://mattismegevand.com/posts/inlinecms/
2•mattismegevand•5m ago•0 comments

India releases roadmap for quantum-safe cybersecurity

https://ddnews.gov.in/en/india-releases-roadmap-for-quantum-safe-cybersecurity/
1•donutloop•5m ago•0 comments

Ask HN: What should I work on/develop?

1•king_terry•9m ago•1 comments

The Value of Hitting the HN Front Page

https://www.mooreds.com/wordpress/archives/3530
2•mooreds•12m ago•0 comments

Hydropower saps flows from the Kern River. Rafters want their whitewater back

https://www.latimes.com/environment/story/2025-07-06/kern-river-whitewater-rafting-hydropower
1•PaulHoule•14m ago•0 comments

Detour: A detour through the Linux dynamic linker

https://github.com/graphitemaster/detour
2•todsacerdoti•15m ago•0 comments

MinION – Nanopore sequencing reads the entire length of DNA for home labs

https://nanoporetech.com/products/sequence/minion
2•modinfo•15m ago•0 comments

TruAnon Founder, Jesse Tayler Tells an EPIC startup origin story in this Keynote [video]

https://www.youtube.com/watch?v=fU_zuuZDBD0
1•jtayler•16m ago•2 comments

Why is splitting bills with friends so unnecessarily complicated?

https://pickwhopays.com
1•guccibase•16m ago•1 comments

Game over Tesla (and, maybe, Western car industry)

https://www.fastcompany.com/91366273/byd-bests-tesla-again-cars-are-the-first-to-truly-park-themselves
1•diego_moita•16m ago•0 comments

Ejabberd 25.07 / ProcessOne – Erlang Jabber/XMPP/Matrix Server – Communication

https://www.process-one.net/blog/ejabberd-25-07/
1•neustradamus•20m ago•0 comments

Trump Seeks to Cut Basic Scientific Research by Roughly One-Third, Report Shows

https://www.nytimes.com/2025/07/10/science/trump-science-budget-cuts.html
1•zzzeek•23m ago•0 comments

Distributed Cache for S3

https://clickhouse.com/blog/building-a-distributed-cache-for-s3
1•zX41ZdbW•26m ago•0 comments

Show HN: Free Online Text Compare – Instantly Spot Differences Between Two Texts

1•rahulbstomar•27m ago•0 comments

Workaround for Claude Code running `python` instead of `uv`

https://solmaz.io/log/2025/07/13/claude-code-python-override/
2•hosolmaz•30m ago•1 comments

America's soccer dad has some advice for the White House

https://www.politico.com/news/2025/07/13/world-cup-usa-2026-alan-rothenberg-1994-00448727
1•srameshc•35m ago•0 comments

Jekyll Companion App

https://hiyd.uk
1•TheChelsUK•39m ago•0 comments

Reflecting on PLDI 2025

https://people.csail.mit.edu/rachit/post/pldi-2025/
1•chriscbr•42m ago•0 comments

Databento

https://databento.com/
1•handfuloflight•44m ago•0 comments

Show HN: BloomSearch – Keyword search with hierarchical bloom filters

https://github.com/danthegoodman1/bloomsearch
1•dangoodmanUT•44m ago•0 comments

Illegal loggers profit from Brazil's carbon credit projects

https://www.reuters.com/business/environment/illegal-loggers-profit-brazils-carbon-credit-projects-2025-07-07/
1•Qem•44m ago•0 comments

Why Did Cars Get So Hard to See Out Of?

https://www.bloomberg.com/news/articles/2025-07-10/why-did-cars-get-so-hard-to-see-out-of-blame-the-a-pillars
4•pseudolus•45m ago•3 comments