LLMCallStartingEvent

data class LLMCallStartingEvent(val runId: String, val callId: String, val prompt: Prompt, val model: ModelInfo, val tools: List<String>, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent(source)

Represents an event indicating the start of a call to a Language Learning Model (LLM).

This event captures the details of the LLM interaction at the point of invocation, including the input prompt and any tools that will be used during the call. It extends the DefinedFeatureEvent class and serves as a specific type of event in a feature-driven framework.

Constructors

Link copied to clipboard
constructor(runId: String, callId: String, prompt: Prompt, model: String, tools: List<String>, eventId: String = LLMCallStartingEvent::class.simpleName!!, timestamp: Long = Clock.System.now().toEpochMilliseconds())
constructor(runId: String, callId: String, prompt: Prompt, model: ModelInfo, tools: List<String>, timestamp: Long = Clock.System.now().toEpochMilliseconds())

Properties

Link copied to clipboard

A unique identifier associated with the specific LLM call grouping.

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 model information including provider, model, and context details.

Link copied to clipboard
Link copied to clipboard

The input prompt encapsulated as a Prompt object. This represents the structured set of messages and configuration parameters sent to the LLM.

Link copied to clipboard

A unique identifier associated with the specific run of the LLM call.

Link copied to clipboard
open override val timestamp: Long

The timestamp of the event, in milliseconds since the Unix epoch.

Link copied to clipboard

The list of tools, represented by their string identifiers, being used within the scope of the LLM call. These tools may extend or enhance the core functionality of the LLM.