BeforeLLMCallEvent

data class BeforeLLMCallEvent(val runId: String, val prompt: Prompt, val model: String, val tools: List<String>, val eventId: String = BeforeLLMCallEvent::class.simpleName!!) : 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, prompt: Prompt, model: String, tools: List<String>, eventId: String = BeforeLLMCallEvent::class.simpleName!!)

Properties

Link copied to clipboard
open override val eventId: String

The unique identifier for this specific type of event, which defaults to the simple name of the LLMCallStartEvent class.

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

Specifies the type of the feature message for this event.

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
Link copied to clipboard
open override val timestamp: Long

The timestamp, represented as the number of milliseconds since the Unix epoch, indicating when the feature event was created.

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.