pub async fn invoke_agent_with_session(
agent: &str,
model: &str,
context: &str,
message: &str,
session_uuid: Option<&str>,
resume: bool,
) -> Result<InvokeResult>Expand description
Invoke an agent one-shot with --session-id or --resume for conversation continuity.
For claude-compatible agents (claude, kimi, minimax), passes --session-id <uuid>
when creating a new session, or --resume <uuid> when continuing an existing one.
Other agents get a plain one-shot call.