OpenAISoftware Engineer · Technical ScreenCodemia practiceValidate a Streamed Sequence of Parallel Tool Call Events
A model streams tool calls as start, delta (argument text) and end events, possibly interleaving several calls, followed by a finish event. Validate the sequence: ids are unique, deltas and ends target open calls, each call's concatenated arguments are valid JSON, and finish comes last with no calls open.
Medium
Coding & Algorithms