File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/ast Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,11 @@ open class HobbitHole(
200
200
*/
201
201
val enabled : Boolean = true ,
202
202
203
+ /* *
204
+ * Can be
205
+ */
206
+ val agentic : Boolean = false ,
207
+
203
208
/* *
204
209
* the LLM model for action, default is null which will use the default model.
205
210
*
@@ -319,6 +324,7 @@ open class HobbitHole(
319
324
const val ON_STREAMING = " onStreaming"
320
325
321
326
const val ENABLED = " enabled"
327
+ const val AGENTIC = " agentic"
322
328
const val MODEL = " model"
323
329
324
330
private const val DESCRIPTION = " description"
@@ -367,6 +373,7 @@ open class HobbitHole(
367
373
val interaction = frontMatterMap[INTERACTION ]?.value as ? String ? : " "
368
374
val actionLocation = frontMatterMap[ACTION_LOCATION ]?.value as ? String ? : DevInsActionLocation .default()
369
375
val enabled = frontMatterMap[ENABLED ]?.value as ? Boolean ? : true
376
+ val agentic = frontMatterMap[AGENTIC ]?.value as ? Boolean ? : true
370
377
val model = frontMatterMap[MODEL ]?.value as ? String
371
378
372
379
val shortcut = (frontMatterMap[SHORTCUT ]?.value as ? String )?.let {
@@ -434,6 +441,7 @@ open class HobbitHole(
434
441
afterStreaming = afterStreaming,
435
442
shortcut = shortcut,
436
443
enabled = enabled,
444
+ agentic = agentic,
437
445
model = model
438
446
)
439
447
}
You can’t perform that action at this time.
0 commit comments