From the course: OpenAI API: Agents
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Exploring agent examples - OpenAI API Tutorial
From the course: OpenAI API: Agents
Exploring agent examples
- I don't know about you, but for me, examples are as important as documentation, because in examples, we can see how the different pieces play together and interact, and all the nuances of how these interactions work to get the workflow to work properly. The good news is in this SDK, there is a plethora of examples to choose from and inspect, and it's all shipped within the GitHub package. You can get a list of some of the examples by going to the examples page in the documentation, but the examples are also self documented in the GitHub repository. So I recommend exploring the repository and maybe even spinning it up in a code space, give it your API key, and then running the examples to see how everything works. The examples are found under the examples folder. Here you get a list of sub folders with different types of examples. So you have basic examples that give you everything from a "Hello, World!" example to life cycles, streaming outputs, tool use, and all the other pieces…
Contents
-
-
-
(Locked)
Introducing the OpenAI Agents SDK1m 50s
-
(Locked)
Core concepts: Agents, runners, handoffs, and guardrails4m 53s
-
(Locked)
Authentication1m 20s
-
(Locked)
Anatomy of a simple agent workflow3m 55s
-
(Locked)
Exploring agent examples2m 33s
-
(Locked)
Tools and capabilities3m 23s
-
(Locked)
Tracing3m 54s
-
(Locked)
-
-