-- Returns the event's fields as `key=value`, `nil` for an absent one, as the context, so each
-- test shows what the translator put in the event.
localFIELDS={"tool","path","agent","agent_id","prompt"}returnfunction(ev)localparts={}for_,keyinipairs(FIELDS)doparts[#parts+1]=key.."="..tostring(ev[key])endreturn{context=table.concat(parts,"")}end