
An AI agent framework can determine how an application executes tasks, accesses business systems, delegates work, maintains context, and handles failures. Choosing one based on its number of tools or supported models tells us very little about whether it will fit the application being built.
Consider an agent responsible for reviewing supplier contracts. It needs to read several documents, extract payment terms, check supplier records, compare clauses against company policy, and prepare a recommendation. It may also need to create a procurement record.
The difficult part isn't extracting the payment terms. It's controlling what happens after extraction. The agent can recommend a contract, but should it be allowed to approve one? Can it access supplier payment details? Where do its credentials live? If a document contains instructions that conflict with the application's rules, which instructions take precedence? And if the agent stops halfway through, can the application resume the task without repeating completed operations?
These questions expose the architectural differences between the Claude Agent SDK, OpenAI Agents SDK, and Google Agent Development Kit (ADK).
Claude provides an agent runtime built around the capabilities of Claude Code. OpenAI offers an application-controlled agent harness, with orchestration and sandbox execution capabilities. Google ADK provides a code-first framework for composing agents and controlling workflows.
All three can support sophisticated agent applications. But they distribute execution, control, and application responsibility differently.
For CTOs and engineering leaders, the decision should come down to the workload, the trust boundaries, the existing technology stack, and the amount of control the application needs to retain.
1. First understand what an agent framework actually controls
An AI agent application has more moving parts than a model connected to a few tools. A useful architecture separates five responsibilities.
|
Component
|
Engineering responsibility
|
|
Model
|
Interprets instructions, processes context, and proposes actions
|
|
Agent runtime
|
Manages execution turns, tool calls, delegation, and task progression
|
|
Tool environment
|
Provides access to files, APIs, databases, command execution, and external services
|
|
Application control layer
|
Enforces identity, permissions, business rules, approvals, and transaction validation
|
|
State and observability
|
Maintains execution continuity and records what happened
|
The placement of these components matters.
A coding agent may need a filesystem and shell environment where it can inspect files, run tests, and modify code. A customer-service agent may need access to CRM records but no ability to execute arbitrary commands. A procurement agent may need to interpret documents while the application retains control of supplier records and purchase approvals.
These workloads should not automatically share the same execution model.
The difference between an agent runtime and an execution environment
The agent runtime decides what to do next. The execution environment provides somewhere to do it.
For example, a model may decide that it needs to inspect a spreadsheet. The runtime processes that decision and invokes a file-reading tool. The tool accesses the file in an available environment and returns the result.
In a more complex system, the runtime and the environment can operate separately. The trusted application may retain the agent loop and credentials while a sandbox handles file processing or command execution.
This separation is central to understanding the newer OpenAI Agents SDK architecture. It is also useful when evaluating Claude-based coding agents and other workspace-oriented systems.
A framework comparison that ignores this distinction will miss one of the most important decisions in agent development: where should untrusted, model-directed execution happen, and who should retain authority over the application?
2. Claude Agent SDK: Bring the Claude Code agent runtime into your application
The Claude Agent SDK provides programmatic access to the agent capabilities associated with Claude Code. Instead of writing an entire tool-execution loop around direct model calls, developers can use the SDK to run an agent with configured instructions, tools, permissions, sessions, and hooks.
Its design is particularly relevant when an agent needs to operate within a workspace.
That workspace might contain a software repository, a collection of technical documents, research files, or other material the agent needs to inspect and modify.
How the runtime handles a task
Consider a software maintenance agent investigating a failing payment integration.
The task may require several operations:
- Read project instructions and understand the repository structure.
- Locate the payment service and its dependencies.
- Inspect the failing integration tests.
- Read related implementation files.
- Identify the likely source of the failure.
- Modify the relevant code if authorised.
- Run the tests and examine the results.
The agent needs to move between these operations based on what it discovers. A failed test may lead it to inspect another file. A code change may require another test run. The result of one tool call influences the next decision.
Claude's runtime supports this style of execution through built-in tools, including file operations and command execution. Developers can also configure custom tools and connect external services through MCP.
The important distinction is that the SDK provides an agent runtime with workspace-oriented capabilities. It is not simply a wrapper around a model API.
query() versus ClaudeSDKClient: Choosing the right interaction pattern
The SDK offers two important ways to interact with an agent.
query() is suitable for stateless interactions. Each call starts a task without automatically carrying conversation memory from previous independent calls.
ClaudeSDKClient supports a stateful client session, allowing an application to maintain an ongoing interaction with the agent.
The difference affects how an application manages context.
A scheduled document audit might run as a fresh task each time. An interactive development assistant may need to retain the current investigation while an engineer asks follow-up questions, supplies another file, or changes the requested scope.
The application should choose the interaction pattern according to the task's continuity requirements. It should not assume that separate query() calls share history.
Subagents: Separate investigations without losing the main task
Claude supports specialist subagents that can work on focused subtasks with their own instructions and tool access.
Take a security review of a software repository. The main agent could delegate authentication checks, dependency analysis, and sensitive-data handling to separate specialists.
Each specialist examines its assigned area and returns findings. The parent agent then consolidates the results into the wider review.
This is useful when tasks can be separated without requiring every specialist to hold the full context of the original assignment.
However, delegation introduces additional design questions:
- What information should the parent pass to each subagent?
- Which tools should each specialist be allowed to use?
- How should conflicting findings be resolved?
- What happens if one specialist fails or returns incomplete information?
- Should independent investigations run concurrently?
The framework provides delegation capabilities. The application still needs a clear definition of responsibility and expected output.
More agents do not automatically produce better results. They can increase model usage, context overhead, latency, and the number of failure paths that need testing.
Hooks and permissions: Control what happens around tool execution
Claude provides hooks that let developers run custom logic at points in the agent lifecycle. For example, a pre-tool hook can inspect a proposed operation, while a post-tool hook can record the result.
This is useful for validation, audit logging, and controlling particular operations.
Permission configuration is a separate concern. Developers can determine which tools are available, which operations require approval, and which can execute automatically under the configured permission mode.
These controls should reflect the agent's actual role.
A document reviewer may need permission to read files but not modify them. A code assistant may need to edit files inside a project directory but should not have unrestricted access to the host machine. A procurement agent may need to retrieve supplier information without having authority to approve a purchase.
The important distinction is between tool availability and permission to execute a tool. Removing a tool from an agent's available capabilities is not the same as asking for approval whenever that tool is used.
Where Claude Agent SDK makes sense
The SDK is worth evaluating when the application requires:
- Coding agents that inspect, edit, and test repositories.
- Technical research across large collections of files.
- Document-processing agents with workspace access.
- Multi-step tasks involving command execution.
- Specialist agents that investigate separate parts of a larger assignment.
Its close relationship with Claude Code is also a consideration. Teams should understand the runtime conventions, tool permissions, and deployment requirements before making it a core dependency.
One more distinction matters: Claude Agent SDK and Anthropic Managed Agents are separate execution options. The SDK runs in a process operated by the application team. Managed Agents provides a hosted agent harness with its own session and environment model. They should not be treated as interchangeable products.
Engineering implication: Claude Agent SDK is a natural fit when the agent needs to work directly with a controlled workspace. Keep sensitive business credentials and privileged transactions behind application services rather than exposing them indiscriminately to the agent environment.
3. OpenAI Agents SDK: An application-controlled agent harness with sandbox execution
OpenAI Agents SDK is built around a small set of composable primitives. These include agents, tools, handoffs, agents-as-tools, guardrails, sessions, and tracing.
The Runner manages the agent loop. It processes model responses, executes tool calls, handles handoffs, and continues the interaction until the run reaches a stopping point.
The SDK runs inside the application. The development team controls deployment, tool implementations, storage choices, approval decisions, and integration with the existing product.
That application ownership is important for enterprise systems where an agent must work with internal services without becoming the authority over those services.
Handoffs and agents-as-tools: Two different forms of delegation
OpenAI provides two distinct ways for agents to work together.
Handoffs transfer control to another agent.
Imagine a customer-support agent receives a billing complaint. It identifies that the issue requires specialist attention and hands the conversation to a billing agent.
The billing agent takes over the interaction and handles the next stage.
This pattern is suitable when the specialist should own the response after routing.
Agents-as-tools keep the main agent in control.
Now consider a customer enquiry that needs information from payments, fraud analysis, and customer history.
The main agent can call these specialists as tools, receive their findings, and combine the results before responding.
The original agent remains responsible for the final answer.
This difference is important when designing multi-agent workflows. A specialist that owns a conversation is not the same as a specialist that provides information to a central decision-maker.
Use a handoff when responsibility genuinely changes. Use an agent as a tool when the main agent needs specialist capabilities but should retain control.
Sandbox agents: Separating trusted orchestration from workspace execution
One of the most significant additions to the OpenAI Agents SDK is native sandbox-agent support.
Many agents need a working environment where they can read and write files, run commands, install packages, inspect project structures, and generate artifacts. Providing all these capabilities directly inside the trusted application can create unnecessary security and operational risks.
The sandbox architecture separates the agent harness from the compute environment.
The trusted application retains responsibility for orchestration, credentials, business tools, approvals, and other privileged operations. The sandbox provides an isolated execution environment that the agent can use when a task requires it.
Consider a contract-analysis application.
The agent may need to process a collection of uploaded contracts, run extraction scripts, compare documents, and generate a report. Those workspace operations can happen inside a sandbox. The application retains control over which documents are supplied, which business systems can be accessed, and whether the resulting recommendation can trigger an action.
This separation is valuable because model-directed code execution and access to privileged business systems do not need to share the same trust boundary.
The SDK also supports sandbox integrations, workspace manifests, mounted files, snapshots, and resumable sandbox state. These capabilities help when a task involves large document sets or work that continues across multiple execution stages.
The sandbox is not automatically a security solution, though. It still needs controlled inputs, restricted access, and validation of the results returned to the application.
Guardrails, approvals, and application authority
OpenAI Agents SDK provides guardrails for input and output validation. It also supports human review and interruptions for operations that require approval.
These mechanisms serve different purposes.
A guardrail can check whether a request or response meets defined conditions. An approval step can pause a run before a consequential action takes place.
Consider an expense-processing agent. It extracts invoice information, checks a purchase order, and prepares a payment recommendation. The application should still verify the employee's approval authority and the company's payment limits before releasing the payment.
The model can recommend an action. It should not become the final authority over whether the action is permitted.
Sessions, resumable state, and tracing
The SDK supports sessions and other continuation strategies for maintaining context across interactions. It also provides run-level information that can help applications inspect results and resume interrupted work.
Tracing gives engineers visibility into model calls, tool execution, handoffs, and other parts of the run.
This becomes important when a workflow fails after several agents and tools have interacted. The final response may show that the task was incomplete, but the trace can help identify whether the failure came from a tool, an agent transition, a validation step, or an interrupted run.
There is a data-handling qualification: OpenAI documents restrictions on built-in tracing for organisations using its APIs under a Zero Data Retention policy. Applications with strict retention requirements need to plan observability accordingly.
Where OpenAI Agents SDK makes sense
Evaluate it when:
- The agent is part of an existing application or product.
- The host application must retain control of credentials and business operations.
- Several specialist agents need to collaborate.
- The workload requires file and command execution in an isolated workspace.
- Approval interruptions and execution tracing are important.
- The team needs control over deployment, storage, and runtime integration.
Engineering implication: OpenAI Agents SDK is particularly relevant when the application must own the orchestration and business authority while delegating selected tasks to agents and isolated execution environments.
4. Google ADK: Model-driven agents inside a defined execution structure
Google Agent Development Kit approaches agent development through composition. Developers can define agents, tools, callbacks, and workflows, then organise them into a larger application.
Its value becomes clearer when a business process contains both interpretive work and mandatory steps.
Consider supplier onboarding. An agent may need to extract information from documents, interpret inconsistent company names, and identify unusual clauses. But the process also has fixed requirements: mandatory fields must be present, existing supplier records must be checked, and approval must happen before a new supplier account is created.
These are different types of work. An LLM can interpret a document, but it should not decide that a mandatory compliance check can be skipped.
Workflow composition: Control the process rather than asking the model to remember every step
ADK supports structured workflow execution alongside LLM-driven agents.
Its earlier workflow patterns included:
- SequentialAgent for running stages in sequence.
- ParallelAgent for concurrent branches.
- LoopAgent for repeated execution.
However, the current Python and TypeScript documentation marks these template workflow agents as deprecated in favour of graph-based workflows. Developers building new implementations should follow the current graph workflow guidance rather than copy older examples without checking their status.
The architectural idea remains important: a process can define which stages must run, which branches can execute independently, and what conditions determine the next step.
An LLM-driven agent can handle document interpretation or ambiguous information. The workflow controls the process around that work.
Example: Supplier onboarding with conditional execution
A supplier onboarding process may involve:
- Extracting company details from submitted documents.
- Checking mandatory tax and registration fields.
- Searching existing supplier records.
- Reviewing supporting documents.
- Sending exceptions to a compliance reviewer.
- Creating the supplier record after approval.
Document extraction and interpretation can benefit from an LLM. Mandatory-field validation should be deterministic. Duplicate checks should follow defined matching rules. Approval must depend on the user's authority.
A graph-based workflow can represent these stages and their conditions. If the tax information is missing, the process can move to an exception path rather than continue towards supplier creation.
This is a better fit than relying on one long prompt to instruct the agent to remember every mandatory step.
State management: Keep workflow progress separate from business records
ADK provides session and state-management services for sharing information across agent interactions.
For example, a document-extraction stage can write structured supplier details into session state. A validation stage can then read those values without repeating the extraction.
But session state should not become the permanent business record.
An enterprise application needs to distinguish between:
- Conversation history: what the user and agent discussed.
- Workflow state: which stages have completed and what information is needed next.
- Business records: the authoritative supplier, invoice, or purchase-order information.
A supplier's approval status belongs in the appropriate business system. The workflow can reference that status, but a conversation transcript should not be treated as proof of approval.
Callbacks and tool boundaries
ADK provides callbacks that let developers inspect or influence parts of the agent lifecycle.
They can support validation, logging, policy checks, and other application-specific behaviour around agent and tool execution.
For example, a callback can inspect a proposed supplier-record update and check whether the required approval is present. The underlying supplier service should still enforce authorisation independently.
This is an important design principle: framework-level controls can help coordinate policy, but critical business rules should remain enforceable at the service or data-access layer.
Language and ecosystem considerations
ADK has implementations across Python, TypeScript, Java, and Go. This makes it worth considering for engineering teams working across different service languages.
It has strong alignment with Google's model and cloud ecosystem, including Gemini and Vertex AI. However, it should not be treated as a Gemini-only framework. Model integrations and deployment options need to be assessed against the specific implementation.
Also check feature maturity across languages. Support for a capability in one SDK implementation does not automatically establish identical behaviour or release maturity in another.
Where Google ADK makes sense
Evaluate it when:
- The process contains mandatory stages and conditional branches.
- LLM interpretation needs to sit inside a controlled workflow.
- Several agents have distinct responsibilities.
- The application needs structured state and workflow progression.
- The engineering team works across Python, TypeScript, Java, or Go.
- The architecture needs to integrate with Google's model and cloud ecosystem.
Engineering implication: ADK is a strong candidate when the process itself needs an explicit execution structure and the LLM should handle defined decision points rather than control every transition.
5. The same business application, three different architectures
A feature comparison can show what each SDK supports. It cannot explain what developers must build around it.
Let's use one demanding scenario: a procurement application receives a purchase request, reviews supporting documents, checks supplier information, verifies stock, applies purchasing policy, and prepares an order for approval.
The application must also prevent duplicate orders and preserve an auditable record of who approved the transaction.
How Claude Agent SDK would approach it
The agent works through a configured environment and can delegate separate investigations to specialist subagents.
One agent can extract information from the request. Another can review supporting documents. The parent agent can consolidate the findings and prepare a recommendation.
The application must define the available tools and permission boundaries. The agent may prepare an order payload, but the actual order submission should pass through a procurement service that validates the supplier, checks approval status, and prevents duplicate transactions.
This approach is attractive when the task involves substantial document or workspace activity.
How OpenAI Agents SDK would approach it
The host application can retain orchestration and expose supplier lookup, stock checking, and policy validation through application tools.
A central agent can call specialist agents as tools and combine their results. If another specialist should take ownership, a handoff can transfer control.
Document processing can happen in a sandbox, while the trusted application retains business credentials and approval logic.
Before order submission, the run can pause for an authorised employee. Once approval is received, the application can resume the workflow and execute the permitted transaction.
This structure suits an application where business authority needs to remain with the host service.
How Google ADK would approach it
The procurement process can be represented as a workflow with defined stages and conditional transitions.
An LLM-driven agent can interpret the purchase request and extract information. Other stages can validate supplier details, stock availability, and purchasing limits.
If a required field is missing or a policy condition fails, the workflow can route the request to an exception path. Order creation remains blocked until the required conditions are met.
This structure suits a process where stage order and exception handling must be explicit.
What changes for the engineering team?
|
Architectural decision
|
Claude Agent SDK
|
OpenAI Agents SDK
|
Google ADK
|
|
Execution approach
|
Agent runtime operating through configured tools
|
Application runner coordinating agents and tools
|
Agent composition with structured workflow execution
|
|
Specialist work
|
Subagents return focused findings to the parent
|
Handoffs transfer control; agents-as-tools return results
|
Agent delegation and workflow stages
|
|
Workspace execution
|
Built-in fit for file and command-oriented tasks
|
Isolated sandbox execution
|
Depends on configured tools and runtime
|
|
Business-system authority
|
Must be separated from agent tool access
|
Can remain in the trusted application
|
Enforced through application integrations and workflow controls
|
|
Mandatory process order
|
Requires explicit application or workflow logic
|
Requires explicit orchestration
|
A central workflow design concern
|
|
Main engineering question
|
What can the agent access and execute?
|
What should the host application retain control over?
|
Which stages are fixed and which require model judgement?
|
All three can support the procurement application. The difference is how naturally their execution models express its requirements and how much supporting architecture the development team must build.
6. The engineering costs that rarely appear in framework demos
A successful demonstration usually has clean input, valid credentials, responsive APIs, and a task that fits the expected path.
Production systems encounter incomplete records, concurrent users, expired tokens, unexpected tool responses, and operations that complete even when the agent never receives confirmation.
These situations expose the real cost of an architecture.
1. Provider and runtime dependency
A framework can become deeply embedded in an application through its agent definitions, tool interfaces, session handling, delegation patterns, and event structure.
Switching frameworks may therefore require more than changing the model endpoint.
A practical way to limit this dependency is to keep business operations behind application-owned interfaces. A supplier lookup service should have a stable contract regardless of whether Claude, OpenAI, or ADK decides when to call it.
This does not make migration effortless. It prevents the framework from becoming the only place where business logic exists.
2. State recovery and idempotency
Suppose an agent submits a purchase order. The procurement API creates the order, but the response times out before the agent receives confirmation.
The agent may attempt the operation again.
Without duplicate protection, the application could create two orders for one request.
This is why execution state and transaction state need separate treatment. Use transaction identifiers, idempotency keys, retry limits, and reconciliation checks. Before repeating an operation, the application should determine whether the original request completed.
This is particularly important for payments, bookings, inventory adjustments, and other operations where repeating an action changes the business outcome.
3. Prompt injection and tool permissions
Agents often process information from emails, documents, web pages, and customer messages. Those sources may contain instructions that attempt to override the agent's intended behaviour.
A supplier document might contain text asking the agent to reveal internal information. A customer message might ask it to change account details.
External content should be treated as data, not as authority.
Restrict tools according to the agent's role. Keep credentials scoped. Validate sensitive operations in the application. Isolate file and command execution where required. An agent that can read a document should not automatically be allowed to execute instructions found inside it.
4. Observability across multiple agents
When several agents and tools participate in a task, the final response does not explain the entire execution.
The engineering team needs to identify which agent acted, which tool it called, what result came back, whether control moved to another agent, and where the process stopped.
The monitoring design should also account for latency, model usage, tool failures, and execution cost.
Traces must be useful without unnecessarily storing confidential documents, credentials, or sensitive customer information.
5. Evaluation must measure the business outcome
An agent can produce a convincing response while making the wrong change.
A procurement agent might summarise a request correctly but select the wrong supplier. A support agent might tell a customer that a refund was processed when the payment API rejected it.
Testing only the generated response will miss these failures.
Evaluation should check whether the correct record was updated, whether approval was obtained, whether duplicate operations were prevented, and whether the workflow stopped when a mandatory condition failed.
The response matters. The actual business result matters more.
7. How to evaluate the three frameworks before committing
Do not build three polished demonstrations that only show successful execution. Use one representative workflow and test the cases most likely to expose architectural weaknesses.
For the procurement scenario, keep the business rules and test data consistent.
|
Test scenario
|
What it reveals
|
|
Complete purchase request
|
Whether the expected workflow executes correctly
|
|
Missing supplier details
|
Whether mandatory validation stops progression
|
|
Conflicting supplier records
|
Whether the system escalates ambiguity instead of guessing
|
|
Purchase above approval limit
|
Whether the approval boundary is enforced
|
|
API timeout after order submission
|
Whether retries create duplicate orders
|
|
User without approval rights
|
Whether unauthorised operations are blocked
|
|
Malicious instructions inside a document
|
Whether untrusted content can influence privileged actions
|
|
Interrupted workflow
|
Whether execution resumes without repeating completed operations
|
Then compare the implementation effort:
- How much custom orchestration code did the team need?
- Where are permissions actually enforced?
- Can engineers identify the cause of a failed run?
- Can the application resume interrupted work?
- Can business services operate independently of the agent framework?
- How much effort would it take to change the model provider or replace the SDK?
A framework that makes the first demonstration quick but requires extensive custom work for approvals, recovery, and monitoring may become more expensive over the application's lifetime.
8. Which AI agent framework should you choose?
The decision should follow the application's main execution requirement.
|
Application requirement
|
Framework to evaluate first
|
Why
|
|
Coding agents working with repositories, files, and commands
|
Claude Agent SDK
|
Its runtime is built around workspace-based agent execution
|
|
Application-controlled orchestration and business tool access
|
OpenAI Agents SDK
|
Its runner, handoffs, agents-as-tools, and sandbox patterns support this architecture
|
|
Defined processes with mandatory stages and conditional routing
|
Google ADK
|
Workflow composition separates process structure from model reasoning
|
|
Specialist agents returning findings to one central decision-maker
|
OpenAI Agents SDK or Claude Agent SDK
|
Both support delegation, but their execution models differ
|
|
Multi-language engineering environment
|
Google ADK
|
Its SDK ecosystem includes Python, TypeScript, Java, and Go
|
There is no reason to make an LLM responsible for every operation in an application.
A conventional service should handle payment authorisation, account permissions, and transaction validation. A workflow engine can control mandatory process stages. An agent can interpret an unstructured document, classify an enquiry, or decide which approved tool to call.
This division is often easier to test, secure, and maintain than an agent with broad authority over the entire application.
The framework should support the architecture. It should not become a substitute for one.
Building AI agents around real business operations
At Rushkar Technology, we approach AI agent development by examining the work the agent needs to perform before selecting its framework. That includes the data it can access, the applications it must connect with, the decisions it can make, and the operations that require human approval.
Our work covers agent architecture, custom tool development, LLM integration, workflow orchestration, and integration with existing applications. We focus on fitting the agent into the organisation's operating requirements rather than forcing the application around a framework's default patterns.
If your team is evaluating an AI agent for procurement, customer operations, document processing, internal knowledge, or software engineering, start with the workflow and its control requirements.
Explore our AI Agent Development Services or discuss your AI application requirements with our team.