pub struct CmfHook;Expand description
CMF message evaluation hook.
Plugins implement HookHandler<CmfHook> and register under
one or more cmf.* hook names (e.g., cmf.tool_pre_invoke,
cmf.llm_input). The same handler covers all CMF hook points.
Trait Implementations§
Source§impl HookTypeDef for CmfHook
impl HookTypeDef for CmfHook
Source§const NAME: &'static str = "cmf"
const NAME: &'static str = "cmf"
Hook name — used as the registry key and in config YAML. Read more
Source§type Payload = MessagePayload
type Payload = MessagePayload
The typed payload that handlers receive.
Must implement
PluginPayload (Clone + Send + Sync + ’static).Source§type Result = PluginResult<MessagePayload>
type Result = PluginResult<MessagePayload>
The typed result that handlers return.
Auto Trait Implementations§
impl Freeze for CmfHook
impl RefUnwindSafe for CmfHook
impl Send for CmfHook
impl Sync for CmfHook
impl Unpin for CmfHook
impl UnsafeUnpin for CmfHook
impl UnwindSafe for CmfHook
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