pub struct AetherToolRegistry { /* private fields */ }Expand description
Registry of tools available to AI providers
Implementations§
Source§impl AetherToolRegistry
impl AetherToolRegistry
Sourcepub fn all_tools(&self) -> Vec<&AetherTool>
pub fn all_tools(&self) -> Vec<&AetherTool>
Get all available tools
Sourcepub fn available_tools(&self) -> Vec<&AetherTool>
pub fn available_tools(&self) -> Vec<&AetherTool>
Get tools available on the current platform
Sourcepub fn tools_by_domain(&self, domain: &CapabilityDomain) -> Vec<&AetherTool>
pub fn tools_by_domain(&self, domain: &CapabilityDomain) -> Vec<&AetherTool>
Get tools by domain
Sourcepub fn get_tool(&self, name: &str) -> Option<&AetherTool>
pub fn get_tool(&self, name: &str) -> Option<&AetherTool>
Get a specific tool by name
Sourcepub fn execute(&self, tool_name: &str, args: JsonValue) -> ToolResult
pub fn execute(&self, tool_name: &str, args: JsonValue) -> ToolResult
Execute a tool with given arguments
Sourcepub fn to_openai_functions(&self) -> Vec<JsonValue>
pub fn to_openai_functions(&self) -> Vec<JsonValue>
Convert tools to OpenAI function format
Sourcepub fn to_anthropic_tools(&self) -> Vec<JsonValue>
pub fn to_anthropic_tools(&self) -> Vec<JsonValue>
Convert tools to Anthropic tool format
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AetherToolRegistry
impl RefUnwindSafe for AetherToolRegistry
impl Send for AetherToolRegistry
impl Sync for AetherToolRegistry
impl Unpin for AetherToolRegistry
impl UnwindSafe for AetherToolRegistry
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().