stream_event struct
#include <nxtai/responses.hpp>
One decoded server-sent event from a streaming Responses request.
Public variables
-
std::
string type - SSE event type, such as
response.output_item.added. - nlohmann::json payload
- Parsed JSON payload from the event's
datafield. -
std::
string raw - Original unparsed
datafield text.