Skip to main content

send_message

Function send_message 

Source
pub async fn send_message(
    store: &TaskStore,
    session_id: &str,
    channel: &str,
    channel_thread: Option<&str>,
    message: &str,
) -> Result<String>
Expand description

High-level entry point: process a user message and return the assistant response.

Handles /model and /agent commands, assembles context, invokes the agent, parses the response for summaries, and stores both user and assistant messages.