Function interactionAsMarkdown

  • Converts an interaction with the GPT model into a markdown string. The markdown string includes the system message, timestamp, temperature and the conversation. The conversation is formatted with prompts and responses.

    Parameters

    • interaction: IGptInteraction

      The interaction object to be converted into markdown. It must be an instance of IGptInteraction.

    Returns string

    The interaction formatted as a markdown string.

    Throws

    If there are no messages in the interaction.

    Throws

    Will throw an error if the interaction does not contain any messages.

Generated using TypeDoc