Skip to content
Merged
4 changes: 4 additions & 0 deletions crates/assistant/src/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,10 @@ impl Agent {
/// most [`crate::attach::MAX_PER_MESSAGE`] (more are left out, and said). The transcript says
/// each picture, and the size it went at when it was drawn smaller; a model known not to read
/// images gets their captions, which is said too.
///
/// While the agent is [`busy`](Self::busy) the message is not taken: this returns
/// [`Step::Done`] and records nothing, text and pictures alike. The caller checks `busy()`
/// first and tells the user, keeping their draft.
pub fn ask_with(&mut self, text: &str, pictures: Vec<Picture>, s: &Session) -> Step {
self.guard(|a| a.ask_unguarded(text, pictures, s))
}
Expand Down
2 changes: 1 addition & 1 deletion crates/ui-egui/src/agentthreads.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ fn deliver(app: &mut RustGisApp, ctx: &egui::Context) {
let step = agent.deliver(&app.session);
app.assistant.agent = Some(agent);
if let Some(step) = step {
crate::assistantpane::follow(app, step, ctx);
crate::assistant::follow(app, step, ctx);
}
}

Expand Down
Loading
Loading