Copied!

ActionHandlerInterface

ActionHandlerInterface.php : 16
Interface

Methods

publicgetIdentifier()

ActionHandlerInterface.php : 34
public static getIdentifier() : string

Return values

string

publichandle()

ActionHandlerInterface.php : 29
public handle(ActionInterface $action[, array<string, mixed> $context = [] ]) : ActionResponseInterface

Parameters

Name Type Default value Description
$action ActionInterface - -
$context array<string, mixed> [] -

Return values

ActionResponseInterface

Tags
Throws
ProviderAuthenticationFailedExceptionInterface

when the AI provider rejects the credentials

Throws
ProviderQuotaExceededExceptionInterface

when the AI provider account has no quota or credits left

publicsupports()

ActionHandlerInterface.php : 18
public supports(ActionInterface $action) : bool

Parameters

Name Type Default value Description
$action ActionInterface - -

Return values

bool