MCPcopy Create free account
hub / github.com/AI45Lab/Code / stream_with_attachments

Method stream_with_attachments

core/src/agent_api.rs:773–780  ·  view source on GitHub ↗

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]>,
    )

Source from the content-addressed store, hash-verified

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 ///

Calls 1

stream_with_attachmentsFunction · 0.85