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