Code calling is all you need

Reddit r/AI_Agents Tools

Summary

Argues that using code generated by LLMs to call external tools (code calling) is more efficient and capable than traditional JSON-based function calling, but requires secure sandboxing. The author is building a framework for this approach.

**Hi there,** I am here to open a discussion about **function calling** (the classic approach using JSON) and **code calling** (or whatever you want to call it, code generated by an LLM that calls external tools). Both work, but in most cases, code seems to be **much more efficient, capable, and fast**. This is because it can make several calls in parallel or save values as variables and pass them to another tool without iterating back to the LLM. The big issue related to code calling is security; you need a good sandbox to push it to production. I think the pure approach using code could be the future. In fact, I am working on a framework for it, and I am open to collaborating with anyone who wants to join!
Original Article

Similar Articles

- -dangerously-skip-reading-code – olano.dev

Hacker News Top

The article argues that as organizations adopt LLMs for code generation, engineering practices must shift from reviewing generated code to focusing on specifications and tests, with organizational buy-in for new processes.