pub struct EmptyToolExecutor;Expand description
A ToolExecutorPort that exposes no tools and rejects all execution.
Used by AgentLoop::build (in gglib-agent) when the caller passes
Some(empty_set) as the tool_filter argument. An empty allowlist means
“expose nothing”, not “expose everything” — this executor enforces that
contract on both list_tools (LLM sees no tools) and execute (defence in
depth: any synthesised call is rejected).
Trait Implementations§
Source§impl Clone for EmptyToolExecutor
impl Clone for EmptyToolExecutor
Source§fn clone(&self) -> EmptyToolExecutor
fn clone(&self) -> EmptyToolExecutor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EmptyToolExecutor
impl Debug for EmptyToolExecutor
Source§impl Default for EmptyToolExecutor
impl Default for EmptyToolExecutor
Source§fn default() -> EmptyToolExecutor
fn default() -> EmptyToolExecutor
Returns the “default value” for a type. Read more
Source§impl ToolExecutorPort for EmptyToolExecutor
impl ToolExecutorPort for EmptyToolExecutor
Source§fn list_tools<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<ToolDefinition>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_tools<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<ToolDefinition>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return all tool definitions available in this executor. Read more
Auto Trait Implementations§
impl Freeze for EmptyToolExecutor
impl RefUnwindSafe for EmptyToolExecutor
impl Send for EmptyToolExecutor
impl Sync for EmptyToolExecutor
impl Unpin for EmptyToolExecutor
impl UnsafeUnpin for EmptyToolExecutor
impl UnwindSafe for EmptyToolExecutor
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