pub struct PolicyRegistry { /* private fields */ }Implementations§
Source§impl PolicyRegistry
impl PolicyRegistry
pub fn new() -> Self
pub fn register(&mut self, entry: PolicyEntry)
pub fn session_start(&self, mode: SessionMode) -> Vec<Arc<dyn Policy>>
pub fn model_response(&self) -> Vec<Arc<dyn Policy>>
pub fn turn_before_finish(&self) -> Vec<Arc<dyn Policy>>
pub fn tool_before(&self, name: &str) -> Vec<Arc<dyn Policy>>
pub fn tool_after(&self, name: &str) -> Vec<Arc<dyn Policy>>
Trait Implementations§
Source§impl Clone for PolicyRegistry
impl Clone for PolicyRegistry
Source§fn clone(&self) -> PolicyRegistry
fn clone(&self) -> PolicyRegistry
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 PolicyRegistry
impl Debug for PolicyRegistry
Source§impl Default for PolicyRegistry
impl Default for PolicyRegistry
Source§fn default() -> PolicyRegistry
fn default() -> PolicyRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PolicyRegistry
impl !RefUnwindSafe for PolicyRegistry
impl Send for PolicyRegistry
impl Sync for PolicyRegistry
impl Unpin for PolicyRegistry
impl UnsafeUnpin for PolicyRegistry
impl !UnwindSafe for PolicyRegistry
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