New Tool Radar

AI Agents & Automation

How to Hand Off an Agent Task to a Specialist With a Clear Summary

Hand off an agent task to a specialist agent with a short summary of the goal, facts found and what is still missing.

Schematic with three steps: Write the summary the handoff will carry; Hand off with the summary, not just; Run the test request and check for.

A handoff fails when the receiving agent has to re-do the first agent’s work because it was given only the original question. In the OpenAI Agents SDK a handoff transfers the conversation to another agent, and the handoff can carry input data such as a summary. Write that summary before the handoff: the goal in one sentence, the facts already found, and what is still missing. The specialist should be able to start from the summary alone, without re-reading the whole conversation.

What you need

  • Two agents: a first agent that triages and a specialist that does the work
  • A handoff configured from the first agent to the specialist
  • One test request that should be handed off

Step 1: Write the summary the handoff will carry

Define the handoff input as three fields: goal, facts found so far, and what is still missing. Keep each field to one or two sentences.

Step 2: Hand off with the summary, not just the question

Configure the handoff so the specialist receives the summary as its input. A handoff that only passes the original question forces the specialist to repeat the triage.

Step 3: Run the test request and check for repeated work

Run the test request and read the specialist’s first actions: it should use the facts in the summary, not re-fetch them. If it repeats the triage, the summary is missing facts.

Worked example: synthetic billing handoff

The table below is a synthetic example. It shows the expected result of a handoff with a summary; no agent was run.

Check Expected Result
Summary carries goal and facts Yes Pass
Specialist re-fetches triage facts No Pass
Specialist asks the missing question Yes Pass
Customer gets one answer Yes Pass

Expected result (UNTESTED). the specialist starts from the summary, asks only the missing question, and the customer gets one answer. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • A summary that is too long costs tokens on every handoff; keep it to the three fields.
  • Facts in the summary can go stale if the handoff is delayed, so include only facts that were just checked.
  • The specialist still needs its own tools; a summary is not a substitute for them.
  • If the first agent’s facts are wrong, the summary passes the error on, so the specialist should verify key facts.

Sources

See all