OpenAI Agents SDKopenai-agents 0.22 · Python 3.10+
1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
25 small wins to finish your pathNext lesson

What you are going to build

By the end of this course you will have built a support agent that reads a message, decides whether it needs a tool, uses it, hands the hard cases to another agent, refuses what it should not answer, and asks you before it spends money.

Press Run in the panel beside this. The first time takes a few seconds while Python starts in your browser and the SDK downloads. After that it is instant. Nothing leaves this page and you do not need an API key.

What that run just did
You ask. A question goes in: where is order A17.Step 1 of 4

That is the whole idea of an agent. A model that can answer with words or with a request for something to be run, and a loop that keeps going until it answers instead of asking.

Why it works with no key

A browser cannot call OpenAI, so this course uses a stand-in model that you write yourself in lesson 3. It is a real model as far as the SDK is concerned. Lesson 23 shows the one line that swaps in the real thing.

The panel is yours
Every lesson has a file in that panel. Change it, run it again, break it on purpose. The reading explains what each line does, and the panel is where you find out what happens when it does not.

What you need

  • Nothing installed. It all runs here.
  • Python functions and type hints, if you want to follow along.

On your own machine the same programs need one install.

bash
pip install openai-agents
Back toAll frameworks

Every expert started right here.