Files
zesdex/src/app/subagent/event.rs
T

30 lines
614 B
Rust
Raw Normal View History

//! Event variants that a running subagent can emit to its parent via the
//! shared mpsc channel.
use serde_json::Value;
/// Progress and outcome events emitted by `run_subagent` as it processes
/// LLM responses and tool calls.
#[derive(Debug, Clone)]
pub enum SubagentEvent {
StepCompleted {
_step: usize,
_output: String,
},
StepFailed {
_step: usize,
_error: String,
},
Completed {
_output: String,
},
ToolCall {
_tool: String,
_args: Value,
},
ToolResult {
_tool: String,
_output: String,
},
}