pub struct DynamicTool { /* private fields */ }Expand description
Dynamic tool creation with runtime configuration and type-safe builders Dynamic tool created by ToolBuilder
Implementations§
Trait Implementations§
Source§impl HasAnnotations for DynamicTool
Implements HasAnnotations for DynamicTool providing metadata annotations
impl HasAnnotations for DynamicTool
Implements HasAnnotations for DynamicTool providing metadata annotations
fn annotations(&self) -> Option<&ToolAnnotations>
Source§impl HasBaseMetadata for DynamicTool
Implements HasBaseMetadata for DynamicTool providing name and title access
impl HasBaseMetadata for DynamicTool
Implements HasBaseMetadata for DynamicTool providing name and title access
Source§impl HasDescription for DynamicTool
Implements HasDescription for DynamicTool providing description text access
impl HasDescription for DynamicTool
Implements HasDescription for DynamicTool providing description text access
fn description(&self) -> Option<&str>
Source§impl HasInputSchema for DynamicTool
Implements HasInputSchema for DynamicTool providing parameter schema access
impl HasInputSchema for DynamicTool
Implements HasInputSchema for DynamicTool providing parameter schema access
fn input_schema(&self) -> &ToolSchema
Source§impl HasOutputSchema for DynamicTool
Implements HasOutputSchema for DynamicTool providing result schema access
impl HasOutputSchema for DynamicTool
Implements HasOutputSchema for DynamicTool providing result schema access
fn output_schema(&self) -> Option<&ToolSchema>
Source§impl HasToolMeta for DynamicTool
Implements HasToolMeta for DynamicTool providing additional metadata fields
impl HasToolMeta for DynamicTool
Implements HasToolMeta for DynamicTool providing additional metadata fields
Source§impl McpTool for DynamicTool
Implements McpTool for DynamicTool to enable Level 3 builder pattern tool creation
impl McpTool for DynamicTool
Implements McpTool for DynamicTool to enable Level 3 builder pattern tool creation
This implementation bridges DynamicTool’s builder pattern with the framework’s session-aware execution model, enabling runtime tool construction with type safety.
Auto Trait Implementations§
impl Freeze for DynamicTool
impl !RefUnwindSafe for DynamicTool
impl Send for DynamicTool
impl Sync for DynamicTool
impl Unpin for DynamicTool
impl !UnwindSafe for DynamicTool
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
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>
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>
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