AIAgentError

data class AIAgentError(val message: String, val stackTrace: String, val cause: String? = null, val type: String? = null)(source)

Represents an error encountered by an AI agent, encapsulating error details.

This class provides essential information to understand and debug errors occurring during the execution of AI agent strategies, tools, or nodes.

Constructors

Link copied to clipboard
constructor(message: String, stackTrace: String, cause: String? = null, type: String? = null)
constructor(throwable: Throwable)

Secondary constructor that allows creating an instance of the class using a Throwable.

Properties

Link copied to clipboard

The stack trace of the root cause if available, or null if no cause is set;

Link copied to clipboard

An error message of the original throwable;

Link copied to clipboard

The stack trace of the error as a string;

Link copied to clipboard
val type: String?

The class name of the type of the error, if available. On JVM this is the fully qualified name; on other platforms it falls back to the simple class name.