pub struct InteractiveGraph { /* private fields */ }Expand description
Interactive graph wrapper with human-in-the-loop support
Implementations§
Source§impl InteractiveGraph
impl InteractiveGraph
Sourcepub fn with_approval_gate(
self,
node_id: impl Into<String>,
gate: ApprovalGate,
) -> Self
pub fn with_approval_gate( self, node_id: impl Into<String>, gate: ApprovalGate, ) -> Self
Add an approval gate after a node
Sourcepub fn with_breakpoint(self, node_id: impl Into<String>) -> Self
pub fn with_breakpoint(self, node_id: impl Into<String>) -> Self
Add a breakpoint at a node
Sourcepub fn with_input_request(
self,
node_id: impl Into<String>,
request: HumanInputRequest,
) -> Self
pub fn with_input_request( self, node_id: impl Into<String>, request: HumanInputRequest, ) -> Self
Add an input request before a node
Sourcepub fn with_checkpoint_store(self, store: Arc<dyn CheckpointStore>) -> Self
pub fn with_checkpoint_store(self, store: Arc<dyn CheckpointStore>) -> Self
Set custom checkpoint store
Sourcepub async fn start(
&self,
initial_state: GraphState,
) -> Result<InteractiveSession<'_>, CrewError>
pub async fn start( &self, initial_state: GraphState, ) -> Result<InteractiveSession<'_>, CrewError>
Start an interactive session
Auto Trait Implementations§
impl Freeze for InteractiveGraph
impl !RefUnwindSafe for InteractiveGraph
impl Send for InteractiveGraph
impl Sync for InteractiveGraph
impl Unpin for InteractiveGraph
impl UnsafeUnpin for InteractiveGraph
impl !UnwindSafe for InteractiveGraph
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more