pub struct FunctionCallModifierConfig {
pub predicate: Arc<dyn Fn(&str) -> bool + Send + Sync>,
pub args: BTreeMap<String, Schema>,
pub override_description: Option<Arc<dyn Fn(&str) -> String + Send + Sync>>,
}Expand description
The configuration of the function-call-modifier plugin.
Fields§
§predicate: Arc<dyn Fn(&str) -> bool + Send + Sync>Whether the named tool gets the extra arguments.
args: BTreeMap<String, Schema>The extra arguments by name. They are added to each selected declaration’s typed
parameters and moved from its function calls into session state.
override_description: Option<Arc<dyn Fn(&str) -> String + Send + Sync>>Maps a selected declaration’s description to its new one.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FunctionCallModifierConfig
impl !UnwindSafe for FunctionCallModifierConfig
impl Forget for FunctionCallModifierConfig
impl Freeze for FunctionCallModifierConfigwhere
*const ArcInner<dyn Fn(&str) -> bool + Sync + Send> is !null: Freeze,
PhantomData<ArcInner<dyn Fn(&str) -> bool + Sync + Send>>: Freeze,
*const LeafNode<String, Schema> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Schema)>>: Freeze,
*const ArcInner<dyn Fn(&str) -> String + Sync + Send> is !null: Freeze,
PhantomData<ArcInner<dyn Fn(&str) -> String + Sync + Send>>: Freeze,
impl Move for FunctionCallModifierConfig
impl Send for FunctionCallModifierConfig
impl Sync for FunctionCallModifierConfig
impl Unpin for FunctionCallModifierConfig
impl UnsafeUnpin for FunctionCallModifierConfigwhere
*const ArcInner<dyn Fn(&str) -> bool + Sync + Send> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Fn(&str) -> bool + Sync + Send>>: UnsafeUnpin,
*const LeafNode<String, Schema> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Schema)>>: UnsafeUnpin,
*const ArcInner<dyn Fn(&str) -> String + Sync + Send> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Fn(&str) -> String + Sync + Send>>: UnsafeUnpin,
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