Skip to content

Commit c671e6a

Browse files
committed
feat(agents): Add is_approved() and is_refused() to ToolFeedback
1 parent 68c5cda commit c671e6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swiftide-core/src/agent_traits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ impl AsRef<str> for CommandOutput {
185185
}
186186

187187
/// Feedback that can be given on a tool, i.e. with a human in the loop
188-
#[derive(Debug, Clone, Serialize, Deserialize)]
188+
#[derive(Debug, Clone, Serialize, Deserialize, strum_macros::EnumIs)]
189189
pub enum ToolFeedback {
190190
Approved { payload: Option<serde_json::Value> },
191191
Refused { payload: Option<serde_json::Value> },

0 commit comments

Comments
 (0)