A client's contract can switch off OpenAI Agents SDK tracing
Client constraints, not benchmark scores, decide between Claude Agent SDK, OpenAI Agents SDK and Google ADK, and four questions settle it before any code is written.
In brief
- Do not start from benchmarks. Start from four questions: where the agent runs, which model it uses, who controls permissions and who reads the traces.
- A client using the OpenAI API under Zero Data Retention cannot use the OpenAI Agents SDK's default tracing. If the client's team writes Go or Java, ADK has official libraries for both, while Claude Agent SDK ships only Python and TypeScript.
- Claude Agent SDK has a precisely documented permission order, with deny hooks running before every other step; ADK comes with built-in tools for evaluating an agent's execution trajectory.
The OpenAI Agents SDK documentation says tracing is on by default. The same documentation also says that organizations using the OpenAI API under a Zero Data Retention policy cannot use tracing. A default feature can disappear because of a single clause in a client’s contract.
That detail shows how agent SDKs actually get chosen on real projects. Nobody picks one from a scoreboard. The shortlist shrinks under the constraints the client states, usually in the first working session and usually before anyone has opened an editor.
For an FDE, this is a skill worth paying for. Pick the wrong framework in week one and by week six you are rewriting the observability layer, the permissions layer and sometimes the model-calling layer too. What follows are four questions for choosing between Claude Agent SDK, OpenAI Agents SDK and Google ADK, along with the pitfalls of each.
Where will the agent run, and who operates it?
Ask this first, because it decides who is on call when the system breaks. According to Anthropic’s documentation, Claude Agent SDK packages the same agent loop, tool set and context management that run inside Claude Code as Python and TypeScript libraries.
The agent is embedded in your application and runs in a process you operate. OpenAI Agents SDK is also a Python library, installed with pip and run in your own process, with an additional sandbox agent for running tasks in an isolated workspace.
If the client does not want to operate anything, Anthropic has a separate product, Managed Agents. It is a hosted harness that runs the agent loop, with sessions in sandboxes on Anthropic-managed cloud or self-hosted sandboxes on the client’s own infrastructure.
Keep the two products clearly apart when talking to the client. Confusing them is the quickest way to make a wrong promise about where data lives.
Google ADK is open source and designed to be deployed anywhere: containerized on your own infrastructure, or deployed to Google Cloud with a single command. So all three can run on infrastructure the project team controls. Where they differ is language.
Take a bank that only allows software to run in its own data center, and whose in-house team writes Java. ADK has Python, TypeScript, Go, Java and Kotlin versions, so it belongs at the top of the list.
Claude Agent SDK offers only Python and TypeScript libraries. For other languages, Anthropic’s documentation describes running the Claude Code CLI as a subprocess and reading its JSON output. That works, but the client’s team will have to maintain an extra integration layer.
Has the client chosen a model, or do they want the option to switch?
Many clients already have a contract with a model provider. Others want to keep the option of switching later. The two groups need different advice.
OpenAI Agents SDK supports non-OpenAI models through Any-LLM and LiteLLM, but the documentation classes both integrations as beta, supported on a best-effort basis.
If the client runs another model, you have to verify that provider yourself on the project’s actual flows before committing to anything. ADK, by contrast, describes itself as working with almost any generative model, not only Gemini, through adapters to each provider.
Claude Agent SDK is built around Claude Code’s own agent. It is best treated as the option for clients who have already decided on Claude, not as a middle layer for swapping models back and forth. The advice here is simple: if the client says “we’re not sure which model yet,” do not pick an SDK on your team’s preference and hope the adapter will be good enough.
Who has the power to block a dangerous action?
An agent that can call tools can do real things: write files, call APIs, change data. So the client’s security team will ask what stops it from doing the wrong thing. Anthropic’s documentation answers in detail.
According to Anthropic’s permissions documentation, every tool call is evaluated in a fixed order: hooks, deny rules, ask rules, permission mode, allow rules, then the canUseTool callback. Hooks run before everything else.
A deny hook still applies even when the agent is in bypassPermissions mode. For agents running headless, Anthropic recommends combining allowedTools with permissionMode “dontAsk” to lock down the set of permitted tools.
OpenAI Agents SDK is deliberately minimal, with only a few primitives: agents, handoffs that let one agent pass work to another, guardrails, and built-in tracing. The trap is in the guardrails. Input guardrails run only on the first agent in a chain, and output guardrails only on the last.
Say a customer-service deployment chains three agents, and the middle one is allowed to issue refunds. If you put your checks in an input guardrail and assume it covers the whole chain, the middle agent is never checked at any step.
The fix is to put the check on the refund tool itself. The SDK has tool guardrails for this: according to the documentation, they run on every call to a function tool that has a guardrail attached, checking the input before the tool runs and the output after.
Spell this out in the design document you send the client. Their security team will ask exactly that question, and you should have the answer ready before they do.
Who reads the traces, and how is quality measured?
The fourth question tends to get pushed to month two, when the client asks why the agent gave a wrong answer on Tuesday. Each SDK answers it differently.
OpenAI Agents SDK has built-in tracing, on by default, which is very convenient for debugging. But as noted at the top, clients under a Zero Data Retention policy will not get it. For them, you have to build the observability layer yourself from the start.
According to Google Cloud documentation, ADK has built-in evaluation tools, plus partner tools, for checking an agent’s execution trajectory: whether the final answer is right and also which steps the agent took to get there.
For clients who must prove an agent follows a process, such as application review, that is a real advantage.
Claude Agent SDK has hooks for running code at key points in the agent lifecycle, along with sessions, subagents and MCP. Hooks are the natural place to attach observability.
One approach with Claude Agent SDK is to use a hook to log every tool call into the client’s logging system, then build a test suite on that data. It takes effort to set up, but the data stays entirely in the client’s hands.
Four questions, three answers
Each set of documentation covers only its own product. Only by placing their answers against the same questions do you see where each is strong and where you need to ask more.
| Question for the client | Claude Agent SDK | OpenAI Agents SDK | Google ADK |
|---|---|---|---|
| Where does the agent run, and who operates it? | Python/TypeScript library in a process the project team operates; for hosting, use Managed Agents | Python library running in the project team’s process, plus a sandbox agent | Open source, with Go and Java versions; containerized on your own infrastructure or on Google Cloud |
| Which model, and can it be swapped? | Built around Claude Code’s agent | Non-OpenAI models run through beta, best-effort adapters | Works with almost any generative model |
| Who blocks dangerous actions? | Hooks run before every step; deny hooks apply even in bypassPermissions | Input guardrails only on the first agent, output only on the last; tool guardrails run on every call to a tool they are attached to | The overview documentation does not describe a tool-blocking mechanism; test it on the client’s own flows before committing |
| Who reads traces, and how is quality measured? | Hooks run code at key points and can log every tool call | Tracing on by default, but unavailable under Zero Data Retention | Built-in eval tools for execution trajectories |
The table crowns no winner. What it shows is which question rules out which SDK. A client under Zero Data Retention who still needs observability is a reason to think again about OpenAI Agents SDK.
A client that needs Go or Java gives ADK a clear advantage, while Claude Agent SDK can only be reached the long way round, through the CLI. A client that has chosen Claude and has a demanding security team is the audience for Anthropic’s ordered permission model.
What to practice next
According to one tutorial, building a demo and stopping there is the least useful way to learn agents for FDE work.
The most effective practice is to build the same agent on two SDKs and then break it on purpose: let a dangerous tool slip past a guardrail, turn off tracing, switch to a different model.
When reading job descriptions, watch for phrases such as “on-prem”, “data residency”, “Zero Data Retention”, “GCP” or “Java”. Those are the constraints that will decide which SDK gets chosen.
On a CV, instead of “experienced with LangChain and agent frameworks”, write a line like: “chose the SDK for an application-processing agent based on data-retention requirements and control over tool-call permissions.”
That sentence shows you have sat with a real client.
Frameworks will keep changing with every release. The four questions change far less, and the FDEs who ask them before writing code are usually the ones who end up rewriting the least.
Was this article useful?
Thanks for the feedback!