(
&self,
msg: &mut SessionMessage,
raw_url: &str,
filename: &str,
mime: &str,
)
| 375 | } |
| 376 | |
| 377 | async fn add_data_url_part( |
| 378 | &self, |
| 379 | msg: &mut SessionMessage, |
| 380 | raw_url: &str, |
| 381 | filename: &str, |
| 382 | mime: &str, |
| 383 | ) { |
| 384 | if let Some(text) = Self::decode_data_url_text(raw_url, mime) { |
| 385 | msg.add_text(format!( |
| 386 | "Called the Read tool with the following input: {}", |
| 387 | serde_json::json!({ "filePath": filename }) |
| 388 | )); |
| 389 | msg.add_text(text); |
| 390 | } |
| 391 | |
| 392 | msg.add_file(raw_url.to_string(), filename.to_string(), mime.to_string()); |
| 393 | } |
| 394 | |
| 395 | async fn add_file_url_part( |
| 396 | &self, |
no test coverage detected