pub struct AgentNode { /* private fields */ }Expand description
Wrapper to use an existing ADK Agent as a graph node
Implementations§
Source§impl AgentNode
impl AgentNode
Sourcepub fn with_input_mapper<F>(self, mapper: F) -> Self
pub fn with_input_mapper<F>(self, mapper: F) -> Self
Set custom input mapper
Trait Implementations§
Source§impl Node for AgentNode
impl Node for AgentNode
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 NodeContext,
) -> Pin<Box<dyn Future<Output = Result<NodeOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 NodeContext,
) -> Pin<Box<dyn Future<Output = Result<NodeOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute the node and return state updates