aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-06-26 11:45:54 +0200
committerMarcel Klehr <mklehr@gmx.net>2023-07-07 13:39:10 +0200
commitfb4de16c113143022e195ee41f87c42c16aa09ea (patch)
tree9ef7d1a7652c53097392cb9cc516cd6db6b72fdd /lib/public
parent249dd5cce44b7d226ebd94c58701034123e8473d (diff)
downloadnextcloud-server-fb4de16c113143022e195ee41f87c42c16aa09ea.tar.gz
nextcloud-server-fb4de16c113143022e195ee41f87c42c16aa09ea.zip
LLM OCP API: Add task definitions
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/LanguageModel/HeadlineTask.php2
-rw-r--r--lib/public/LanguageModel/IHeadlineProvider.php2
-rw-r--r--lib/public/LanguageModel/ISummaryProvider.php2
-rw-r--r--lib/public/LanguageModel/ITopicsProvider.php2
-rw-r--r--lib/public/LanguageModel/SummaryTask.php2
-rw-r--r--lib/public/LanguageModel/TopicsTask.php2
6 files changed, 12 insertions, 0 deletions
diff --git a/lib/public/LanguageModel/HeadlineTask.php b/lib/public/LanguageModel/HeadlineTask.php
index fadaea0b92d..92abc551cc6 100644
--- a/lib/public/LanguageModel/HeadlineTask.php
+++ b/lib/public/LanguageModel/HeadlineTask.php
@@ -3,6 +3,8 @@
namespace OCP\LanguageModel;
/**
+ * This LanguageModel Task represents headline generation
+ * which generates a headline for the passed text
* @since 28.0.0
*/
final class HeadlineTask extends AbstractLanguageModelTask {
diff --git a/lib/public/LanguageModel/IHeadlineProvider.php b/lib/public/LanguageModel/IHeadlineProvider.php
index b2e902a034d..d1fe7504fdf 100644
--- a/lib/public/LanguageModel/IHeadlineProvider.php
+++ b/lib/public/LanguageModel/IHeadlineProvider.php
@@ -29,6 +29,8 @@ namespace OCP\LanguageModel;
use RuntimeException;
/**
+ * This LanguageModel Provider represents headline generation
+ * which generates a headline for the passed text
* @since 28.0.0
*/
interface IHeadlineProvider extends ILanguageModelProvider {
diff --git a/lib/public/LanguageModel/ISummaryProvider.php b/lib/public/LanguageModel/ISummaryProvider.php
index af897e1a8c3..0b49258964d 100644
--- a/lib/public/LanguageModel/ISummaryProvider.php
+++ b/lib/public/LanguageModel/ISummaryProvider.php
@@ -29,6 +29,8 @@ namespace OCP\LanguageModel;
use RuntimeException;
/**
+ * This LanguageModel Provider implements summarization
+ * which sums up the passed text.
* @since 28.0.0
*/
interface ISummaryProvider extends ILanguageModelProvider {
diff --git a/lib/public/LanguageModel/ITopicsProvider.php b/lib/public/LanguageModel/ITopicsProvider.php
index bc5f7d85811..a15cfba698f 100644
--- a/lib/public/LanguageModel/ITopicsProvider.php
+++ b/lib/public/LanguageModel/ITopicsProvider.php
@@ -29,6 +29,8 @@ namespace OCP\LanguageModel;
use RuntimeException;
/**
+ * This LanguageModel Provider implements topics synthesis
+ * which outputs comma-separated topics for the passed text
* @since 28.0.0
*/
interface ITopicsProvider extends ILanguageModelProvider {
diff --git a/lib/public/LanguageModel/SummaryTask.php b/lib/public/LanguageModel/SummaryTask.php
index b5a3bd25c4f..ffc7aa01e71 100644
--- a/lib/public/LanguageModel/SummaryTask.php
+++ b/lib/public/LanguageModel/SummaryTask.php
@@ -3,6 +3,8 @@
namespace OCP\LanguageModel;
/**
+ * This LanguageModel Task represents summarization
+ * which sums up the passed text.
* @since 28.0.0
*/
final class SummaryTask extends AbstractLanguageModelTask {
diff --git a/lib/public/LanguageModel/TopicsTask.php b/lib/public/LanguageModel/TopicsTask.php
index a7a29603362..a628695a59a 100644
--- a/lib/public/LanguageModel/TopicsTask.php
+++ b/lib/public/LanguageModel/TopicsTask.php
@@ -3,6 +3,8 @@
namespace OCP\LanguageModel;
/**
+ * This LanguageModel Task represents topics synthesis
+ * which outputs comma-separated topics for the passed text
* @since 28.0.0
*/
final class TopicsTask extends AbstractLanguageModelTask {