AiModelProviderInterface
AiModelProviderInterface.php
:
18
Interface
Declares the AI models an action handler can use. Models of all providers supporting a handler are combined, so a model identifier must be unique across them.
Constants¶
SERVICE_TAG ¶
AiModelProviderInterface.php
:
20
|
|
|
Methods¶
getDefaultModel()
¶
AiModelProviderInterface.php
:
41
Identifier of the model used when none is selected, or null to leave the choice to other providers.
|
|
|
One of the providers supporting the handler has to name it.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $actionHandlerIdentifier | string | - | - |
Return values
string|null
getHandlerOptionDefinitions()
¶
AiModelProviderInterface.php
:
35
Options the handler accepts whichever model is selected (e.g. a prompt). They are merged with {@see AiModel::$optionDefinitions} of the selected model. Defining the same option in both is an error.
|
|
|
OptionDefinitionProviderInterface does not add options here, it extends the catalog the connector picks model options from.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $actionHandlerIdentifier | string | - | - |
Return values
getModels()
¶
AiModelProviderInterface.php
:
27
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $actionHandlerIdentifier | string | - | - |
Return values
iterable<string|int, AiModel>
supportsActionHandler()
¶
AiModelProviderInterface.php
:
22
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $actionHandlerIdentifier | string | - | - |
Return values
bool