pub struct CompiledGraphImpl<S>where
S: GraphState,{ /* private fields */ }Expand description
Compiled graph ready for execution
Trait Implementations§
Source§impl<S> CompiledGraph<S> for CompiledGraphImpl<S>where
S: GraphState + 'static,
impl<S> CompiledGraph<S> for CompiledGraphImpl<S>where
S: GraphState + 'static,
Source§fn invoke<'life0, 'async_trait>(
&'life0 self,
input: S,
config: Option<RuntimeContext>,
) -> Pin<Box<dyn Future<Output = Result<S, AgentError>> + Send + 'async_trait>>where
'life0: 'async_trait,
CompiledGraphImpl<S>: 'async_trait,
fn invoke<'life0, 'async_trait>(
&'life0 self,
input: S,
config: Option<RuntimeContext>,
) -> Pin<Box<dyn Future<Output = Result<S, AgentError>> + Send + 'async_trait>>where
'life0: 'async_trait,
CompiledGraphImpl<S>: 'async_trait,
Execute the graph synchronously Read more
Source§fn stream<'life0, 'async_trait>(
&'life0 self,
input: S,
config: Option<RuntimeContext>,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<StreamEvent<S>, AgentError>> + Send>>, AgentError>> + Send + 'async_trait>>where
'life0: 'async_trait,
CompiledGraphImpl<S>: 'async_trait,
fn stream<'life0, 'async_trait>(
&'life0 self,
input: S,
config: Option<RuntimeContext>,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<StreamEvent<S>, AgentError>> + Send>>, AgentError>> + Send + 'async_trait>>where
'life0: 'async_trait,
CompiledGraphImpl<S>: 'async_trait,
Execute the graph with streaming output Read more
Source§fn step<'life0, 'async_trait>(
&'life0 self,
input: S,
config: Option<RuntimeContext>,
) -> Pin<Box<dyn Future<Output = Result<StepResult<S>, AgentError>> + Send + 'async_trait>>where
'life0: 'async_trait,
CompiledGraphImpl<S>: 'async_trait,
fn step<'life0, 'async_trait>(
&'life0 self,
input: S,
config: Option<RuntimeContext>,
) -> Pin<Box<dyn Future<Output = Result<StepResult<S>, AgentError>> + Send + 'async_trait>>where
'life0: 'async_trait,
CompiledGraphImpl<S>: 'async_trait,
Execute a single step of the graph Read more
Source§fn validate_state(&self, _state: &S) -> Result<(), AgentError>
fn validate_state(&self, _state: &S) -> Result<(), AgentError>
Validate that a state is valid for this graph
Auto Trait Implementations§
impl<S> Freeze for CompiledGraphImpl<S>
impl<S> !RefUnwindSafe for CompiledGraphImpl<S>
impl<S> Send for CompiledGraphImpl<S>
impl<S> Sync for CompiledGraphImpl<S>
impl<S> Unpin for CompiledGraphImpl<S>
impl<S> UnsafeUnpin for CompiledGraphImpl<S>
impl<S> !UnwindSafe for CompiledGraphImpl<S>
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 moreSource§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage