File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,17 @@ public function getAvailableTaskTypes(): array {
173
173
}
174
174
/** @var string $typeId */
175
175
foreach ($ availableTaskTypes as $ typeId => $ taskTypeArray ) {
176
- // skip chat task type (not directly useful to the end user)
176
+ // skip chat, chat with tools and ContextAgent task types (not directly useful to the end user)
177
+ if (!self ::DEBUG ) {
178
+ if (class_exists ('OCP \\TaskProcessing \\TaskTypes \\TextToTextChatWithTools ' )
179
+ && $ typeId === \OCP \TaskProcessing \TaskTypes \TextToTextChatWithTools::ID ) {
180
+ continue ;
181
+ }
182
+ if (class_exists ('OCP \\TaskProcessing \\TaskTypes \\ContextAgentInteraction ' )
183
+ && $ typeId === \OCP \TaskProcessing \TaskTypes \ContextAgentInteraction::ID ) {
184
+ continue ;
185
+ }
186
+ }
177
187
if ($ typeId === TextToTextChat::ID ) {
178
188
// add the chattyUI virtual task type
179
189
$ types [] = [
@@ -191,7 +201,9 @@ public function getAvailableTaskTypes(): array {
191
201
'priority ' => self ::TASK_TYPE_PRIORITIES ['chatty-llm ' ] ?? 1000 ,
192
202
];
193
203
// do not add the raw TextToTextChat type
194
- continue ;
204
+ if (!self ::DEBUG ) {
205
+ continue ;
206
+ }
195
207
}
196
208
$ taskTypeArray ['id ' ] = $ typeId ;
197
209
$ taskTypeArray ['priority ' ] = self ::TASK_TYPE_PRIORITIES [$ typeId ] ?? 1000 ;
Original file line number Diff line number Diff line change 42
42
</MoreSpecificReturnType >
43
43
<RedundantCondition >
44
44
<code ><![CDATA[ !self::DEBUG]]> </code >
45
+ <code ><![CDATA[ !self::DEBUG]]> </code >
46
+ <code ><![CDATA[ !self::DEBUG]]> </code >
45
47
</RedundantCondition >
46
48
<TypeDoesNotContainType >
47
49
<code ><![CDATA[ self::DEBUG]]> </code >
You can’t perform that action at this time.
0 commit comments