agents/api
Comparisons

Agent tool support & runtime ownership matrix

Compare where orchestration, function handlers, MCP connections, and compute belong before reusing an integration.

Choose runtime
Choose tool
Identify executor
Check schema
Test permissions

Compare responsibilities, not matching names

A feature name does not establish interchangeable request fields. This matrix describes ownership and integration paths, not an exhaustive model-by-model capability guarantee. Check the chosen runtime's reference for exact schemas and availability.

Compare responsibilities, not matching names
ConcernAgents APIAgents SDKResponses API
Agent loopOpenAI-managed harnessRunner in your applicationApplication-managed orchestration
Custom functionsYour handler returns required-action resultsApplication tool implementation runs through SDKYour code returns function outputs
Conversation stateDurable managed sessionSDK session/storage integrationResponse/conversation state plus application logic
MCPConfigure supported connection origin and credentialsConnect through SDK's MCP integrationUse documented remote MCP tool interface
Compute and filesOptional hosted or self-hosted environmentApplication or sandbox integrationConfigure supported tools; not an Agents API environment
User authorizationYour applicationYour applicationYour application

No environment versus compute

With environment.type none, remote MCP and application functions can serve external data. Built-in shell, apply-patch, workspace files, and executor-local MCP are not available without an environment. Choose hosted or self-hosted compute when the task needs those capabilities. An application can expose its own function-based service, but that does not create a built-in sandbox.

Search and knowledge are integration choices

Do not copy a Responses file-search or vector-store configuration into agent.tools without checking support. Identify whether retrieval is a runtime-hosted tool, a remote MCP service, or your own function handler. The same retrieval backend can sit behind different interfaces; conversation history and a searchable knowledge index serve different purposes.

Use a compatibility checklist

Check the model, SDK version, tool schema, connection origin, network reachability, credentials, result format, and approval path. Run one authorized success case and one denied case. Reuse business logic where appropriate, while adapting the surrounding lifecycle and result envelope to the destination runtime.

Read the official reference

Check the source for current API fields, account requirements, and service limits.

OpenAI: architecture Agents API functions Agents overview