Agent chat: show the agent's answers as Markdown (#1778)
Thanks @Rec0iL.
This commit is contained in:
1 parent
ff7c899840
commit
6496ec86ec
7 files changed
+564
-3
No files matched your search
@@ -639,8 +639,11 @@ fn conversation(app: &mut SolveApp, ui: &mut egui::Ui) {
|
||||
});
|
||||
}
|
||||
Item::Agent { thought, text } => {
|
||||
let rt = if *thought { RichText::new(text).italics().color(t.text_dim) } else { RichText::new(text).color(t.text) };
|
||||
ui.add(egui::Label::new(rt).selectable(true).wrap());
|
||||
if *thought {
|
||||
ui.add(egui::Label::new(RichText::new(text).italics().color(t.text_dim)).selectable(true).wrap());
|
||||
} else {
|
||||
super::markdown_view::show(ui, n, text);
|
||||
}
|
||||
}
|
||||
Item::Tool { title, kind, status, output, .. } => {
|
||||
tool_card(ui, n, title, kind, *status, output.as_deref());
|
||||
|
||||
Reference in new issue
Block a user