Neutrome SDK reference
    Preparing search index...

    Function extractContentText

    • Concatenates the visible text of every message in a program.

      Parameters

      • program: Program

        Program to read.

      Returns string

      The combined message text, empty when the program has no text.

      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.