{
  "format": "agent-article-v0",
  "article_id": "GX-0015",
  "content_family": "GX",
  "public_kind": "ARTICLE_PRODUCT",
  "revision_id": "GX-0015-R20261020-01",
  "canonical_url": "/providers/gx-0015-openai-agents-sdk-handoffs",
  "page_type": "reference",
  "claim_ids": [],
  "evidence_ids": [],
  "unknown_ids": [
    "GX-0015-UNKNOWN-01"
  ],
  "operational_object_ids": [],
  "provider": [
    "OpenAI"
  ],
  "models": [
    "Python and TypeScript handoffs"
  ],
  "plans": [],
  "surfaces": [
    "agent control transfer"
  ],
  "regions": [],
  "current_status": "CURRENT",
  "observation_status": "UNOBSERVED",
  "freshness": "CURRENT",
  "last_verified": "2026-10-20",
  "supersedes": [],
  "superseded_by": [],
  "provenance": [],
  "article_sources": [],
  "research_sections": [
    {
      "heading": "要点と前提",
      "text": "OpenAI Agents SDKのHandoffsは、あるagentから別のagentへ会話の制御を移す機構です。handoffはLLMからtoolとして見え、既定では `transfer_to_<agent_name>` の形式になります。専門agentを元agentの背後でtoolとして呼ぶmanager patternとは異なり、handoffでは受信側agentが会話を引き継ぎます。"
    },
    {
      "heading": "Current version / availability",
      "text": "2026年10月20日時点のauthor-maintained Python/TypeScript Agents SDK documentationでHandoffsは現行機能です。Agentの `handoffs` にはAgentを直接指定するか、`handoff` で生成したHandoff objectを指定できます。"
    },
    {
      "heading": "主要機能",
      "text": "`handoff` では移行先agent、tool name/description override、`on_handoff` / `onHandoff`、`input_type` / `inputType`、`input_filter` / `inputFilter`、`is_enabled` / `isEnabled` 等を構成できます。`input_type` はhandoff tool callの引数schemaで、model-generated routing metadata用です。既定では受信側agentはそれまでのconversation historyを参照し、転送内容を減らす場合は明示的なinput filterを用います。"
    },
    {
      "heading": "Authorization boundary",
      "text": "`is_enabled` はモデルへ公開するhandoffを準備する段階で評価されるため、モデルが後から生成するhandoff引数値の認可には使えません。引数値に依存するauthorizationはapplication side effectより前にhandoff callbackで検証します。tool input guardrailsはfunction tools向けでありhandoff自体には適用されません。"
    },
    {
      "heading": "History / data exposure boundary",
      "text": "Python SDKの現行documentationではnested handoff historyはopt-in betaで既定無効です。summary化はredactionではなく、tool argumentsやoutputsがsummary textへ残り得ます。server-managed conversations (`conversation_id`, `previous_response_id`, `auto_previous_response_id`) はhandoff input filtersをサポートしません。TypeScript SDK documentationもfiltered handoffでは `conversationId` / `previousResponseId` を利用できないと明記しています。"
    },
    {
      "heading": "Guardrail / run boundary",
      "text": "Handoffsは単一run内に留まります。input guardrailsはchainの最初のagent、output guardrailsは最終outputを生成するagentに適用されます。途中のcustom function-tool callごとに検査が必要な場合はtool guardrails等を別途配置します。"
    },
    {
      "heading": "Failure / limit / 適用境界",
      "text": "- handoff先の選択はmodel decisionを含むため完全なrouting guaranteeを仮定しません。\n- `input_type` はapplication stateの正本ではありません。\n- `is_enabled` はhandoff argument値に依存するauthorizationを代替しません。\n- nested historyやtool-item除去は機密情報のredactionを自動保証しません。\n- server-managed historyとhandoff filteringには組合せ制約があります。\n- handoffはworkflow全体のtransaction boundaryではありません。外部side effectは各system of recordでreadbackします。"
    },
    {
      "heading": "運用control",
      "text": "handoff destination、tool contract、input schemaをversion管理し、authorizationをmodel routingから分離します。agentごとに必要最小限のhistory/dataだけを渡し、handoff発生、source/destination、validated metadata、authorization result、外部side effectをtraceへ残します。SDK更新時はrouting、history forwarding、guardrail coverage、server-managed conversationとの組合せをregression testします。"
    },
    {
      "heading": "Unconfirmed",
      "text": "- opt-in betaであるnested handoff historyの将来のdefault・representation変更時期は固定しません。\n- model別のhandoff選択精度はprompt、tool description、model revision、候補destinationに依存するため一律値を断定しません。\n- provider内部のtool-selectionやretry policyは公開仕様を超えて推測しません。"
    },
    {
      "heading": "Source / provenance",
      "text": "- OpenAI Agents SDK (Python), “Handoffs”, live readback 2026-10-20: https://openai.github.io/openai-agents-python/handoffs/\n- OpenAI Agents SDK (Python), “Running agents / RunConfig”, live readback 2026-10-20: https://openai.github.io/openai-agents-python/running_agents/\n- OpenAI Agents SDK (TypeScript), “Handoffs”, live readback 2026-10-20: https://openai.github.io/openai-agents-js/guides/handoffs/\n- OpenAI Agents SDK (TypeScript), Handoff class reference, live readback 2026-10-20: https://openai.github.io/openai-agents-js/openai/agents/classes/handoff/"
    }
  ],
  "human_url": "/providers/gx-0015-openai-agents-sdk-handoffs",
  "markdown_url": "/agent/article.md?path=%2Fproviders%2Fgx-0015-openai-agents-sdk-handoffs",
  "json_url": "/agent/article.json?path=%2Fproviders%2Fgx-0015-openai-agents-sdk-handoffs"
}