pub enum ActionKind {
Read,
List,
Search,
Edit,
Run,
}Expand description
Which of the five actions an Action is, without its details.
Variants§
Implementations§
Source§impl ActionKind
impl ActionKind
Sourcepub fn of_tool(name: &str) -> Option<Self>
pub fn of_tool(name: &str) -> Option<Self>
The action a tool name stands for, when it is one of the five.
Sourcepub fn tool_name(self) -> &'static str
pub fn tool_name(self) -> &'static str
The tool name the model uses for this action, such as read_file.
Sourcepub fn verb(self) -> &'static str
pub fn verb(self) -> &'static str
The short English verb used in Action::summary, such as read.
Trait Implementations§
Source§impl Clone for ActionKind
impl Clone for ActionKind
impl Copy for ActionKind
Source§impl Debug for ActionKind
impl Debug for ActionKind
impl Eq for ActionKind
Source§impl Hash for ActionKind
impl Hash for ActionKind
Source§impl PartialEq for ActionKind
impl PartialEq for ActionKind
impl StructuralPartialEq for ActionKind
Auto Trait Implementations§
impl Freeze for ActionKind
impl RefUnwindSafe for ActionKind
impl Send for ActionKind
impl Sync for ActionKind
impl Unpin for ActionKind
impl UnsafeUnpin for ActionKind
impl UnwindSafe for ActionKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more