pub enum ActionCategory {
FileOperation,
CommandExecution,
GeneralCompletion,
}Expand description
Category of action an LLM claims to have performed.
Variants§
FileOperation
File write/update/modify/create/delete.
CommandExecution
Shell command execution.
GeneralCompletion
General completion claim (“Done! I’ve …”).
Implementations§
Source§impl ActionCategory
impl ActionCategory
Sourcepub fn matches_tool(&self, tool_name: &str) -> bool
pub fn matches_tool(&self, tool_name: &str) -> bool
Check whether a tool name is consistent with this action category.
Trait Implementations§
Source§impl Clone for ActionCategory
impl Clone for ActionCategory
Source§impl Debug for ActionCategory
impl Debug for ActionCategory
Source§impl Display for ActionCategory
impl Display for ActionCategory
impl Eq for ActionCategory
Source§impl PartialEq for ActionCategory
impl PartialEq for ActionCategory
impl StructuralPartialEq for ActionCategory
Auto Trait Implementations§
impl Freeze for ActionCategory
impl RefUnwindSafe for ActionCategory
impl Send for ActionCategory
impl Sync for ActionCategory
impl Unpin for ActionCategory
impl UnsafeUnpin for ActionCategory
impl UnwindSafe for ActionCategory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more