(&mut self, text: impl Into<String>)
| 136 | } |
| 137 | |
| 138 | pub fn add_text(&mut self, text: impl Into<String>) { |
| 139 | self.parts.push(MessagePart { |
| 140 | id: format!("prt_{}", uuid::Uuid::new_v4()), |
| 141 | part_type: PartType::Text { text: text.into(), synthetic: None, ignored: None }, |
| 142 | created_at: Utc::now(), |
| 143 | message_id: None, |
| 144 | }); |
| 145 | } |
| 146 | |
| 147 | pub fn add_reasoning(&mut self, text: impl Into<String>) { |
| 148 | self.parts.push(MessagePart { |
no outgoing calls
no test coverage detected