nxt::ai::trace::response_trace class

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_path has 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::nullopt for a disabled trace.
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.