pub enum ToolDirection {
Inbound,
Internal,
Outbound,
}Expand description
Direction of a tool’s data flow.
Variants§
Inbound
Tool brings data into the agent (e.g., read_file, web_search).
Internal
Tool operates locally within the agent (e.g., write_file, ask_user).
Outbound
Tool sends data outside the agent (e.g., send_email, post_to_slack).
Implementations§
Source§impl ToolDirection
impl ToolDirection
Sourcepub fn from_str_loose(s: &str) -> Option<ToolDirection>
pub fn from_str_loose(s: &str) -> Option<ToolDirection>
Parse from a string (case-insensitive).
Trait Implementations§
Source§impl Clone for ToolDirection
impl Clone for ToolDirection
Source§fn clone(&self) -> ToolDirection
fn clone(&self) -> ToolDirection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ToolDirection
Source§impl Debug for ToolDirection
impl Debug for ToolDirection
Source§impl Default for ToolDirection
impl Default for ToolDirection
Source§fn default() -> ToolDirection
fn default() -> ToolDirection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolDirection
impl<'de> Deserialize<'de> for ToolDirection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ToolDirection
impl Display for ToolDirection
impl Eq for ToolDirection
Source§impl Hash for ToolDirection
impl Hash for ToolDirection
Source§impl PartialEq for ToolDirection
impl PartialEq for ToolDirection
Source§impl Serialize for ToolDirection
impl Serialize for ToolDirection
impl StructuralPartialEq for ToolDirection
Auto Trait Implementations§
impl Freeze for ToolDirection
impl RefUnwindSafe for ToolDirection
impl Send for ToolDirection
impl Sync for ToolDirection
impl Unpin for ToolDirection
impl UnsafeUnpin for ToolDirection
impl UnwindSafe for ToolDirection
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.