ToolCallResultEvent

data class ToolCallResultEvent(val runId: String, val toolCallId: String?, val toolName: String, val toolArgs: ToolArgs, val result: ToolResult?, val eventId: String = ToolCallResultEvent::class.simpleName!!) : 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: ToolArgs, result: ToolResult?, eventId: String = ToolCallResultEvent::class.simpleName!!)

Properties

Link copied to clipboard
open override val eventId: String

A unique identifier for this event, defaulting to the class name of ToolCallResultEvent.

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, represented as the number of milliseconds since the Unix epoch, indicating when the feature event was created.

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.