In this article
Execute developer function calls from every agent, preserve their call identities, and leave hosted collaboration actions to Responses.
The executor now sees more item types
A conventional function dispatcher can become incorrect when multi-agent output is added. The Responses guide introduces multi_agent_call, multi_agent_call_output and agent_message alongside ordinary developer function calls. The first pair records hosted coordination, not another business function for the application to execute. A router that treats every item with a call identifier as local work can accidentally duplicate orchestration or manufacture an invalid return. Classify the item before parsing its arguments or authorizing execution.
Keep execution ownership explicit
Responses executes the hosted collaboration action and supplies its corresponding output. The application executes function_call items from any agent and returns function_call_output with the matching call_id. “Any agent” matters: filtering execution to the root leaves legitimate child work unanswered. Conversely, giving a child a descriptive role does not justify executing an unknown function. The dispatcher should recognize its own allowed business functions and record their actual outcome, independently of the agent’s natural-language explanation.
Interpret attribution according to the item
The guide documents hierarchical agent names and agent-attributed events. For an agent_message, the agent attribute identifies the recipient; author and recipient establish message direction. Treating that attribute universally as the author can misassign evidence or permissions. The Agents API guide uses another attribution mechanism for commands: retrieve the command’s turn and inspect its subagent_id. These are runtime-specific records. A shared dashboard needs an explicit adapter rather than assuming identical fields have identical meaning everywhere.
Test dispatch with recognizable results
A proposed fixture makes two children request different records and completes the lookups in reverse order. Include a hosted spawn item and an inter-agent message addressed to the root. Verify that only developer functions run locally, each result retains its request identity and message direction remains correct. Add an unknown function to test rejection without silently dropping the call. These are proposed integration checks; no production run, measured failure reduction or provider-wide exactly-once guarantee is asserted.
Preserve a reviewable execution trail
Planning through May 6, 2027 should retain raw item type, business-operation identity and normalized agent attribution without substituting a friendly role label. Function result identities cover the basic matching problem. Artifact handoff evidence explains why attribution must remain connected to the inspected revision. The distinctive multi-agent requirement is to preserve the service/application execution boundary while serving every branch, so a correct-looking root answer cannot conceal ignored child calls or duplicated hosted work.
A possible six-month capability
An editorial scenario by May 6, 2027 is one executor that can serve a larger agent tree while preserving correct business-call ownership. Typed item dispatch, stable call matching and runtime-specific attribution adapters provide the mechanism. This requires parser compatibility with the beta surface. Unknown items silently discarded or hosted actions executed twice would be counterevidence, showing that a larger tree expanded activity without expanding reliable usable capability.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.