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

Method send_with_attachments

core/src/agent_api.rs:760–767  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Calls 1

send_with_attachmentsFunction · 0.85