Abstract: Quotes

(1) API request

You most likely already have a ChatGPT account, and now you want to call the OpenAI API to get responses when running scripts, most likely Python scripts.

(2) simple workflow with Tool calling

(3) RAG

(4) Function calling

(5) Combine everything together -> AI agent

When you combine everything together—function calling, tool calling in recursive calls—you are ready to build certain types of AI agents that enable more automation for specific tasks, but at the same time could do any task with lower success rate. The use of tool calling could increase the success rate of task execution for specific tasks, but we don’t want to rely solely on tool calling, as the real power to make LLM execute anything comes from function calling.