fix(channels): execute tool calls in channel runtime (#302)
* fix(channels): execute tool calls in channel runtime (#302) * chore(fmt): align repo formatting with rustfmt 1.92
This commit is contained in:
parent
efabe9703f
commit
9d29f30a31
17 changed files with 483 additions and 127 deletions
|
|
@ -61,7 +61,10 @@ mod tests {
|
|||
let mut cmd = Command::new("echo");
|
||||
cmd.arg("test");
|
||||
let original_program = cmd.get_program().to_string_lossy().to_string();
|
||||
let original_args: Vec<String> = cmd.get_args().map(|s| s.to_string_lossy().to_string()).collect();
|
||||
let original_args: Vec<String> = cmd
|
||||
.get_args()
|
||||
.map(|s| s.to_string_lossy().to_string())
|
||||
.collect();
|
||||
|
||||
let sandbox = NoopSandbox;
|
||||
assert!(sandbox.wrap_command(&mut cmd).is_ok());
|
||||
|
|
@ -69,7 +72,9 @@ mod tests {
|
|||
// Command should be unchanged
|
||||
assert_eq!(cmd.get_program().to_string_lossy(), original_program);
|
||||
assert_eq!(
|
||||
cmd.get_args().map(|s| s.to_string_lossy().to_string()).collect::<Vec<_>>(),
|
||||
cmd.get_args()
|
||||
.map(|s| s.to_string_lossy().to_string())
|
||||
.collect::<Vec<_>>(),
|
||||
original_args
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue