Stream a prompt with image attachments. 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]>,
)
| 771 | /// Images are included as multi-modal content blocks in the user message. |
| 772 | /// Requires a vision-capable model (e.g., Claude Sonnet, GPT-4o). |
| 773 | pub async fn stream_with_attachments( |
| 774 | &self, |
| 775 | prompt: &str, |
| 776 | attachments: &[crate::llm::Attachment], |
| 777 | history: Option<&[Message]>, |
| 778 | ) -> Result<(mpsc::Receiver<AgentEvent>, JoinHandle<()>)> { |
| 779 | conversation_runtime::stream_with_attachments(self, prompt, attachments, history).await |
| 780 | } |
| 781 | |
| 782 | /// Send a prompt and stream events back. |
| 783 | /// |