Skip to content

Lesson 6 of 7 · 4 min read

The OpenAI Agents SDK and the Claude Agent SDK

The OpenAI Agents SDK (MIT) offers Agent, Runner, handoffs with input filters, agents as tools, guardrails that trip a run, sessions, tracing, and approvals: tools marked needs_approval interrupt the run, which is saved as RunState, approved or rejected, and resumed. The Claude Agent SDK (MIT, Python and TypeScript) runs the Claude Code harness as a library, with built-in file and shell tools, permission modes, a can_use_tool callback, hooks such as PreToolUse that allow, deny, ask or defer, subagents, skills, MCP and forkable sessions.

Premium lessonReviewed By the AIAgentInterviews editorial teamProduct details checked · What changed
Get full Premium access · $25

All 19 topics with every worked answer, all lessons and courses, the full practice bank, and anything new that appears during your access.

6 months · One payment · No auto-renewal

Practise it as an interviewer asks it

Related lessons