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 24
24
25
25
use OCP \TextProcessing \FreePromptTaskType ;
26
26
use OCP \TextProcessing \IProvider ;
27
+ use OCP \TextProcessing \IProviderWithExpectedRuntime ;
27
28
use OCP \TextProcessing \ITaskType ;
28
29
29
30
/** @template-implements IProvider<FreePromptTaskType|ITaskType> */
30
- class FakeTextProcessingProvider implements IProvider {
31
+ class FakeTextProcessingProvider implements IProvider, IProviderWithExpectedRuntime {
31
32
32
33
public function getName (): string {
33
34
return 'Fake text processing provider ' ;
@@ -40,4 +41,8 @@ public function process(string $prompt): string {
40
41
public function getTaskType (): string {
41
42
return FreePromptTaskType::class;
42
43
}
44
+
45
+ public function getExpectedRuntime (): int {
46
+ return 1 ;
47
+ }
43
48
}
You can’t perform that action at this time.
0 commit comments