Skip to content

Commit 51344fd

Browse files
committed
feat: filter out task types that are declared as internal with the new IInternalTaskType
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1 parent f4108c5 commit 51344fd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/Service/AssistantService.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ public function getAvailableTaskTypes(): array {
284284
foreach ($availableTaskTypes as $typeId => $taskTypeArray) {
285285
// skip chat, chat with tools and ContextAgent task types (not directly useful to the end user)
286286
if (!self::DEBUG) {
287+
// this appeared in 33, this is true if the task type class extends the IInternalTaskType
288+
if ($taskTypeArray['isInternal'] ?? false) {
289+
continue;
290+
}
287291
if (class_exists('OCP\\TaskProcessing\\TaskTypes\\TextToTextChatWithTools')
288292
&& $typeId === \OCP\TaskProcessing\TaskTypes\TextToTextChatWithTools::ID) {
289293
continue;

0 commit comments

Comments
 (0)