response_trace class
#include <nxtai/trace.hpp>
Responses-specific trace writer backed by Arrow IPC.
Constructors, destructors, conversion operators
-
response_trace(std::
optional<std:: string> output_path) explicit - Create an enabled trace when
output_pathhas a value. -
response_trace(const response_
trace&) deleted -
response_trace(response_
trace&&) noexcept - ~response_trace()
Public functions
- auto enabled() const → bool noexcept
- True when rows will be collected and written.
-
auto operator=(const response_
trace&) → response_ trace& deleted -
auto operator=(response_
trace&&) → response_ trace& noexcept -
auto output_path() const → const std::
optional<std:: string>& - Destination IPC file, or
std::for a disabled trace.nullopt -
void record_event(const responses::
stream_event& event) - Record one streaming Responses event.
-
void record_marker(std::
string phase, std:: string data = {}) - Record an application marker row.
-
void record_request(const responses::
openai_responses_request& request) - Record a sanitized Responses request body and metadata.
- void write()
- Flush collected rows to the IPC file.