You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ai_actions/extend_ai_actions.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,10 +23,10 @@ This action is parameterized with the [RuntimeContext](../api/php_api/php_api_re
23
23
24
24
| Type of context | Type of options | Usage | Example |
25
25
|---|---|---|---|
26
-
| Runtime Context | Runtime options |Set additional parameters that are relevant to the specific action that is currently executed | Information about the language of the content that is being processed |
26
+
| Runtime Context | Runtime options |Sets additional parameters that are relevant to the specific action that is currently executed | Information about the language of the content that is being processed |
27
27
| Action Context | Action Type options | Sets additional parameters for the Action Type | Information about the expected response length |
28
-
| Action Context | Action Handler options |Set additional parameters for the Action Handler | Information about the model, temperature, prompt, and max tokens allowed.|
29
-
| Action Context | System options |Set additional information, not matching the other option collections | Information about the fallback locale |
28
+
| Action Context | Action Handler options | Sets additional parameters for the Action Handler | Information about the model, temperature, prompt, and max tokens allowed |
29
+
| Action Context | System options |Sets additional information, not matching the other option collections | Information about the fallback locale |
30
30
31
31
Both `ActionContext` and `RuntimeContext` are passed to the Action Handler (an object implementing the [ActionHandlerInterface](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ConnectorAi-Action-ActionHandlerInterface.html)) to execute the action. The Action Handler is responsible for combining all the options together, sending them to the AI service and returning an [ActionResponse](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ConnectorAi-ActionResponseInterface.html).
32
32
@@ -65,9 +65,9 @@ To manage Action Configurations through the PHP API, you need to use the [Action
65
65
66
66
You can manage them using the following methods:
67
67
68
-
-Create them with `ActionConfigurationServiceInterface::createActionConfiguration()`, passing the [ActionConfigurationCreateStruct](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ConnectorAi-ActionConfiguration-ActionConfigurationCreateStruct.html).
69
-
-Update them with `ActionConfigurationServiceInterface::updateActionConfiguration()`, passing the [ActionConfigurationUpdateStruct](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ConnectorAi-ActionConfiguration-ActionConfigurationUpdateStruct.html).
70
-
-Delete them with `ActionConfigurationServiceInterface::deleteActionConfiguration()`, passing the [ActionConfigurationInterface](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ConnectorAi-ActionConfigurationInterface.html).
68
+
-Creating them with `ActionConfigurationServiceInterface::createActionConfiguration()` by passing the [ActionConfigurationCreateStruct](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ConnectorAi-ActionConfiguration-ActionConfigurationCreateStruct.html).
69
+
-Updating them with `ActionConfigurationServiceInterface::updateActionConfiguration()` by passing the [ActionConfigurationUpdateStruct](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ConnectorAi-ActionConfiguration-ActionConfigurationUpdateStruct.html).
70
+
-Deleting them with `ActionConfigurationServiceInterface::deleteActionConfiguration()` by passing the [ActionConfigurationInterface](../api/php_api/php_api_reference/classes/Ibexa-Contracts-ConnectorAi-ActionConfigurationInterface.html).
71
71
72
72
See the [AI Actions event reference](ai_action_events.md#action-configurations-management) for a list of events related to these operations.
73
73
@@ -326,7 +326,7 @@ This template embeds the AI component, but only if a dedicated `transcript` fiel
326
326
327
327
And add it to the SiteAccess configuration for the `admin_group`:
The configuration of the AI component takes the following parameters:
@@ -362,7 +362,7 @@ And include it into the back office using Webpack Encore.
362
362
See [configuring assets from main project files](importing_assets_from_bundle.md#configuration-from-main-project-files) to learn more about this mechanism.
0 commit comments