pub struct ToolCallBlocklist { /* private fields */ }Expand description
Reject-by-policy middleware: tool calls to blocklisted tools never
execute; each is rejected with a structured Rejection (reason
"tool_blocked" by default) that surfaces as an ERROR: tool message
under the crate::tool::ToolExecutor failure-isolation contract.
Implementations§
Source§impl ToolCallBlocklist
impl ToolCallBlocklist
Trait Implementations§
Source§impl Clone for ToolCallBlocklist
impl Clone for ToolCallBlocklist
Source§fn clone(&self) -> ToolCallBlocklist
fn clone(&self) -> ToolCallBlocklist
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 ToolCallBlocklist
impl Debug for ToolCallBlocklist
Source§impl Middleware for ToolCallBlocklist
impl Middleware for ToolCallBlocklist
Source§fn before_tool<'life0, 'life1, 'async_trait>(
&'life0 self,
call: &'life1 mut ToolInvocation,
) -> Pin<Box<dyn Future<Output = Decision<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn before_tool<'life0, 'life1, 'async_trait>(
&'life0 self,
call: &'life1 mut ToolInvocation,
) -> Pin<Box<dyn Future<Output = Decision<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Tool call, inbound (registration order).
Source§fn before_node<'life0, 'life1, 'async_trait>(
&'life0 self,
call: &'life1 mut NodeCall,
) -> Pin<Box<dyn Future<Output = Decision<NodeOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn before_node<'life0, 'life1, 'async_trait>(
&'life0 self,
call: &'life1 mut NodeCall,
) -> Pin<Box<dyn Future<Output = Decision<NodeOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Node run, inbound (registration order).
Source§fn after_node<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
call: &'life1 NodeCall,
output: &'life2 mut NodeOutput,
) -> Pin<Box<dyn Future<Output = Decision<NodeOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn after_node<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
call: &'life1 NodeCall,
output: &'life2 mut NodeOutput,
) -> Pin<Box<dyn Future<Output = Decision<NodeOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Node run, outbound (reverse registration order). Success path only.
Source§fn before_model<'life0, 'life1, 'async_trait>(
&'life0 self,
call: &'life1 mut ModelCall,
) -> Pin<Box<dyn Future<Output = Decision<ChatResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn before_model<'life0, 'life1, 'async_trait>(
&'life0 self,
call: &'life1 mut ModelCall,
) -> Pin<Box<dyn Future<Output = Decision<ChatResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Model call, inbound (registration order).
Source§fn after_model<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
call: &'life1 ModelCall,
response: &'life2 mut ChatResponse,
) -> Pin<Box<dyn Future<Output = Decision<ChatResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn after_model<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
call: &'life1 ModelCall,
response: &'life2 mut ChatResponse,
) -> Pin<Box<dyn Future<Output = Decision<ChatResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Model call, outbound (reverse registration order). Success path only.
Source§fn after_tool<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
call: &'life1 ToolInvocation,
result: &'life2 mut Value,
) -> Pin<Box<dyn Future<Output = Decision<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn after_tool<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
call: &'life1 ToolInvocation,
result: &'life2 mut Value,
) -> Pin<Box<dyn Future<Output = Decision<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Tool call, outbound (reverse registration order). Success path only.
Auto Trait Implementations§
impl Freeze for ToolCallBlocklist
impl RefUnwindSafe for ToolCallBlocklist
impl Send for ToolCallBlocklist
impl Sync for ToolCallBlocklist
impl Unpin for ToolCallBlocklist
impl UnsafeUnpin for ToolCallBlocklist
impl UnwindSafe for ToolCallBlocklist
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