ToolCallEvent

data class ToolCallEvent(val runId: String, val toolCallId: String?, val toolName: String, val toolArgs: ToolArgs, val eventId: String = ToolCallEvent::class.simpleName!!) : DefinedFeatureEvent(source)

Represents an event triggered when a tool is called within the system.

This event is used to capture and describe the invocation of a tool along with its associated arguments. It helps in tracking, logging, or processing tool calls as part of a larger feature pipeline or system workflow.

Constructors

Link copied to clipboard
constructor(runId: String, toolCallId: String?, toolName: String, toolArgs: ToolArgs, eventId: String = ToolCallEvent::class.simpleName!!)

Properties

Link copied to clipboard
open override val eventId: String

The unique identifier for this event, defaulting to the class name.

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
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 arguments provided for the tool execution.

Link copied to clipboard
Link copied to clipboard

The unique name of the tool being called.