OpenAI Functions vs OpenAI Assistants vs "Agents" vs Plugins

You can refer to the cookbook for some actual code.

Note that in the first example a hypothetical weather API is used.
We have another forum topic where community members actually made it work: