TECHNOLOGY

HTTP barriers and WebSocket injection change the agent critical path

In this article
THE QUICK TAKE

WebSocket injection can resume one waiting branch sooner, but acceptance acknowledgements and completed-response races belong in the recovery design.

Identify the barrier before changing transport

Two specialists request external evidence. One lookup finishes quickly while the other remains slow. Under the documented HTTP workflow, the response completes when active agents finish or pause for client tools; the application executes outstanding functions and continues with their outputs. This creates a continuation boundary around the batch. WebSocket mode permits injecting each available function result into the active response, allowing the waiting agent to resume while other work continues. The capability changes scheduling opportunity, not the dependency graph itself.

Measure useful continuation

An early result matters only if its resumed branch can make useful progress before the slow lookup finishes. If the coordinator must wait for both sources before any remaining reasoning, a transport change may save little. A proposed comparison holds tasks, model, concurrency and tool delays fixed, then measures time to accepted final evidence. Include root synthesis and any repair work. The API’s recommendation for tool-heavy or long-running workflows is not a universal measured speedup for every application’s workload.

Treat injection acceptance as its own event

The guide requires response.inject to identify the active response and retain the function’s call_id. A response.inject.created event means the input was accepted for injection. It is not proof that the business task finished or that the final answer incorporated every required observation. Keep reading the stream until completion and all injection acknowledgements have arrived. Otherwise a client can close its connection with an unresolved submission and later misclassify that missing evidence as a failed external tool.

Handle completion racing the result

The response may finish before a function output can be injected. The documented response_already_completed path returns the unaccepted input; the client continues from the completed response with that input in a new request. Do not rerun the external operation merely because delivery missed the active response. A malformed injection can instead close the connection with an error, requiring schema correction. These cases need distinct recovery records because execution, delivery and acceptance have different outcomes.

Compare the complete protocol

The changelog dates Sol’s multi-agent support to September 29 within the review window, while current guide semantics define this analysis. Through May 6, 2027, test delayed results, reversed completion and a disconnected socket alongside the normal path. Call-result matching preserves operation identity; Aggregation semantics preserve the parent promise. An infrastructure decision should rely on accepted task latency and recoverable state, rather than on the first stream event or a faster-looking progress display.

A possible six-month capability

An editorial scenario through May 6, 2027 is a tool-heavy graph that overlaps useful reasoning with slower independent evidence collection. Incremental result injection and acknowledgement-aware recovery supply the mechanism. The condition is genuine work after the early result that does not require the delayed branch. If final latency remains dominated by the same mandatory slow operation or failed injections cause repeated execution, the forecast of a more responsive workflow is weakened.

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.

Explore GPU hosting
← All articles