Algorithm · ByteDance · Hard
Implement a diagnostic tracer for an autonomous agent that calls external tools. Each tool invocation belongs to a logical request and may be attempted multiple times. The tracer receives a chronological stream of events and must emit a trace record for every meaningful event while preserving the order in which the events arrive. A trace record contains five fields in this order: the request identifier, the attempt identifier, the stage where a failure was observed, or null…
Checking your access…