(&self)
| 244 | } |
| 245 | |
| 246 | pub fn get_reasoning(&self) -> String { |
| 247 | self.parts |
| 248 | .iter() |
| 249 | .filter_map(|p| match &p.part_type { |
| 250 | PartType::Reasoning { text } => Some(text.clone()), |
| 251 | _ => None, |
| 252 | }) |
| 253 | .collect::<Vec<_>>() |
| 254 | .join("") |
| 255 | } |
| 256 | } |