Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
core_ai\process_base Class Reference
Inheritance diagram for core_ai\process_base:
aiprovider_azureai\abstract_processor aiprovider_ollama\abstract_processor aiprovider_openai\abstract_processor aiprovider_azureai\process_generate_image aiprovider_azureai\process_generate_text aiprovider_ollama\process_generate_text aiprovider_openai\process_generate_image aiprovider_openai\process_generate_text aiprovider_azureai\process_explain_text aiprovider_azureai\process_summarise_text aiprovider_ollama\process_explain_text aiprovider_ollama\process_summarise_text aiprovider_openai\process_explain_text aiprovider_openai\process_summarise_text

Public Member Functions

 __construct (protected provider readonly provider $provider, protected base readonly base $action,)
 Class constructor.
 
 process ()
 Process the AI request.
 

Protected Member Functions

 get_response (... $args)
 Get the instantiated Response Class for the action described by this processor.
 
 query_ai_api ()
 Query the AI service.
 

Constructor & Destructor Documentation

◆ __construct()

core_ai\process_base::__construct ( protected provider readonly provider $provider,
protected base readonly base $action )

Class constructor.

Parameters
provider$providerThe provider that will process the action.
base$actionThe action to process.
Parameters
$providerThe provider that will process the action.
$actionThe action to process.

Member Function Documentation

◆ get_response()

core_ai\process_base::get_response ( ...)
protected

Get the instantiated Response Class for the action described by this processor.

Parameters
mixed...$args The arguments to pass to the response class constructor.
Return values
response_base

◆ process()

core_ai\process_base::process ( )

Process the AI request.

Return values
response_baseThe result of the action.

◆ query_ai_api()

core_ai\process_base::query_ai_api ( )
abstractprotected

The documentation for this class was generated from the following file: