#[non_exhaustive]pub enum BuiltinTools {
ListDir,
SearchDir,
FindFile,
ViewFile,
CreateFile,
EditFile,
RunCommand,
AskQuestion,
StartSubagent,
GenerateImage,
Finish,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ListDir
SearchDir
FindFile
ViewFile
CreateFile
EditFile
RunCommand
AskQuestion
StartSubagent
GenerateImage
Finish
Implementations§
Source§impl BuiltinTools
impl BuiltinTools
Sourcepub const fn read_only() -> &'static [Self]
pub const fn read_only() -> &'static [Self]
Returns tools that only read (no writes, no command execution).
Sourcepub const fn nondestructive() -> &'static [Self]
pub const fn nondestructive() -> &'static [Self]
Returns tools that cannot delete content (all except RunCommand).
Sourcepub const fn file_tools() -> &'static [Self]
pub const fn file_tools() -> &'static [Self]
Returns tools that perform file read/write/create operations.
These tools accept a file path argument and can be scoped to specific
workspace directories via policy::workspace_only().
Sourcepub const fn as_sdk_name(&self) -> &'static str
pub const fn as_sdk_name(&self) -> &'static str
Returns the Python SDK tool name string (e.g. "list_directory").
Trait Implementations§
Source§impl Clone for BuiltinTools
impl Clone for BuiltinTools
Source§fn clone(&self) -> BuiltinTools
fn clone(&self) -> BuiltinTools
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 BuiltinTools
impl Debug for BuiltinTools
Source§impl<'de> Deserialize<'de> for BuiltinTools
impl<'de> Deserialize<'de> for BuiltinTools
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 BuiltinTools
impl Display for BuiltinTools
impl Eq for BuiltinTools
Source§impl PartialEq for BuiltinTools
impl PartialEq for BuiltinTools
Source§fn eq(&self, other: &BuiltinTools) -> bool
fn eq(&self, other: &BuiltinTools) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BuiltinTools
impl Serialize for BuiltinTools
impl StructuralPartialEq for BuiltinTools
Auto Trait Implementations§
impl Freeze for BuiltinTools
impl RefUnwindSafe for BuiltinTools
impl Send for BuiltinTools
impl Sync for BuiltinTools
impl Unpin for BuiltinTools
impl UnsafeUnpin for BuiltinTools
impl UnwindSafe for BuiltinTools
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