ChatParser class for parsing chat log files.

ChatParser

Constructors

Methods

Constructors

  • Parameters

    • Optionaloptions: ParserOptions = {}

      Options for the parser, including max file size, chunk size, and parse timeout. If not provided, the parser will use default values.

    Returns ChatParser

Methods

  • Returns whether the parser is initialized (i.e., the MetadataExtractor instance is created).

    Returns boolean

  • Parses a chat log file at the given file path and returns an array of extracted chat segments.

    Parameters

    • filePath: string

      The path to the chat log file.

    Returns Promise<ChatSegment[]>

    An array of extracted chat segments.

    If the file cannot be read or parsed.

    If an unknown error occurs during parsing.