- Removed unused structs and methods from `response.rs`, `usage.rs`, and `client.rs`. - Simplified `Connection` handling in `conn.rs` to only support Unix sockets. - Updated `IpcServer` to exclusively use Unix sockets and removed TCP handling. - Cleaned up `editlog.rs` by removing loading and recent entry methods. - Refactored `memory.rs` to eliminate unused functions related to lesson promotion and retrospective creation. - Enhanced `search.rs` to support multiple search providers and improved error handling. - Updated chat view logic to simplify message display and improve user experience. - Removed deprecated modules and constants from various files to streamline the codebase.
25 lines
406 B
Rust
25 lines
406 B
Rust
use serde_json::Value;
|
|
|
|
#[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,
|
|
},
|
|
}
|