pub struct ToolDispatchNode { /* private fields */ }Expand description
A graph node that dispatches the tool calls in the most recent
assistant message. After dispatch, returns one Message::tool(...)
per call and routes back to “think”.
Implementations§
Trait Implementations§
Source§impl Node<AgentState> for ToolDispatchNode
impl Node<AgentState> for ToolDispatchNode
Source§fn execute<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
state: &'life1 AgentState,
ctx: &'life2 NodeCtx<'life3>,
) -> Pin<Box<dyn Future<Output = Result<NodeOut<AgentState>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
state: &'life1 AgentState,
ctx: &'life2 NodeCtx<'life3>,
) -> Pin<Box<dyn Future<Output = Result<NodeOut<AgentState>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Execute one superstep of this node.
Source§fn retry_policy(&self) -> Option<NodeRetryPolicy>
fn retry_policy(&self) -> Option<NodeRetryPolicy>
Per-task retry policy. Default
None means “no retry — propagate
the error”. When Some, the engine retries execute on retryable
errors with exponential backoff.Auto Trait Implementations§
impl Freeze for ToolDispatchNode
impl !RefUnwindSafe for ToolDispatchNode
impl Send for ToolDispatchNode
impl Sync for ToolDispatchNode
impl Unpin for ToolDispatchNode
impl UnsafeUnpin for ToolDispatchNode
impl !UnwindSafe for ToolDispatchNode
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