pub struct PromptHandler { /* private fields */ }Expand description
Implementation of the Prompt handler.
Implementations§
Source§impl PromptHandler
impl PromptHandler
Trait Implementations§
Source§impl StepHandler for PromptHandler
impl StepHandler for PromptHandler
Source§fn handle_step<'a>(
&'a self,
envelope: &'a Value,
ctx: HookCtx<'a>,
) -> BoxFuture<'a, Result<Option<Value>, HookError>>
fn handle_step<'a>( &'a self, envelope: &'a Value, ctx: HookCtx<'a>, ) -> BoxFuture<'a, Result<Option<Value>, HookError>>
Renders the step envelope into user text (for JSON mode, serializes the envelope
directly; for Template mode, extracts top-level fields using {{key}}), runs one
LLM call, and uses the output text as the additional_context verdict.
Auto Trait Implementations§
impl !RefUnwindSafe for PromptHandler
impl !UnwindSafe for PromptHandler
impl Freeze for PromptHandler
impl Send for PromptHandler
impl Sync for PromptHandler
impl Unpin for PromptHandler
impl UnsafeUnpin for PromptHandler
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