Readonly
Initializes a new ChatSegmentImpl instance with the given content, start and end indices, metadata, and options. It validates the content and boundaries, generates a unique ID, and sets the sequence ID, timestamp, and order.
Raw content of the chat segment
Start index of the chat segment
End index of the chat segment
Metadata of the chat segment
Options for creating the chat segment
Readonly
idThe unique identifier of the segment.
Readonly
sequenceThe ID of the sequence to which the segment belongs.
Readonly
timestampThe timestamp of the segment.
Returns the sanitized content of the chat segment
Returns the end index of the chat segment
Validates the content of the chat segment, ensuring it's not empty and starts with the "Me" keyword
Returns the order of the chat segment
Returns the start index of the chat segment
Checks if this segment overlaps with another segment
The other chat segment to check
True if this segment overlaps with the other segment, false otherwise
Creates a new segment with updated order
The new order of the segment
A new chat segment with the updated order
Static
fromCreates a segment from raw log content
The raw log content
The start index of the segment
The end index of the segment
The metadata of the segment
The options for creating the segment
A new chat segment created from the raw log content
Implementation of a chat segment
ChatSegmentImpl