pub struct RunnableSeq { /* private fields */ }Expand description
Chains multiple Runnables sequentially — output of step N becomes input of step N+1.
This is the Rust equivalent of Python’s RunnableSeq / RunnableSequence.
Requires at least 2 steps (first = node logic, rest = writers/post-processors).
In LangGraph’s Pregel engine, every node is assembled as:
RunnableSeq(node_func, channel_write)
Implementations§
Source§impl RunnableSeq
impl RunnableSeq
Trait Implementations§
Source§impl Runnable for RunnableSeq
impl Runnable for RunnableSeq
Source§fn invoke(
&self,
input: &JsonValue,
config: &RunnableConfig,
) -> Result<JsonValue, RunnableError>
fn invoke( &self, input: &JsonValue, config: &RunnableConfig, ) -> Result<JsonValue, RunnableError>
Execute synchronously.
Source§fn ainvoke<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
input: &'life1 JsonValue,
config: &'life2 RunnableConfig,
) -> Pin<Box<dyn Future<Output = Result<JsonValue, RunnableError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn ainvoke<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
input: &'life1 JsonValue,
config: &'life2 RunnableConfig,
) -> Pin<Box<dyn Future<Output = Result<JsonValue, RunnableError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute asynchronously.
Auto Trait Implementations§
impl !RefUnwindSafe for RunnableSeq
impl !UnwindSafe for RunnableSeq
impl Freeze for RunnableSeq
impl Send for RunnableSeq
impl Sync for RunnableSeq
impl Unpin for RunnableSeq
impl UnsafeUnpin for RunnableSeq
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