LLMCallFailedEvent

data class LLMCallFailedEvent(val eventId: String, val executionInfo: AgentExecutionInfo, val runId: String, val prompt: Prompt, val model: ModelInfo, val tools: List<String>, val error: AIAgentError, val timestamp: Long = KoogClock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent(source)

Represents an event that occurs when a call to a large language model (LLM) fails. This event captures relevant details about the failed call, such as the prompt, model information, tools used, and the associated error.

Constructors

Link copied to clipboard
constructor(eventId: String, executionInfo: AgentExecutionInfo, runId: String, prompt: Prompt, model: ModelInfo, tools: List<String>, error: AIAgentError, timestamp: Long = KoogClock.System.now().toEpochMilliseconds())

Properties

Link copied to clipboard

The error information providing details about why the call failed.

Link copied to clipboard
open override val eventId: String

A unique identifier for the event.

Link copied to clipboard

Execution context information, including the part name and any parent executions.

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

Specifies the type of the feature message for this event.

Link copied to clipboard

Information about the model used for the LLM call.

Link copied to clipboard

The prompt data associated with the LLM call.

Link copied to clipboard

A unique identifier for the specific run of the LLM call that failed.

Link copied to clipboard
open override val timestamp: Long

The time at which the event was recorded, represented as milliseconds since epoch.

Link copied to clipboard

A list of tools (if any) involved in the execution that led to the failure.