pub struct AgentDispatchHandler { /* private fields */ }Expand description
Renders an AgentDispatchSpec from an AgentDispatch trigger and hands it
to forge.run.
Prompt rendering applies injection hardening (see render_prompt).
Panics at construction time if passed a rule whose trigger is not
AgentDispatch; use CompoundTriggerHandler to route by trigger kind.
Implementations§
Source§impl AgentDispatchHandler
impl AgentDispatchHandler
pub fn new(client: Box<dyn ForgeClient>) -> Self
Trait Implementations§
Source§impl TriggerHandler for AgentDispatchHandler
impl TriggerHandler for AgentDispatchHandler
fn handle(&self, ctx: &DispatchContext) -> Result<(), DispatchError>
Auto Trait Implementations§
impl !RefUnwindSafe for AgentDispatchHandler
impl !UnwindSafe for AgentDispatchHandler
impl Freeze for AgentDispatchHandler
impl Send for AgentDispatchHandler
impl Sync for AgentDispatchHandler
impl Unpin for AgentDispatchHandler
impl UnsafeUnpin for AgentDispatchHandler
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