% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vlm-validate.R
\name{as_chat_text}
\alias{as_chat_text}
\title{Coerce a chat response to a single character scalar}
\usage{
as_chat_text(x)
}
\description{
\code{ellmer} chat objects' \code{$chat()} method returns a
character vector (possibly with class attributes for ANSI). The
\code{\link{MockVLMProvider}} returns a plain string. This helper
normalises both shapes.
}
\keyword{internal}
