Copied!

ActionServiceInterface

ActionServiceInterface.php : 18
Interface

Methods

publicexecute()

ActionServiceInterface.php : 27
public execute(ActionInterface $action[, ActionConfigurationInterface|null $actionConfiguration = null ][, ActionHandlerInterface|null $handler = null ]) : ActionResponseInterface

Parameters

Name Type Default value Description
$action ActionInterface - -
$actionConfiguration ActionConfigurationInterface|null null -
$handler ActionHandlerInterface|null null -

Return values

ActionResponseInterface

Tags
Throws
InvalidArgumentException
Throws
InvalidOptionValueException

when a handler resolves model options

Throws
UnsupportedAiModelException

when a handler resolves model options

Throws
ProviderAuthenticationFailedExceptionInterface

when the AI provider rejects the credentials

Throws
ProviderQuotaExceededExceptionInterface

when the AI provider account has no quota or credits left