Laojin GlobalAI · GO GLOBAL
Back to tutorials
OpenAI Agents SDK Quickstart: complete Agent, Runner and inquiry tool
OpenAI Agents SDKBeginnerPublished Updated

OpenAI Agents SDK Quickstart: complete Agent, Runner and inquiry tool

Creator:OpenAI

Source includes Agent, @tool and Runner.run. Offline 12-case policy check; openai-agents not installed and no model call.

Open the official reference
ItemDetails
ProviderOpenAI Agents SDK
LevelBeginner
Published2026-09-04
Updated2026-09-06
Official sourceOpenAI 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.

Note: This is an original Laojin Global companion to the official tutorial, not a replacement for provider documentation. Use the official link for current models, SDKs, pricing, quotas, and safety policies.

Sources & Further Reading

This page is grounded in the authoritative sources below — verifiable and citable by AI engines and readers.

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