Vibeleaderboard
← All Intel
Intel / post

aisuite adds one-line function calling across LLM providers

Source
x.com
Date
Andrew Ng@AndrewYNg
Thread · 2 parts

Announcing new aisuite capability: Easy function calling with LLMs! Function calling (tool use) is an important capability for agentic workflows and other LLM applications, but is cumbersome for developers to use (left column in image). Our open-source aisuite package simplifies it to just one command (right column), and works for multiple LLM providers. Hope this makes implementing agents easier for developers, and thanks Rohit Prsad & team for working with me on this!

Credit also goes to Matthew Carrigan for the neat idea of getting function descriptions from docstrings: https://t.co/CPLL1KxHE4

Context

aisuite reduces the plumbing needed to let a call a Python function. The announcement's code comparison shows a function passed directly to the library: its documentation supplies the tool description, and max_turns enables a bounded exchange in which requested functions run and their results return to the model. The project documentation describes the same loop. The developer still writes the function; aisuite handles the description and repeated model-tool communication that would otherwise require additional code.

Terms in this piece · Glossary
  • LLM — A large language model — the neural network behind tools like Claude and ChatGPT, trained on huge amounts of text to predict what comes next.
  • tool use — A model's ability to call external functions — run code, search the web, edit files — instead of only generating text.
More from Andrew Ng
Recommended reads
Comments

Checking sign-in…

Loading comments…