use serde_json::Value; #[derive(Debug, Clone)] pub enum SubagentEvent { StepCompleted { step: usize, output: String, }, StepFailed { step: usize, error: String, }, Completed { output: String, }, Failed { error: String, }, ToolCall { tool: String, args: Value, }, ToolResult { tool: String, output: String, }, }