Example
OpenAI Agents SDK — implementation sample
A real, runnable mini-project. Download it and run with Docker.
June 28, 2026
OpenAI Agents SDK — implementation sampleA tiny OpenAI Agents SDK sample: it defines an agent and runs your prompt.
Configure
cd samples/openai-agents-sdk_1
cp .env.sample .env
# edit .env: set OPENAI_API_KEY (and optionally MODEL)
Run with Docker
cd samples/openai-agents-sdk_1
docker build -t aas-openai-agents .
docker run --rm --env-file .env aas-openai-agents "Summarize AI agents in one sentence."
Run with Docker (in a devcontainer with DooD)
The foreground docker run may print nothing under Docker-outside-of-Docker —
run detached and follow the logs:
docker logs -f "$(docker run -d --env-file .env aas-openai-agents "Summarize AI agents in one sentence.")"
Run locally
cd samples/openai-agents-sdk_1
pip install -r requirements.txt
python app.py "Summarize AI agents in one sentence."
Example run
Output varies by model and run — LLMs are non-deterministic. One run with
gpt-4o-mini:
An AI agent is an autonomous system that perceives its environment, makes decisions based on that information, and acts to achieve specific goals.