Constructors

Methods

  • Extracts the first code block from the content and truncates everything after it

    Parameters

    • content: Content
    • codeBlockDelimiters: [string, string][]

    Returns string

  • Converts the code execution parts to text parts in a Content

    Parameters

    • content: Content
    • codeBlockDelimiter: [string, string]
    • executionResultDelimiters: [string, string]

    Returns void