pub trait NodeFn: Send + Sync {
// Required method
fn call<'life0, 'async_trait>(
&'life0 self,
state: GraphState,
) -> Pin<Box<dyn Future<Output = Result<GraphState, CrewError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Function type for node execution
Required Methods§
Sourcefn call<'life0, 'async_trait>(
&'life0 self,
state: GraphState,
) -> Pin<Box<dyn Future<Output = Result<GraphState, CrewError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn call<'life0, 'async_trait>(
&'life0 self,
state: GraphState,
) -> Pin<Box<dyn Future<Output = Result<GraphState, CrewError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute the node and return updated state