aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework/Bootstrap
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-06-20 14:41:58 +0200
committerMarcel Klehr <mklehr@gmx.net>2023-07-07 13:39:10 +0200
commit795b097122a8dd70b4d6b9ebe044440396be9104 (patch)
tree6b899006ec3b537730a5b08d0a52a5551fe237b8 /lib/public/AppFramework/Bootstrap
parent9d5717d239d380273f49ea6542c7eee2f0353703 (diff)
downloadnextcloud-server-795b097122a8dd70b4d6b9ebe044440396be9104.tar.gz
nextcloud-server-795b097122a8dd70b4d6b9ebe044440396be9104.zip
LLM OCP API: Implement ocs API
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/public/AppFramework/Bootstrap')
-rw-r--r--lib/public/AppFramework/Bootstrap/IRegistrationContext.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
index 66cf1ef2306..19ef6832a2c 100644
--- a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
+++ b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
@@ -37,6 +37,7 @@ use OCP\Collaboration\Reference\IReferenceProvider;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Files\Template\ICustomTemplateProvider;
use OCP\IContainer;
+use OCP\LanguageModel\ILanguageModelProvider;
use OCP\Notification\INotifier;
use OCP\Preview\IProviderV2;
use OCP\SpeechToText\ISpeechToTextProvider;
@@ -220,6 +221,16 @@ interface IRegistrationContext {
public function registerSpeechToTextProvider(string $providerClass): void;
/**
+ * Register a custom LanguageModel provider class that provides a promptable language model
+ * through the OCP\LanguageModel APIs
+ *
+ * @param string $providerClass
+ * @psalm-param class-string<ILanguageModelProvider> $providerClass
+ * @since 27.0.0
+ */
+ public function registerLanguageModelProvider(string $providerClass): void;
+
+ /**
* Register a custom template provider class that is able to inject custom templates
* in addition to the user defined ones
*