pub struct GraphToolConfirmationPause {
pub node: String,
pub request: ToolConfirmationRequest,
pub thread_id: String,
pub checkpoint_id: String,
}Expand description
A persisted tool-authorization pause emitted by a graph.
Use Self::from_stream_event when directly streaming a graph, or
GraphInterruptPayload::tool_confirmation when the graph runs as a
crate::agent::GraphAgent.
Fields§
§node: StringGraph node whose agent requested authorization.
request: ToolConfirmationRequestThe exact tool call the caller must approve or deny.
thread_id: StringThread to resume after a decision.
checkpoint_id: StringCheckpoint saved before the pause was reported.
Implementations§
Source§impl GraphToolConfirmationPause
impl GraphToolConfirmationPause
Sourcepub const KIND: &str = "tool_confirmation"
pub const KIND: &str = "tool_confirmation"
Reserved custom-event and dynamic-interrupt marker for tool confirmation.
Sourcepub fn from_stream_event(event: &StreamEvent) -> Option<Self>
pub fn from_stream_event(event: &StreamEvent) -> Option<Self>
Read a tool-confirmation pause from a graph stream event.
Sourcepub fn from_interrupted_execution(
interrupted: &InterruptedExecution,
) -> Option<Self>
pub fn from_interrupted_execution( interrupted: &InterruptedExecution, ) -> Option<Self>
Read a tool-confirmation pause from an interrupted graph execution.
Trait Implementations§
Source§impl Clone for GraphToolConfirmationPause
impl Clone for GraphToolConfirmationPause
Source§fn clone(&self) -> GraphToolConfirmationPause
fn clone(&self) -> GraphToolConfirmationPause
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 GraphToolConfirmationPause
impl Debug for GraphToolConfirmationPause
Source§impl<'de> Deserialize<'de> for GraphToolConfirmationPause
impl<'de> Deserialize<'de> for GraphToolConfirmationPause
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 GraphToolConfirmationPause
impl RefUnwindSafe for GraphToolConfirmationPause
impl Send for GraphToolConfirmationPause
impl Sync for GraphToolConfirmationPause
impl Unpin for GraphToolConfirmationPause
impl UnsafeUnpin for GraphToolConfirmationPause
impl UnwindSafe for GraphToolConfirmationPause
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