diff options
Diffstat (limited to 'lib/public/LanguageModel/ILanguageModelTask.php')
-rw-r--r-- | lib/public/LanguageModel/ILanguageModelTask.php | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/lib/public/LanguageModel/ILanguageModelTask.php b/lib/public/LanguageModel/ILanguageModelTask.php new file mode 100644 index 00000000000..478ee54e8a3 --- /dev/null +++ b/lib/public/LanguageModel/ILanguageModelTask.php @@ -0,0 +1,56 @@ +<?php + +namespace OCP\LanguageModel; + +interface ILanguageModelTask { + public const STATUS_FAILED = 4; + public const STATUS_SUCCESSFUL = 3; + public const STATUS_RUNNING = 2; + public const STATUS_SCHEDULED = 1; + public const STATUS_UNKNOWN = 0; + + public const TYPES = [ + SummaryTask::TYPE => SummaryTask::class, + FreePromptTask::TYPE => FreePromptTask::class, + ]; + + /** + * @return string + */ + public function getType(): string; + + /** + * @return int + */ + public function getStatus(): int; + + /** + * @param int $status + */ + public function setStatus(int $status): void; + + /** + * @param int|null $id + */ + public function setId(?int $id): void; + + /** + * @return int|null + */ + public function getId(): ?int; + + /** + * @return string + */ + public function getInput(): string; + + /** + * @return string + */ + public function getAppId(): string; + + /** + * @return string|null + */ + public function getUserId(): ?string; +} |