Trait TaskNode
Source pub trait TaskNode:
Send
+ Sync
+ DynClone
+ Any {
type Input: NodeArg;
type Output: NodeArg;
type Error: Error + Send + Sync + 'static;
// Required method
fn evaluate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
node_id: &'life1 DynNodeId<Self>,
input: &'life2 Self::Input,
) -> Pin<Box<dyn Future<Output = Result<Self::Output, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}
Source§A ‘default’ implementation for an agent where there is no output
TODO: Make this nicer :))