Send a prompt with image attachments and wait for the complete response. Images are included as multi-modal content blocks in the user message. Requires a vision-capable model (e.g., Claude Sonnet, GPT-4o).
(
&self,
prompt: &str,
attachments: &[crate::llm::Attachment],
history: Option<&[Message]>,
)
| 758 | /// Images are included as multi-modal content blocks in the user message. |
| 759 | /// Requires a vision-capable model (e.g., Claude Sonnet, GPT-4o). |
| 760 | pub async fn send_with_attachments( |
| 761 | &self, |
| 762 | prompt: &str, |
| 763 | attachments: &[crate::llm::Attachment], |
| 764 | history: Option<&[Message]>, |
| 765 | ) -> Result<AgentResult> { |
| 766 | conversation_runtime::send_with_attachments(self, prompt, attachments, history).await |
| 767 | } |
| 768 | |
| 769 | /// Stream a prompt with image attachments. |
| 770 | /// |