aboutsummaryrefslogtreecommitdiff
path: root/src/app/modules/resume.rs
diff options
context:
space:
mode:
authorOxbian <oxbian@mailbox.org>2025-05-18 12:19:33 -0400
committerOxbian <oxbian@mailbox.org>2025-05-18 12:19:33 -0400
commitea5fe19ad751fd6fa686e502a5cf7f26a78668e9 (patch)
treecd005f10acc256613ef5a9b88cf36733659ea57f /src/app/modules/resume.rs
parentfecb211130ec487c7c617d28419c6d0097f19783 (diff)
downloadNAI-main.tar.gz
NAI-main.zip
feat: refactor chat, resume into modules + color in UImain
Diffstat (limited to 'src/app/modules/resume.rs')
-rw-r--r--src/app/modules/resume.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/app/modules/resume.rs b/src/app/modules/resume.rs
new file mode 100644
index 0000000..057314c
--- /dev/null
+++ b/src/app/modules/resume.rs
@@ -0,0 +1,9 @@
+use crate::app::llm::{LLM, Message, MessageType};
+
+pub async fn resume_conv(mut messages: Vec<Message>) -> Result<String, Box<dyn std::error::Error>> {
+ let resume_llm = LLM::new("config/resume-LLM.json");
+ messages.push(Message::new(MessageType::USER, resume_llm.system_prompt.to_string()));
+
+ let result: String = resume_llm.ask(&messages).await?;
+ Ok(result)
+}
ArKa projects. All rights to me, and your next child right arm.