Skip to content

Commit

Permalink
LLM OCP API: Add task definitions
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Jul 7, 2023
1 parent 249dd5c commit fb4de16
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/public/LanguageModel/HeadlineTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions lib/public/LanguageModel/IHeadlineProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
use RuntimeException;

/**
* This LanguageModel Provider represents headline generation
* which generates a headline for the passed text
* @since 28.0.0
*/
interface IHeadlineProvider extends ILanguageModelProvider {
Expand Down
2 changes: 2 additions & 0 deletions lib/public/LanguageModel/ISummaryProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
use RuntimeException;

/**
* This LanguageModel Provider implements summarization
* which sums up the passed text.
* @since 28.0.0
*/
interface ISummaryProvider extends ILanguageModelProvider {
Expand Down
2 changes: 2 additions & 0 deletions lib/public/LanguageModel/ITopicsProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
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 {
Expand Down
2 changes: 2 additions & 0 deletions lib/public/LanguageModel/SummaryTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions lib/public/LanguageModel/TopicsTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fb4de16

Please sign in to comment.