File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
apps/testing/lib/Provider Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 2424
2525use OCP \TextProcessing \FreePromptTaskType ;
2626use OCP \TextProcessing \IProvider ;
27+ use OCP \TextProcessing \IProviderWithExpectedRuntime ;
2728use OCP \TextProcessing \ITaskType ;
2829
2930/** @template-implements IProvider<FreePromptTaskType|ITaskType> */
30- class FakeTextProcessingProvider implements IProvider {
31+ class FakeTextProcessingProvider implements IProvider, IProviderWithExpectedRuntime {
3132
3233 public function getName (): string {
3334 return 'Fake text processing provider ' ;
@@ -40,4 +41,8 @@ public function process(string $prompt): string {
4041 public function getTaskType (): string {
4142 return FreePromptTaskType::class;
4243 }
44+
45+ public function getExpectedRuntime (): int {
46+ return 1 ;
47+ }
4348}
You can’t perform that action at this time.
0 commit comments