Last week's OpenAI API update had a price cut, a longer-context model and a new parameter called functions. The price cut got the headlines. The parameter is the one that matters.
Function calling lets you describe functions to the model, with names and JSON-schema parameters. When appropriate, the model responds not with prose but with the name of a function and a JSON object of arguments. Your code runs the function and, if you want, passes the result back. It shipped in gpt-3.5-turbo-0613 and gpt-4-0613.
That sounds like a convenience. It is actually the difference between a demo and a component.
What we did before
Before this, getting structured data out of a model meant asking nicely. "Respond only with JSON in the following format." Then parsing the response, then handling the cases where it wrapped the JSON in a friendly sentence, added a trailing comma, or invented a field.
Every team I know wrote the same defensive layer: regexes to find the JSON, retry loops, a "repair" prompt for when the first attempt failed. It worked most of the time. "Most of the time" is a problem when the output feeds a database write.
What changes
The model is now trained to produce arguments for a declared schema. The interface between the language model and the rest of your system is a typed contract instead of a polite request. Extraction, classification into a fixed set of categories, routing a request to the right internal service: these become straightforward.
It also gives you the first clean way to build the "tool use" pattern people have been hacking together. The model decides a lookup is needed, you run it, the model continues with the result.
What it does not change
Three things I'd keep in mind.
The model proposes, your code decides. The arguments are generated text that happens to be shaped like your schema. They can be wrong, out of range, or for a function you shouldn't run on this input. Validate every argument. Treat the call as untrusted input, because it is.
Schema quality is prompt quality. The function name and the parameter descriptions are what the model reads. A function called process with a parameter called data gets used badly. Names and descriptions that say what things are get used well.
Tool results are a prompt-injection surface. If a function returns text from a web page or an email, that text goes back into the model's context. Anything in it can try to steer the next step. Don't give a model that reads untrusted content the ability to call functions with side effects without a human check in between.
Where I'd start
Pick the most fragile JSON-parsing code you have. Replace the format-it-yourself prompt with a function definition. Keep the validation you already wrote and delete the repair loop. Measure how often the output validates on the first attempt, before and after.
That one number, first-attempt validity, tells you whether this is a convenience or a change in what you can build. I expect you'll find it's the second.