agents/apiTHE ENCYCLOPEDIA
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

38 matching topics

What is the OpenAI Agents API?FoundationsAgents API vs Agents SDK vs Responses APIComparisonsAgents API quickstartGetting startedSessions, turns & durable stateCore conceptsHosted vs self-hosted sandboxesInfrastructureConnect MCP servers to Agents APITools & integrationsFunction calling & application toolsTools & integrationsMulti-agent orchestrationCore conceptsStreaming, webhooks & event handlingIntegration guidesFiles, outputs & published artifactsCore conceptsVaults & MCP authenticationTools & integrationsAgent security & credential boundariesProductionTracing, usage & debuggingProductionAgents API pricing & cost planningProductionOpenAI Agents API with PythonGetting startedAgents API with TypeScript & Next.jsIntegration guidesWhat is the OpenAI Agents SDK?FoundationsResponses API in the agent stackFoundationsAgent Skills & SKILL.mdTools & integrationsProgrammatic Tool CallingTools & integrationsRAG, file search & vector storesTools & integrationsWeb search & source citationsTools & integrationsChatKit & Agent BuilderIntegration guidesAgent configuration & reusable definitionsCore conceptsPlugins: connect skills and MCP toolsTools & integrationsSandbox lifecycle & executor connectionsInfrastructureWebhook verification, queues & deduplicationIntegration guidesAgent retries, timeouts & failure recoveryProductionAgent evaluations & regression testingProductionWhich parts of the agent stack do you need?FoundationsAgents API contract quick referenceIntegration guidesOrder agent reference: approval, recovery & evaluationIntegration guidesBuild a Next.js order agent: server, tools & streamingIntegration guidesPython Agents API example with a real tool loopGetting startedHuman approval & prompt injection defensesProductionAgents API troubleshooting: symptoms, checks & recoveryProductionAgent tool support & runtime ownership matrixComparisonsAgent resources, relationships & task stateCore concepts
K to open Esc to close