Concatenates the visible text of every message in a program.
Program to read.
The combined message text, empty when the program has no text.
const answer = extractContentText(await ctx.invoke("core/turn-1", request)); Copy
const answer = extractContentText(await ctx.invoke("core/turn-1", request));
This reads completed messages. For text arriving on a streaming chunk use delta.extractContentText instead.
Concatenates the visible text of every message in a program.