skills: skill tool, YAML frontmatter, disable-model-invocation, argument-hint
This commit is contained in:
1 parent
7e29515821
commit
199f337662
12 files changed
+328
-121
No files matched your search
@@ -1,6 +1,7 @@
|
||||
//! Built-in tools: read, write, edit, bash.
|
||||
|
||||
pub mod codemode;
|
||||
pub mod skill;
|
||||
|
||||
use async_trait::async_trait;
|
||||
use hx_ai::ToolSpec;
|
||||
@@ -14,7 +15,7 @@ const MAX_BYTES: usize = 20_000;
|
||||
/// bash keeps this much of the start (command echo, first errors) and the rest from the end.
|
||||
const HEAD_BYTES: usize = 4_000;
|
||||
|
||||
fn spec(name: &str, desc: &str, schema: Value) -> ToolSpec {
|
||||
pub(crate) fn spec(name: &str, desc: &str, schema: Value) -> ToolSpec {
|
||||
ToolSpec {
|
||||
name: name.into(),
|
||||
description: desc.into(),
|
||||
@@ -65,7 +66,8 @@ pub fn registry() -> Registry {
|
||||
.add(Bash)
|
||||
.add(AskUser)
|
||||
.add(MemoryWrite)
|
||||
.add(MemoryForget);
|
||||
.add(MemoryForget)
|
||||
.add(skill::Skill);
|
||||
r
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user