Copied!

LLMBaseActionTypeInterface

LLMBaseActionTypeInterface.php : 13
Interface

Type of action e.g. "image to text".

Methods

publiccreateAction()

ActionTypeInterface.php : 42
public createAction(DataType<string|int, mixed> $input[, array<string, mixed> $parameters = [] ]) : ActionInterface

Parameters

Name Type Default value Description
$input DataType<string|int, mixed> - -
$parameters array<string, mixed> [] -

Return values

ActionInterface

publicgetActionHandlers()

ActionTypeInterface.php : 47
public getActionHandlers() : iterable<string|int, ActionHandlerInterface>

Return values

iterable<string|int, ActionHandlerInterface>

publicgetBasePrompt()

LLMBaseActionTypeInterface.php : 15
public getBasePrompt() : string

Return values

string

publicgetIdentifier()

ActionTypeInterface.php : 22

Returns unique identifier of the action type.

public getIdentifier() : string

Return values

string

publicgetInputIdentifier()

ActionTypeInterface.php : 29
public getInputIdentifier() : string

Return values

string

publicgetName()

ActionTypeInterface.php : 27

Returns human-readable name of the action type.

public getName() : string

Return values

string

publicgetOptions()

ActionTypeInterface.php : 36
public getOptions() : array<string, scalar|array<string|int, mixed>>

Return values

array<string, scalar|array<string|int, mixed>>

publicgetOutputIdentifier()

ActionTypeInterface.php : 31
public getOutputIdentifier() : string

Return values

string