OpenAI Agents SDK Quickstart: complete Agent, Runner and inquiry tool
Source includes Agent, @tool and Runner.run. Offline 12-case policy check; openai-agents not installed and no model call.
Open the official reference| Item | Details |
|---|---|
| Provider | OpenAI Agents SDK |
| Level | Beginner |
| Published | 2026-09-04 |
| Updated | 2026-09-06 |
| Official source | OpenAI Agents SDK |
| Topics | #agents · #engineering · #openai |
A complete Agent + Runner + tool graph, not an import stub
Current official Quickstart: pip install openai-agents, from agents import Agent, Runner, @tool from agents.decorators, then await Runner.run(agent, ...). Docs.
Complete source: agent.py. It sets name, instructions, tools and Runner.run. The tool calls the same policy.mjs via run-policy.mjs instead of reinventing rules in the model.
Evidence here: python3 AST-parses the file; Node runs run-policy.mjs against all 12 oracle items. openai-agents is not installed, Runner.run was not executed, and no API key or model cost was authorized.
A later live run needs separate cost/key authorization. Do not commit secrets. Review is still required; sending is still forbidden. Failures are unavailable, not offline success relabeled as live.
Package name openai-agents; import path agents. This is not ChatGPT.
Same-task Skill / MCP: Agent Skills, MCP tutorial.
Sources & Further Reading
This page is grounded in the authoritative sources below — verifiable and citable by AI engines and readers.
- 🔗 Official source
- 👤 Person: OpenAI Agents SDK
- # Topic: AgentsBuilding, orchestrating and shipping AI agents
- # Topic: EngineeringAPIs, prompting and system design
- # Topic: OpenAIOpenAI models and ecosystem
Citation: Please attribute Laojin Global (laojinchuhai.com) and keep the original link.
Made by Laojin · AI that ships
AllModelsAPIOne key for many models
AllModelsAPI is a multi-model API gateway: one key reaches many models through an OpenAI-compatible interface — point your existing code at a new base URL and you're migrated. It's not a demo: our own production workloads run on it every day.
More from Laojin: Sellenca · 365AIOrg · 365Loopa · 365 Ops · 365Skill
Related
Linked by topic, people and hubs