pub struct ClaudeNativeTools {
pub web_search: bool,
pub web_fetch: bool,
pub code_execution: bool,
pub bash: bool,
pub text_editor: Option<ClaudeTextEditorTool>,
}Expand description
Claude-native tools.
Fields§
§web_search: boolServer-side web search.
web_fetch: boolServer-side web fetch.
code_execution: boolServer-side code execution.
bash: boolClient-side bash tool.
text_editor: Option<ClaudeTextEditorTool>Client-side text editor tool.
Implementations§
Source§impl ClaudeNativeTools
impl ClaudeNativeTools
Sourcepub const fn web_search(self, enabled: bool) -> Self
pub const fn web_search(self, enabled: bool) -> Self
Enables server-side web search.
Sourcepub const fn code_execution(self, enabled: bool) -> Self
pub const fn code_execution(self, enabled: bool) -> Self
Enables server-side code execution.
Sourcepub const fn text_editor(self, tool: ClaudeTextEditorTool) -> Self
pub const fn text_editor(self, tool: ClaudeTextEditorTool) -> Self
Enables client-side text editor.
Trait Implementations§
Source§impl Clone for ClaudeNativeTools
impl Clone for ClaudeNativeTools
Source§fn clone(&self) -> ClaudeNativeTools
fn clone(&self) -> ClaudeNativeTools
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 moreSource§impl Debug for ClaudeNativeTools
impl Debug for ClaudeNativeTools
Source§impl Default for ClaudeNativeTools
impl Default for ClaudeNativeTools
Source§fn default() -> ClaudeNativeTools
fn default() -> ClaudeNativeTools
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClaudeNativeTools
impl<'de> Deserialize<'de> for ClaudeNativeTools
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
impl Eq for ClaudeNativeTools
Source§impl PartialEq for ClaudeNativeTools
impl PartialEq for ClaudeNativeTools
Source§impl Serialize for ClaudeNativeTools
impl Serialize for ClaudeNativeTools
impl StructuralPartialEq for ClaudeNativeTools
Auto Trait Implementations§
impl Freeze for ClaudeNativeTools
impl RefUnwindSafe for ClaudeNativeTools
impl Send for ClaudeNativeTools
impl Sync for ClaudeNativeTools
impl Unpin for ClaudeNativeTools
impl UnsafeUnpin for ClaudeNativeTools
impl UnwindSafe for ClaudeNativeTools
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