ToolCallCompletedEvent

data class ToolCallCompletedEvent(val runId: String, val toolCallId: String?, val toolName: String, val toolArgs: JsonObject, val result: String?, val timestamp: Long = Clock.System.now().toEpochMilliseconds()) : DefinedFeatureEvent(source)

Represents an event that contains the results of a tool invocation.

This event carries information about the tool that was executed, the arguments used for its execution, and the resulting outcome. It is used to track and share the details of a tool's execution within the system's event-handling framework.

Constructors

Link copied to clipboard
constructor(runId: String, toolCallId: String?, toolName: String, toolArgs: JsonObject, result: String?, timestamp: Long = Clock.System.now().toEpochMilliseconds())

Properties

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 result of the tool execution, which may be null if no result was produced or an error occurred;

Link copied to clipboard
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 arguments used for executing the tool;

Link copied to clipboard
Link copied to clipboard

The name of the tool that was executed;