Skip to content

Commit f47e696

Browse files
committed
feat(hobbit): add agentic property to enhance interaction capabilities #379
1 parent 985099a commit f47e696

File tree

1 file changed

+8
-0
lines changed
  • exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/ast

1 file changed

+8
-0
lines changed

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/ast/HobbitHole.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,11 @@ open class HobbitHole(
200200
*/
201201
val enabled: Boolean = true,
202202

203+
/**
204+
* Can be
205+
*/
206+
val agentic: Boolean = false,
207+
203208
/**
204209
* the LLM model for action, default is null which will use the default model.
205210
*
@@ -319,6 +324,7 @@ open class HobbitHole(
319324
const val ON_STREAMING = "onStreaming"
320325

321326
const val ENABLED = "enabled"
327+
const val AGENTIC = "agentic"
322328
const val MODEL = "model"
323329

324330
private const val DESCRIPTION = "description"
@@ -367,6 +373,7 @@ open class HobbitHole(
367373
val interaction = frontMatterMap[INTERACTION]?.value as? String ?: ""
368374
val actionLocation = frontMatterMap[ACTION_LOCATION]?.value as? String ?: DevInsActionLocation.default()
369375
val enabled = frontMatterMap[ENABLED]?.value as? Boolean ?: true
376+
val agentic = frontMatterMap[AGENTIC]?.value as? Boolean ?: true
370377
val model = frontMatterMap[MODEL]?.value as? String
371378

372379
val shortcut = (frontMatterMap[SHORTCUT]?.value as? String)?.let {
@@ -434,6 +441,7 @@ open class HobbitHole(
434441
afterStreaming = afterStreaming,
435442
shortcut = shortcut,
436443
enabled = enabled,
444+
agentic = agentic,
437445
model = model
438446
)
439447
}

0 commit comments

Comments
 (0)