class

AI::Provider::NoContentGeneratedError

Inherits AI::Provider::AISDKError < Exception < Reference < Object

Error thrown when the AI provider fails to generate any content.

This error indicates that the model completed its response but did not produce any usable content.

Constructors

new(*, message : String = "No content generated.")

Creates a new NoContentGeneratedError.

Parameters:

  • message: Optional custom message (defaults to "No content generated.")
Source

Class methods

instance?(error) : Bool

Checks if the given value is an instance of NoContentGeneratedError.

Source