AIAgentMaxNumberOfIterationsReachedException

Exception thrown when an agent exceeds the maximum allowed number of iterations during execution.

This exception indicates that the agent could not complete its task within the specified number of steps, as defined by the maxAgentIterations parameter in the agent's configuration. To resolve this, consider increasing the value of maxAgentIterations to accommodate more iterations for the agent's task completion.

Parameters

maxNumberOfIterations

The maximum number of iterations allowed for the agent before the exception is triggered.

Constructors

constructor(maxNumberOfIterations: Int)

Creates an instance of this exception with the specified maximum number of iterations.

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?

Functions

Link copied to clipboard

Converts a Throwable instance to an AIAgentError.