inputResponsesToJson

Serialize a list of InputResponses as a spec InputResponses object: a map whose keys are the originating InputRequest.ids and whose values are the *bare* client results (e.g. {action, content} or {role, content, model, stopReason}) — not {id, result} wrappers and not a JSON array (SEP-2322, draft basic/utilities/mrtr).

@safe @safe
Json
inputResponsesToJson