ToolExecutionException

class ToolExecutionException(message: String, cause: Throwable? = null, val toolName: String? = null, val toolCallId: String? = null) : Exception

Exception thrown when tool execution fails in an unrecoverable way.

For recoverable errors (validation failures, expected errors), use ToolExecutionResult.failure() instead.

Constructors

Link copied to clipboard
constructor(message: String, cause: Throwable? = null, toolName: String? = null, toolCallId: String? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?
Link copied to clipboard
val toolCallId: String? = null
Link copied to clipboard
val toolName: String? = null