% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/postprocess__process_outputs.R
\name{extract_search_snippets}
\alias{extract_search_snippets}
\title{Extract Search Snippets by Source Number}
\usage{
extract_search_snippets(text, source = NULL)
}
\arguments{
\item{text}{Structured JSON trace (asa_trace_v1)}

\item{source}{Optional integer vector of source numbers to return (1-indexed).
If NULL (default), returns a character vector for all sources encountered
(with empty strings for missing indices).}
}
\value{
Character vector of search snippets, ordered by source number
}
\description{
Extracts content from Search tool messages in the agent trace.
}
\examples{
\dontrun{
snippets <- extract_search_snippets(response$trace)
}

}
