058: OpenAI Agents API demos - #22
Open
tylerprogramming wants to merge 2 commits into
Open
tylerprogramming wants to merge 2 commits into
tylerprogramming wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Demo code for video 058 on the OpenAI Agents API (public beta, 2026-09-10). New folder
openai_agents_058/, one folder per video as usual.What is in it
01_hosted_sandbox.py: onesessions.create(stream=True)call. Agent writesprimes.pyin an OpenAI-hosted sandbox, runs it, reports the output.02_function_tools.py: alookup_memberfunction tool. Turn 1 handlesrequires_actionby hand, turn 2 usessessions.stream(..., tool_handlers=...)on the same session to show memory across turns.environment: none, so no container cost.03_subagents.py:multi_agent: {enabled: true, max_concurrent_subagents: 3}. Three jobs, three subagents, one answer.common.py: client setup from.envand aPrinterthat turns the ~30 event types into a readable transcript.README.md: what each demo shows, install (uv and pip), run commands, env vars, expected output per script, notes for camera.pyproject.toml,uv.lock,.env.example.Verified
openai3.14.0 andgpt-6-astra. Demo 1 about 60s, demo 2 about 40s for two turns, demo 3 about 65s..envis in the diff; only.env.examplewith a placeholder.Not done
CLAUDE.mdin the folder. Writes to that file are blocked for headless workers. Tyler said to skip it.codex exec-serverdemo. It needs a separate environment key from the dashboard Agents tab.Do not merge without Tyler's word.