pub struct BuiltinTools;Expand description
Builtin tools provided by the Agency
Implementations§
Source§impl BuiltinTools
impl BuiltinTools
Sourcepub fn web_search() -> Tool
pub fn web_search() -> Tool
Web search tool
Sourcepub fn code_execution() -> Tool
pub fn code_execution() -> Tool
Code execution tool
Sourcepub fn write_file() -> Tool
pub fn write_file() -> Tool
Write file tool
Sourcepub fn list_directory() -> Tool
pub fn list_directory() -> Tool
List directory tool
Sourcepub fn http_request() -> Tool
pub fn http_request() -> Tool
HTTP request tool
Sourcepub fn calculator() -> Tool
pub fn calculator() -> Tool
Calculator tool
Auto Trait Implementations§
impl Freeze for BuiltinTools
impl RefUnwindSafe for BuiltinTools
impl Send for BuiltinTools
impl Sync for BuiltinTools
impl Unpin 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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