(prompt: impl Into<String>)
| 90 | } |
| 91 | |
| 92 | pub fn with_system_prompt(prompt: impl Into<String>) -> Self { |
| 93 | let mut conv = Self::new(); |
| 94 | conv.messages.push(AgentMessage::system(prompt)); |
| 95 | conv |
| 96 | } |
| 97 | |
| 98 | pub fn add_user_message(&mut self, content: impl Into<String>) { |
| 99 | self.messages.push(AgentMessage::user(content)); |