% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/postprocess__process_outputs.R
\name{.decode_trace_escaped_string}
\alias{.decode_trace_escaped_string}
\title{Decode one layer of trace-escaped content into a string}
\usage{
.decode_trace_escaped_string(x)
}
\arguments{
\item{x}{Character scalar}
}
\value{
Character scalar, or NULL
}
\description{
Many raw traces contain AI message content escaped as a Python-esque string
literal (e.g. `\"`, `\\n`). This function attempts to decode one layer of
escaping using JSON string decoding, while normalizing `\\'` (a Python escape
that is not valid JSON) back to `'`.
}
\keyword{internal}
