pub struct DynamicToolFactory {
pub name: String,
pub factory_type: String,
pub config: Value,
pub description: Option<String>,
}Expand description
A dynamic tool factory definition. The factory_type determines
how config is interpreted and what tool is created.
Fields§
§name: StringName of the tool to create (e.g. “zippy_request”)
factory_type: StringFactory type discriminator (e.g. “http”)
config: ValueFactory-specific configuration (deserialized based on factory_type)
description: Option<String>Optional description override for the tool
Trait Implementations§
Source§impl Clone for DynamicToolFactory
impl Clone for DynamicToolFactory
Source§fn clone(&self) -> DynamicToolFactory
fn clone(&self) -> DynamicToolFactory
Returns a duplicate of the value. Read more
1.0.0 · 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 DynamicToolFactory
impl Debug for DynamicToolFactory
Source§impl<'de> Deserialize<'de> for DynamicToolFactory
impl<'de> Deserialize<'de> for DynamicToolFactory
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 JsonSchema for DynamicToolFactory
impl JsonSchema for DynamicToolFactory
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for DynamicToolFactory
impl RefUnwindSafe for DynamicToolFactory
impl Send for DynamicToolFactory
impl Sync for DynamicToolFactory
impl Unpin for DynamicToolFactory
impl UnsafeUnpin for DynamicToolFactory
impl UnwindSafe for DynamicToolFactory
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