pub enum GrokToolType {
WebSearch,
XSearch,
CodeExecution,
CollectionsSearch,
Mcp,
}Expand description
The type of xAI server-side tool.
Variants§
WebSearch
Real-time web search and page browsing
XSearch
Search X (Twitter) posts, users, and threads
CodeExecution
Execute Python code for calculations and data analysis
CollectionsSearch
Search uploaded document collections (knowledge bases)
Mcp
Connect to external MCP servers for custom tools
Trait Implementations§
Source§impl Clone for GrokToolType
impl Clone for GrokToolType
Source§fn clone(&self) -> GrokToolType
fn clone(&self) -> GrokToolType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GrokToolType
impl Debug for GrokToolType
Source§impl<'de> Deserialize<'de> for GrokToolType
impl<'de> Deserialize<'de> for GrokToolType
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 PartialEq for GrokToolType
impl PartialEq for GrokToolType
Source§impl Serialize for GrokToolType
impl Serialize for GrokToolType
impl Copy for GrokToolType
impl Eq for GrokToolType
impl StructuralPartialEq for GrokToolType
Auto Trait Implementations§
impl Freeze for GrokToolType
impl RefUnwindSafe for GrokToolType
impl Send for GrokToolType
impl Sync for GrokToolType
impl Unpin for GrokToolType
impl UnwindSafe for GrokToolType
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§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.