4 Empowering agents with actions
This chapter covers
- How an agent acts outside itself using actions
- How to define and use OpenAI functions
- The Semantic Kernel and how to use semantic functions
- How to synergize semantic and native functions
- How to instantiate a GPT Interface with Semantic Kernel
In the last chapter, we explored how to use Prompt Flow to evaluate and ground agent personas and profiles. This chapter examines Agent actions to see what they are, why they are needed, and how to use them. We will start by looking at OpenAI function calling and then quickly move on to another project from Microsoft called Semantic Kernel (SK), where we will use it to build and manage skills and functions for agents or as agents.
We will finish the chapter using Semantic Kernel to host our first agent system. This will be a whole chapter with plenty of annotated code examples. In the next section, we introduce agent actions and identify and define them.
4.1 Defining agent actions
ChatGPT plugins were first introduced to provide a session with abilities, skills, or tools. You can search the web or create spreadsheets or graphs with a plugin. Plugins provide ChatGPT with the means to extend the platform.