pub struct QuestionHookResult {
pub hook_result: HookResult,
pub response: Option<QuestionResponse>,
}Expand description
Combined hook result and optional question response.
Returned by hooks that involve interactive Q&A. The hook_result
determines whether the agent should proceed, and response carries
the user’s answers (if any).
Maps to the Python SDK’s QuestionHookResult.
Fields§
§hook_result: HookResultThe hook decision (allow/deny).
response: Option<QuestionResponse>The user’s answers, if a question was asked and answered.
Trait Implementations§
Source§impl Clone for QuestionHookResult
impl Clone for QuestionHookResult
Source§fn clone(&self) -> QuestionHookResult
fn clone(&self) -> QuestionHookResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QuestionHookResult
impl Debug for QuestionHookResult
Source§impl<'de> Deserialize<'de> for QuestionHookResult
impl<'de> Deserialize<'de> for QuestionHookResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for QuestionHookResult
impl RefUnwindSafe for QuestionHookResult
impl Send for QuestionHookResult
impl Sync for QuestionHookResult
impl Unpin for QuestionHookResult
impl UnsafeUnpin for QuestionHookResult
impl UnwindSafe for QuestionHookResult
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