OpenAI AgentKit & Agent SDK
AI EngineerThis is OpenAI’s first-party stack for building agents. The Agents SDK is a lightweight open-source library (Python and TypeScript) whose whole surface is a few primitives: an Agent (instructions plus tools), handoffs (one agent delegating to another), guardrails (validation that runs alongside the agent), and sessions for conversation state. AgentKit wraps that in platform tooling — Agent Builder’s visual workflow canvas, ChatKit for embeddable chat UIs, connectors, and built-in evals and tracing.
Its position in the landscape is deliberate minimalism with platform depth. Where LangGraph exposes a full state machine and CrewAI a role-playing crew, the Agents SDK bets that agents, handoffs, and guardrails cover most real systems with far less to learn — and the loop stays close to raw API calls, so there’s little abstraction to fight. The catch is gravity toward OpenAI: the SDK can technically drive other models via compatible endpoints, but tracing, hosted tools like web search and code interpreter, and the AgentKit surface all assume the OpenAI platform. If you’re already committed there, this is the path of least resistance and the built-in tracing dashboard is genuinely useful for debugging.
You’ll pip install openai-agents, define tools by decorating plain functions with @function_tool, construct an Agent(name=..., instructions=..., tools=[...]), and execute with Runner.run(agent, "your task"). Multi-agent systems are just agents listed in another agent’s handoffs. Typical first build: a triage agent that routes to two specialists, with a guardrail rejecting off-topic input.
Resources
0/3 completed- Introducing AgentKitOfficial docs
- Build every step of agents on one platformOfficial docs