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

Method send

core/src/agent_api.rs:737–739  ·  view source on GitHub ↗

Send a prompt and wait for the complete response. When `history` is `None`, uses (and auto-updates) the session's internal conversation history. When `Some`, uses the provided history instead (the internal history is **not** modified). If the prompt starts with `/`, it is dispatched as a slash command and the result is returned without calling the LLM.

(&self, prompt: &str, history: Option<&[Message]>)

Source from the content-addressed store, hash-verified

735 /// If the prompt starts with `/`, it is dispatched as a slash command
736 /// and the result is returned without calling the LLM.
737 pub async fn send(&self, prompt: &str, history: Option<&[Message]>) -> Result<AgentResult> {
738 conversation_runtime::send(self, prompt, history).await
739 }
740
741 /// Resume a previously-checkpointed run on this session.
742 ///

Callers 15

register_and_waitMethod · 0.45
submitMethod · 0.45
forward_eventMethod · 0.45
request_confirmationMethod · 0.45
confirmMethod · 0.45
check_timeoutsMethod · 0.45
cancelMethod · 0.45
cancel_allMethod · 0.45
execute_with_task_idMethod · 0.45
execute_backgroundMethod · 0.45

Calls 1

sendFunction · 0.50