class

AI::Provider::UnsupportedFunctionalityError

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

Error thrown when a requested functionality is not supported.

This error indicates that a feature or capability is not available for the current provider or model.

Constructors

new(*, functionality : String, message : String | Nil = nil)

Creates a new UnsupportedFunctionalityError.

Parameters:

  • functionality: The name of the unsupported functionality
  • message: Optional custom message (defaults to "'<functionality>' functionality not supported.")
Source

Class methods

instance?(error) : Bool

Checks if the given value is an instance of UnsupportedFunctionalityError.

Source

Instance methods

functionality

The name of the unsupported functionality.

Source