LLMStreamingFrameReceivedEvent

data class LLMStreamingFrameReceivedEvent(val runId: String, val frame: StreamFrame, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent(source)

Event representing the receipt of a streaming frame from a Language Learning Model (LLM).

This event occurs as part of the streaming interaction with the LLM, where individual frames of data are sent incrementally. The event contains details about the specific frame received, as well as metadata related to the event's timing and identity.

Constructors

Link copied to clipboard
constructor(runId: String, frame: StreamFrame, timestamp: Long = Clock.System.now().toEpochMilliseconds())

Properties

Link copied to clipboard

The frame data received as part of the streaming response. This can include textual content, tool invocations, or signaling the end of the stream;

Link copied to clipboard
open override val messageType: FeatureMessage.Type

Specifies the type of the feature message for this event.

Link copied to clipboard

The unique identifier for the LLM run or session associated with this event;

Link copied to clipboard
open override val timestamp: Long

The timestamp of when the event was created, represented in milliseconds since the Unix epoch.