Skip to content

Commit fd543eb

Browse files
committed
style: cargo fmt test_prompt_slots.rs
1 parent 78d5919 commit fd543eb

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

core/examples/test_prompt_slots.rs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ async fn main() -> anyhow::Result<()> {
5151
});
5252
let session = agent.session(workspace.path().to_str().unwrap(), Some(opts))?;
5353
let result = session
54-
.send("What is your area of expertise? Reply in one sentence.", None)
54+
.send(
55+
"What is your area of expertise? Reply in one sentence.",
56+
None,
57+
)
5558
.await?;
5659
println!("Response: {}\n", result.text.trim());
5760
assert!(!result.text.is_empty(), "should get a response");
@@ -79,13 +82,13 @@ def greet(name):
7982
)?;
8083

8184
let result = session
82-
.send(
83-
"Review the file app.py and list any issues you find.",
84-
None,
85-
)
85+
.send("Review the file app.py and list any issues you find.", None)
8686
.await?;
8787
println!("Response:\n{}\n", result.text.trim());
88-
assert!(result.tool_calls_count > 0, "should have used read_file tool");
88+
assert!(
89+
result.tool_calls_count > 0,
90+
"should have used read_file tool"
91+
);
8992

9093
// --- Test 3: Extra instructions only (backward compat style) ---
9194
println!("═══ Test 3: Extra instructions ═══");
@@ -94,9 +97,7 @@ def greet(name):
9497
..Default::default()
9598
});
9699
let session = agent.session(workspace.path().to_str().unwrap(), Some(opts))?;
97-
let result = session
98-
.send("Say hello.", None)
99-
.await?;
100+
let result = session.send("Say hello.", None).await?;
100101
println!("Response: {}\n", result.text.trim());
101102

102103
// --- Test 4: Verify tools still work (core behavior preserved) ---

0 commit comments

Comments
 (0)