◆ get_action_list()
core_ai\provider::get_action_list |
( |
| ) |
|
|
abstract |
◆ get_action_settings()
core_ai\provider::get_action_settings |
( |
string | $action, |
|
|
admin_root | $ADMIN, |
|
|
string | $section, |
|
|
bool | $hassiteconfig ) |
Get any action settings for this provider.
- Parameters
-
string | $action | The action class name. |
admin_root | $ADMIN | The admin root object. |
string | $section | The section name. |
bool | $hassiteconfig | Whether the current user has moodle/site:config capability. |
- Return values
-
array | An array of settings. |
Reimplemented in aiprovider_azureai\provider, and aiprovider_openai\provider.
◆ get_name()
core_ai\provider::get_name |
( |
| ) |
|
Get the name of the provider.
- Return values
-
string | The name of the provider. |
◆ get_sub_actions()
core_ai\provider::get_sub_actions |
( |
string | $classname | ) |
|
Given an action class name, return an array of sub actions that this provider supports.
- Parameters
-
string | $classname | The action class name. |
- Return values
-
array | An array of supported sub actions. |
◆ is_provider_configured()
core_ai\provider::is_provider_configured |
( |
| ) |
|
◆ is_request_allowed()
The documentation for this class was generated from the following file:
- ai/provider/openai/classes/provider.php