pub enum AfterModelCallResult {
Continue(LlmResponse),
}Expand description
Result from an after_model_call hook invocation.
After-model hooks can only continue with a (possibly modified) response. Short-circuiting is not supported for after-hooks since the model call has already completed.
§Examples
ⓘ
use adk_plugin::AfterModelCallResult;
use adk_core::LlmResponse;
// Pass through the model response unchanged
let response = LlmResponse::default();
let result = AfterModelCallResult::Continue(response);Variants§
Continue(LlmResponse)
Continue with (possibly modified) LLM response.
The contained response will be passed to the next plugin in the chain, and ultimately returned to the agent as the model output.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AfterModelCallResult
impl RefUnwindSafe for AfterModelCallResult
impl Send for AfterModelCallResult
impl Sync for AfterModelCallResult
impl Unpin for AfterModelCallResult
impl UnsafeUnpin for AfterModelCallResult
impl UnwindSafe for AfterModelCallResult
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