pub struct HumanApprovalNode {
pub prompt_key: String,
pub output_key: String,
pub audience: Vec<String>,
pub allowed_decisions: Vec<String>,
pub expiry_ms: u64,
pub ctx: RunContext,
}Expand description
A node that signals an approval gate: writes the approval request to state and returns an error that the caller can handle.
Fields§
§prompt_key: String§output_key: String§audience: Vec<String>§allowed_decisions: Vec<String>§expiry_ms: u64§ctx: RunContextTrait Implementations§
Source§impl Node for HumanApprovalNode
impl Node for HumanApprovalNode
Source§fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 AgentState,
_: &'life2 GraphConfig,
) -> Pin<Box<dyn Future<Output = Result<NodeOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
state: &'life1 AgentState,
_: &'life2 GraphConfig,
) -> Pin<Box<dyn Future<Output = Result<NodeOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute this node
Auto Trait Implementations§
impl Freeze for HumanApprovalNode
impl RefUnwindSafe for HumanApprovalNode
impl Send for HumanApprovalNode
impl Sync for HumanApprovalNode
impl Unpin for HumanApprovalNode
impl UnsafeUnpin for HumanApprovalNode
impl UnwindSafe for HumanApprovalNode
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