WIP: Fix Arc::new() wrapping on tool handlers — some import/paren issues remain
Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
12798eeae2
commit
daba424a46
9 changed files with 16 additions and 16 deletions
|
|
@ -18,7 +18,7 @@ pub(super) fn tools() -> [super::Tool; 3] {
|
|||
a.pending_model_switch = Some(model.to_string());
|
||||
}
|
||||
Ok(format!("Switching to model '{}' after this turn.", model))
|
||||
}) },
|
||||
})) },
|
||||
Tool { name: "pause",
|
||||
description: "Pause all autonomous behavior. Only the user can unpause (Ctrl+P or /wake).",
|
||||
parameters_json: r#"{"type":"object","properties":{}}"#,
|
||||
|
|
@ -29,7 +29,7 @@ pub(super) fn tools() -> [super::Tool; 3] {
|
|||
a.pending_dmn_pause = true;
|
||||
}
|
||||
Ok("Pausing autonomous behavior. Only user input will wake you.".into())
|
||||
}) },
|
||||
})) },
|
||||
Tool { name: "yield_to_user",
|
||||
description: "Wait for user input before continuing. The only way to enter a waiting state.",
|
||||
parameters_json: r#"{"type":"object","properties":{"message":{"type":"string","description":"Optional status message"}}}"#,
|
||||
|
|
@ -40,6 +40,6 @@ pub(super) fn tools() -> [super::Tool; 3] {
|
|||
a.pending_yield = true;
|
||||
}
|
||||
Ok(format!("Yielding. {}", msg))
|
||||
}) },
|
||||
})) },
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue