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:
Kent Overstreet 2026-04-08 20:38:42 -04:00
parent 12798eeae2
commit daba424a46
9 changed files with 16 additions and 16 deletions

View file

@ -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))
}) },
})) },
]
}